@cicada/message
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -38,2 +38,3 @@ 'use strict'; | ||
})) { | ||
console.error('Converting circular structure to JSON in path "' + path.join('.') + '".'); | ||
parentVal[path[path.length - 1]] = _constants.CICADA_CIRCULAR_STRINGIFY; | ||
@@ -50,3 +51,4 @@ return; | ||
function safeCircularStruct(val, stringifyHolder) { | ||
return _safeCircularStruct(val, stringifyHolder, val); | ||
_safeCircularStruct(val, stringifyHolder, val); | ||
return val; | ||
} |
{ | ||
"name": "@cicada/message", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "cicada message", | ||
@@ -23,3 +23,5 @@ "main": "lib/index.js", | ||
"license": "MIT", | ||
"dependencies": {}, | ||
"dependencies": { | ||
"lodash": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
@@ -26,0 +28,0 @@ "autod": "^2.9.0", |
@@ -21,2 +21,3 @@ import { CICADA_CIRCULAR_STRINGIFY } from './constants' | ||
if (cache.find(item => isNestedPath(item.path, path) && item.val === val)) { | ||
console.error(`Converting circular structure to JSON in path "${path.join('.')}".`) | ||
parentVal[path[path.length - 1]] = CICADA_CIRCULAR_STRINGIFY | ||
@@ -31,3 +32,4 @@ return | ||
export function safeCircularStruct(val, stringifyHolder) { | ||
return _safeCircularStruct(val, stringifyHolder, val) | ||
_safeCircularStruct(val, stringifyHolder, val) | ||
return val | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18189
364
1
+ Addedlodash@^4.17.10
+ Addedlodash@4.17.21(transitive)