New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jsonesc

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonesc - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

.travis.yml

8

package.json
{
"name": "jsonesc",
"version": "0.4.2",
"version": "0.4.3",
"description": "Json Escape",

@@ -21,3 +21,3 @@ "repository": {

"base64-js": "^1.3.0",
"bson": "^1.0.9",
"bson": "^4.0.1",
"chai": "^4.1.2",

@@ -27,5 +27,5 @@ "cross-env": "^5.1.6",

"msgpack-lite": "^0.1.26",
"ts-node": "^5.0.1",
"ts-node": "^8.0.2",
"tslint": "^5.9.1",
"typescript": "^2.8.3"
"typescript": "^3.3.3"
},

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

# Json Escape
<a href='https://travis-ci.org/ticlo/jsonesc'><img src="https://travis-ci.org/ticlo/jsonesc.svg?branch=master" title="travis-ci"></a>
Json Escape use escape character in string to store types that normally not allowed in JSON

@@ -25,3 +29,3 @@

"\u001bBin:wFg{A",
"\u001b?"
"\u001b"
]

@@ -28,0 +32,0 @@ ```

@@ -47,2 +47,4 @@ import JsonEsc from '../dist/index';

assert.equal(JsonEsc.stringify(undefined), undefinedStr, 'encode undefined');
assert.equal(JsonEsc.stringify({a:undefined}), `{"a":${undefinedStr}}`, 'encode undefined in object');
assert.equal(JsonEsc.parse('"\\u001b"'), undefined, 'undefined');

@@ -49,0 +51,0 @@ assert.equal(JsonEsc.parse('"\\u001b?"'), undefined, 'invalid escape');

Sorry, the diff of this file is not supported yet

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