diff options
author | 2017-10-25 12:47:34 +0000 | |
---|---|---|
committer | 2017-10-25 12:47:34 +0000 | |
commit | 0327e655a3cb876dff4d9e320eb520077a82f874 (patch) | |
tree | fbeb6f784bbf3d35f3bc34dcaadb4826e9dfdaa9 /vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js | |
parent | e8ddb8424f0a6ecf0a1b46ca46f01872b6294bcd (diff) |
Fix license issues reported by Steve
Removed node_modules from gerrit and added during installation
Change-Id: I616da4ca564724b5cd496849383c62ca121794ac
Jira:VNFSDK-115
Signed-off-by: Murali <murali.p@huawei.com>
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js deleted file mode 100644 index 124a4521..00000000 --- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/json-stringify-safe/stringify.js +++ /dev/null @@ -1,27 +0,0 @@ -exports = module.exports = stringify -exports.getSerialize = serializer - -function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces) -} - -function serializer(replacer, cycleReplacer) { - var stack = [], keys = [] - - if (cycleReplacer == null) cycleReplacer = function(key, value) { - if (stack[0] === value) return "[Circular ~]" - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]" - } - - return function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this) - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this) - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key) - if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value) - } - else stack.push(value) - - return replacer == null ? value : replacer.call(this, key, value) - } -} |