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.6 to 1.0.7

addType.js

8

index.js

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

const EJSON = require('ejson');
const addType = require('./addType');
const assign = Object.assign || require('object.assign');

@@ -10,3 +10,3 @@ const debug = require('debug')('ejson');

apply: function() {
debug('EJSON-extras...');
debug('Applying EJSON-extras...');
Object.values(types).forEach(({ prototype, shims, typeName, factory }) => {

@@ -17,5 +17,5 @@ if (!prototype.__noSupportForEJSON) {

if (typeof typeName === 'string') {
EJSON.addType(typeName, factory);
addType(typeName, factory);
} else {
typeName.forEach(name => EJSON.addType(name, factory));
typeName.forEach(name => addType(name, factory));
}

@@ -22,0 +22,0 @@ } else {

{
"name": "ejson-extras",
"version": "1.0.6",
"version": "1.0.7",
"description": "Extends EJSON with additional types, including Qty (js-quantities) objects.",

@@ -14,2 +14,3 @@ "main": "index.js",

"debug": "^3.1.0",
"meteor-globals": "^1.1.2",
"object.assign": "^4.0.4",

@@ -16,0 +17,0 @@ "strip-bom": "^3.0.0",

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

1.0.7 - Added Meteor autodetection for patching of bundled EJSON.
1.0.6 - Removed dependancy on `fs` to enable browser usage of `ejson-extras`.
'use strict';
const fs = require('fs');
const stripBom = require('strip-bom');
const EJSON = require('ejson');
const EJSON = require('../ejson');

@@ -6,0 +6,0 @@ module.exports = (module, filename) => {

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