@cicada/message
Advanced tools
Comparing version 0.2.8 to 0.2.9
@@ -24,3 +24,3 @@ 'use strict'; | ||
function safeStringify(data, stringifyHolder) { | ||
return JSON.stringify((0, _utils.safeCircularStruct)(data, stringifyHolder), function (key, value) { | ||
return JSON.stringify(data, function (key, value) { | ||
if (typeof value === 'function') { | ||
@@ -27,0 +27,0 @@ return stringifyHolder ? _constants.CICADA_FUNC_STRINGIFY : undefined; |
{ | ||
"name": "@cicada/message", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "cicada message", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,2 @@ | ||
import { safeCircularStruct, generateUUID } from './utils' | ||
import { generateUUID } from './utils' | ||
import { CICADA_CIRCULAR_STRINGIFY, CICADA_FUNC_STRINGIFY, CICADA_UUID, CICADA_PROMISE_EVENT } from './constants' | ||
@@ -11,3 +11,3 @@ | ||
function safeStringify(data, stringifyHolder) { | ||
return JSON.stringify(safeCircularStruct(data, stringifyHolder), (key, value) => { | ||
return JSON.stringify(data, (key, value) => { | ||
if (typeof value === 'function') { | ||
@@ -14,0 +14,0 @@ return stringifyHolder ? CICADA_FUNC_STRINGIFY : undefined |
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
18083