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

json-stable-stringify-pretty

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-stable-stringify-pretty - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

test/mongodb.js

4

index.js

@@ -29,2 +29,6 @@ var json = typeof JSON !== 'undefined' ? JSON : require('jsonify');

// A custom hack for mongodb objectids.
if (node && node.toHexString && typeof node.toHexString === 'function') {
node = 'id$' + node.toHexString();
}
if (node && node.toJSON && typeof node.toJSON === 'function') {

@@ -31,0 +35,0 @@ node = node.toJSON();

2

package.json
{
"name": "json-stable-stringify-pretty",
"version": "1.1.0",
"version": "1.2.0",
"description": "A fork of substack's json-stable-stringify: deterministic JSON.stringify() with useful options",

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

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