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

json

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json - npm Package Compare versions

Comparing version 9.0.4 to 9.0.5

14

CHANGES.md
# json Changelog
## not yet released
(nothing yet)
## json 9.0.5
- [issue #112] Improve streaming (json -ga) performance for very long lines. For
example, using a 35 MB JSON object on one line gave a 50x speed improvement.
However, this is restricted to streaming of newline-separated JSON as opposed
to adjacent JSON objects not separated by newlines ({"a":1}{"a":2}). The
former case is expected to be much more common, and the latter may take a
slight performance hit from this change.
## json 9.0.4

@@ -4,0 +18,0 @@

14

lib/json.js

@@ -11,3 +11,3 @@ #!/usr/bin/env node

var VERSION = '9.0.4';
var VERSION = '9.0.5';

@@ -631,3 +631,7 @@ var p = console.warn;

}
leftover = emitChunks(s, emitter);
if (chunk.lastIndexOf('\n') >= 0) {
leftover = emitChunks(s, emitter);
} else {
leftover = s;
}
}

@@ -1306,3 +1310,3 @@ });

chunker.on('error', function (error) {
warn('json: error: %s', err);
warn('json: error: %s', err.message);
return drainStdoutAndExit(1);

@@ -1316,3 +1320,3 @@ });

if (err) {
warn('json: error: %s', err)
warn('json: error: %s', err.message)
return drainStdoutAndExit(1);

@@ -1351,3 +1355,3 @@ }

if (err) {
warn('json: error: %s', err)
warn('json: error: %s', err.message)
return drainStdoutAndExit(1);

@@ -1354,0 +1358,0 @@ }

{
"name": "json",
"description": "a 'json' command for massaging and processing JSON on the command line",
"version": "9.0.4",
"version": "9.0.5",
"repository": {

@@ -18,3 +18,5 @@ "type": "git",

},
"engines": ["node >=0.6.0"],
"engines": {
"node": ">=0.10.0"
},
"keywords": ["json", "jsontool", "filter", "command", "shell"],

@@ -21,0 +23,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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