New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

async-json-writer

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-json-writer - npm Package Compare versions

Comparing version

to
1.1.0

12

lib/JsonWriter.js

@@ -22,2 +22,9 @@ 'use strict';

this._debug('_writeTarget');
if (_.isUndefined(target)) {
return;
}
if (_.isNull(target)) {
yield* this._write('null');
return;
}
if (_.isArray(target)) {

@@ -60,5 +67,8 @@ yield* this._writeArray(target);

const name = names[i];
const subTarget = target[name];
if (_.isUndefined(subTarget)) {
continue;
}
yield* this._writeString(name);
yield* this._write(':');
const subTarget = target[name];
yield* this._writeTarget(subTarget);

@@ -65,0 +75,0 @@ }

2

package.json
{
"name": "async-json-writer",
"version": "1.0.2",
"version": "1.1.0",
"description": "Writes huge JSONs to stream with minimum memory usage",

@@ -5,0 +5,0 @@ "main": "index.js",