ejson-extras
Advanced tools
Comparing version 1.0.12 to 1.0.13
13
index.js
const assign = Object.assign || require('object.assign'); | ||
const debug = require('debug')('ejson'); | ||
debug('Loading EJSON-extras...'); | ||
const requireEJSON = require('./require/ejson'); | ||
const EJSON = require('./ejson'); | ||
const addType = require('./addType'); | ||
const types = require('./types'); | ||
module.exports = { | ||
apply: function() { | ||
debug('Applying EJSON-extras...'); | ||
const EJSON = require('./ejson'); | ||
debug('-> Found custom types %O', EJSON._getTypes()); | ||
@@ -15,5 +20,2 @@ if (EJSON._getTypes().extras) { | ||
const addType = require('./addType'); | ||
const types = require('./types'); | ||
Object.values(types).forEach(({ prototype, shims, typeName, factory }) => { | ||
@@ -34,3 +36,2 @@ if (!prototype.__noSupportForEJSON) { | ||
if (typeof require === 'function') { | ||
const requireEJSON = require('./require/ejson'); | ||
debug(`-> adding support for EJSON to 'require'`); | ||
@@ -37,0 +38,0 @@ require.extensions['.json'] = requireEJSON; |
{ | ||
"name": "ejson-extras", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": | ||
@@ -5,0 +5,0 @@ "Extends EJSON with additional types, including Qty (js-quantities) objects.", |
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
12011
261