New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lutils

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lutils - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

17

clone.js

@@ -26,6 +26,3 @@ // Generated by CoffeeScript 1.9.2

skeleton = clone.skeleton(obj, null, types);
return clone.iterate(skeleton || {}, obj, depth, types, {
values: [],
cloned: []
});
return clone.iterate(skeleton || {}, obj, depth, types);
};

@@ -80,4 +77,4 @@

clone.iterate = function(obj1, obj2, depth, types, cyclic) {
var key, oldIndex, parentType, skeleton, type, value;
clone.iterate = function(obj1, obj2, depth, types) {
var key, parentType, skeleton, type, value;
if (--depth > 0) {

@@ -90,11 +87,5 @@ parentType = typeOf(obj2);

if (type in types) {
if ((oldIndex = cyclic.values.indexOf(value)) > -1) {
obj1[key] = cyclic.cloned[oldIndex];
continue;
}
cyclic.values.push(value);
if (skeleton = clone.skeleton(value, type, types)) {
value = clone.iterate(skeleton, value, depth, types, cyclic);
value = clone.iterate(skeleton, value, depth, types);
}
cyclic.cloned.push(value);
}

@@ -101,0 +92,0 @@ obj1[key] = value;

{
"name" : "lutils"
, "description" : "A small set of browser-friendly utilities"
, "version" : "0.2.8"
, "version" : "0.2.9"
, "author" : { "name": "nfour" }

@@ -6,0 +6,0 @@

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