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

hjson

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hjson - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

11

lib/hjson.js

@@ -64,4 +64,5 @@ /*

This is a shortcut to roundtrip your comments when reading and updating a config file.
It is the same as specifying the keepWsc option for the parse and stringify functions.
This is a shortcut to roundtrip your comments when reading and updating
a config file. It is the same as specifying the keepWsc option for the
parse and stringify functions.

@@ -592,6 +593,2 @@ This is a reference implementation. You are free to copy, modify, or

case 'boolean':
case 'null':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);

@@ -693,3 +690,3 @@

if (typeof opt === 'object') {
if (opt && typeof opt === 'object') {
space = opt.space;

@@ -696,0 +693,0 @@ keepWsc = opt.keepWsc;

@@ -6,3 +6,3 @@ {

"author": "Christian Zangl",
"version": "1.6.0",
"version": "1.6.1",
"tags": [

@@ -9,0 +9,0 @@ "json",

@@ -112,9 +112,9 @@ # hjson-js

- v1.6.1
- fixed stringify with options===null
- v1.6.0
- Added `rt` (roundtrip) shortcut.
- v1.5.0
- Added support for the simplified syntax for keys. Previously only alphanumeric keys were allowed without quotes.
- Fixed multiline strings: OS/file independent (EOL is always `\n`). Also the last LF is removed.
- v1.4.0

@@ -125,16 +125,11 @@ - Changed the browser interface to match the node api (which didn't change).

- Added more test cases.
- v1.3.0
- Added support for the simplified syntax.
- v1.2.0
- Added old fashioned /**/ comments.
- Fixed the missing EOL (cli only).
- v1.1.0
- add // support
- v1.0.2
- stringify bug fixes
- v1.0.0

@@ -141,0 +136,0 @@ - Switched to v1 for semver.

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