ejson-extras
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -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) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10681
14
234
86
7
+ Addedmeteor-globals@^1.1.2
+ Addedmeteor-globals@1.1.2(transitive)
+ Addedsemver@5.3.0(transitive)