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.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.",

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