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

boxed-immutable

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxed-immutable - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

16

lib/boxed-on-demand.js

@@ -81,16 +81,2 @@ "use strict";

function deleteItems(arr) {
if (arguments.length > 1) {
let i = arguments.length;
while (--i) {
let index = arr.indexOf(arguments[i]);
if (index >= 0) {
arr.splice(index, 1);
}
}
}
return arr;
}
function isBoxedOnDemand(arg) {

@@ -141,3 +127,3 @@ return util.isObject(arg) && arg.constructor === BoxedOnDemand;

const keys = Reflect.ownKeys(target.getBoxed());
return deleteItems(keys, target.saveBoxedProp, target.cancelBoxedProp);
return util.deleteItems(keys, target.saveBoxedProp, target.cancelBoxedProp);
}

@@ -144,0 +130,0 @@ throw "BoxedOnDemandHandler: IllegalArgument expected BoxedOnDemand target";

14

lib/util.js

@@ -188,2 +188,16 @@ "use strict";

function deleteItems(arr) {
if (arguments.length > 1) {
let i = arguments.length;
while (--i) {
let index = arr.indexOf(arguments[i]);
if (index >= 0) {
arr.splice(index, 1);
}
}
}
return arr;
}
exports.deleteItems = deleteItems;
{
"name": "boxed-immutable",
"version": "0.1.4",
"version": "0.1.5",
"private": false,

@@ -5,0 +5,0 @@ "description": "Immutable proxy wrapper with auto-vivification",

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