Socket
Socket
Sign inDemoInstall

json-stream-stringify

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-stream-stringify - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

2

package.json
{
"name": "json-stream-stringify",
"version": "1.3.4",
"version": "1.3.5",
"description": "JSON.Stringify as a readable stream",

@@ -5,0 +5,0 @@ "repository": {

@@ -15,3 +15,3 @@ 'use strict';

}];
this.obj = this._shouldIterate(obj) ? Array.isArray(obj) ? obj.slice(0) : Object.assign({}, obj) : obj;
this.obj = this._shouldIterate(obj) ? (Array.isArray(obj) ? obj.slice(0) : Object.assign({}, obj)) : obj;
this.replacerIsArray = Array.isArray(replacer);

@@ -79,2 +79,6 @@ this.replacer = replacer instanceof Function || this.replacerIsArray ? replacer : undefined;

if(state === 'value') {
if (typeof val === 'function') {
return ctx.next();
}
if (this.replacer && !this.replacerIsArray) {

@@ -81,0 +85,0 @@ val = this.replacer(key, val);

@@ -72,2 +72,6 @@ 'use strict';

it('{a:function(){}} should be {}', createTest({
a: function(){}
}, '{}'));
it('{a:date} should be {"a":date.toJSON()}', createTest({

@@ -74,0 +78,0 @@ a: date

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc