From 8fbbe04bf31cce291dd96a117707a9a694c04b71 Mon Sep 17 00:00:00 2001 From: Majid Q Date: Thu, 7 Sep 2023 09:32:04 +1000 Subject: [PATCH] Update json.js --- src/json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json.js b/src/json.js index fdf9d2c..532d9e3 100644 --- a/src/json.js +++ b/src/json.js @@ -177,7 +177,7 @@ const json = (val, opts = {}) => { /** * Flags the field to be spreaded in resulting JSON. */ -const spread = () => SPREAD_KEY_NAME + Math.random(); +const spread = (uid = '') => SPREAD_KEY_NAME + uid + Math.random(); module.exports.json = json; module.exports.spread = spread;