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

ejson-extras

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejson-extras - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

2

package.json
{
"name": "ejson-extras",
"version": "1.0.14",
"version": "1.0.15",
"description":

@@ -5,0 +5,0 @@ "Extends EJSON with additional types, including Qty (js-quantities) objects.",

@@ -84,2 +84,4 @@ # Description

1.0.15 - Fixed Map EJSON stringify/parsing bug.
1.0.11 - Fixed patching of 'require' inside Meteor.

@@ -86,0 +88,0 @@

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

{ "$type": "Map", "$value": "[[\"hello\",\"world\"]]" }
{ "$type": "Map", "$value": [["hello", "world"]] }

@@ -10,3 +10,3 @@ const typeName = 'Map';

toJSONValue() {
return JSON.stringify([...this]);
return [...this];
},

@@ -24,5 +24,5 @@ clone() {

factory(json) {
return new Map(JSON.parse(json));
return new Map(json);
},
typeName,
};

@@ -17,3 +17,3 @@ const assert = require('assert');

const mapStringified =
'{"$type":"Map","$value":"[[\\"foo\\",\\"bar\\"],[\\"hello\\",\\"world\\"]]"}';
'{"$type":"Map","$value":[["foo","bar"],["hello","world"]]}';

@@ -20,0 +20,0 @@ describe('Map', function() {

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