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

javascript-stringify

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

javascript-stringify - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

javascript-stringify.js

@@ -112,2 +112,6 @@ (function (root, stringify) {

'[object Object]': function (object, indent, stringify) {
if (typeof Buffer === 'function' && Buffer.isBuffer(object)) {
return 'new Buffer(' + stringify(object.toString()) + ')';
}
// Iterate over object keys and concat string together.

@@ -114,0 +118,0 @@ var values = Object.keys(object).reduce(function (values, key) {

2

package.json
{
"name": "javascript-stringify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`",

@@ -5,0 +5,0 @@ "main": "javascript-stringify.js",

@@ -30,2 +30,7 @@ var expect = require('chai').expect;

);
it(
'should escape certain unicode sequences',
test('\u0602', "'\\u0602'")
);
});

@@ -78,2 +83,6 @@

});
describe('Buffer', function () {
it('should stringify', test(new Buffer('test'), "new Buffer('test')"));
});
});

@@ -80,0 +89,0 @@

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