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.2 to 1.3.3

2

jsonStreamify.js

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

let stream = new JSONStreamify(data);
stream._iter._forcedCtxType = Array;
stream._iter._parentCtxType = Array;
stream.once('end', () => next(null, undefined)).pipe(pass, {

@@ -63,0 +63,0 @@ end: false

{
"name": "json-stream-stringify",
"version": "1.3.2",
"version": "1.3.3",
"description": "JSON.Stringify as a readable stream",

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

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

if (ctx.type !== Array) {
if ((this._parentCtxType ? this._parentCtxType !== Array : true) && ctx.type !== Array) {
return ctx.next();

@@ -95,0 +95,0 @@ }

@@ -106,2 +106,4 @@ 'use strict';

it(`ReadableStream({}, 'a', undefined, 'c') should be [{},"a",null,"c"]`, createTest(ReadableStream({}, 'a', undefined, 'c'), '[{},"a",null,"c"]'));
it(`{ a: ReadableStream({name: 'name', date: date }) } should be [{},"a",null,"c"]`, createTest({ a: ReadableStream({name: 'name', date: date }) }, `{"a":[{"name":"name","date":"${date.toJSON()}"}]}`));
});
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