Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pull-json-parse

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-json-parse - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

9

index.js
'use strict';
const COMMA = 0x2c;
const BRACKET_START = 0x5b;
const BRACKET_END = 0x5d;
var COMMA = 0x2c;
var BRACKET_START = 0x5b;
var BRACKET_END = 0x5d;

@@ -42,2 +42,5 @@ module.exports = parse;

if (typeof data !== 'string')
data = data.toString();
while ((ni = data.indexOf('\n', pos)) !== -1) {

@@ -44,0 +47,0 @@ tail = data.slice(pos, data.charCodeAt(ni - 1) === COMMA

{
"name": "pull-json-parse",
"description": "Parse a pull-stream with newline delimited JSON",
"version": "0.0.1",
"version": "0.0.2",
"repository": "srcagency/pull-json-parse",

@@ -6,0 +6,0 @@ "scripts": {

@@ -39,1 +39,13 @@ 'use strict';

});
test(function( t ){
t.plan(1);
pull(
pull.values([ new Buffer(JSON.stringify('Hidden string'), 'utf8') ]),
parse,
pull.collect(function( err, result ){
t.deepEqual(result, [ 'Hidden string' ]);
})
);
})
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