Socket
Socket
Sign inDemoInstall

json-stringify-pretty-compact

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 1.0.3 to 1.0.4

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### Version 1.0.4 (2017-04-29) ###
- Fixed: String contents are no longer accidentally modified in some cases.
Thanks to @powellquiring!
### Version 1.0.3 (2017-03-30) ###

@@ -2,0 +8,0 @@

2

index.js

@@ -73,3 +73,3 @@ // Copyright 2014, 2016 Simon Lydell

// that case we don’t care since the output would be invalid anyway).
var stringOrChar = /("(?:[^"]|\\.)*")|[:,]/g
var stringOrChar = /("(?:[^\\"]|\\.)*")|[:,]/g

@@ -76,0 +76,0 @@ function prettify (string) {

{
"name": "json-stringify-pretty-compact",
"version": "1.0.3",
"version": "1.0.4",
"author": "Simon Lydell",

@@ -5,0 +5,0 @@ "license": "MIT",

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