Comparing version 0.0.7-0 to 0.0.8-0
@@ -6,15 +6,20 @@ (function(undefined) { | ||
var clone = function (object) { | ||
if (typeof Object.create !== 'undefined') { | ||
return Object.create(object); | ||
} | ||
if (typeof jQuery !== 'undefined') { | ||
return jQuery.extend({}, object); | ||
} | ||
if (typeof _ !== 'undefined') { | ||
return _.extend({}, object); | ||
} | ||
var clone = function (object) { | ||
if (typeof Object.hasOwnProperty !== 'undefined') { | ||
var target = {}; | ||
for (var i in object) { | ||
if (object.hasOwnProperty(i)) { | ||
target[i] = object[i]; | ||
} | ||
} | ||
return target; | ||
} | ||
if (typeof jQuery !== 'undefined') { | ||
return jQuery.extend({}, object); | ||
} | ||
if (typeof _ !== 'undefined') { | ||
return _.extend({}, object); | ||
} | ||
}; | ||
}; | ||
// Weird IE shit, objects do not have hasOwn, but the prototype does... | ||
@@ -42,3 +47,3 @@ var hasOwnProp = Object.prototype.hasOwnProperty; | ||
if (current) { | ||
for (var index in pieces) { | ||
for (var index = 0, length = pieces.length; index < length; index++) { | ||
piece = pieces[index]; | ||
@@ -63,3 +68,3 @@ if (!hasOwnProp.call(current, piece)) { | ||
for (var index in pieces) { | ||
for (var index = 0; index < length; index++) { | ||
piece = pieces[index]; | ||
@@ -83,3 +88,3 @@ if (!hasOwnProp.call(current, piece) || current[piece] === undefined) { | ||
// Set default nested value | ||
Dot.default = function(object, path, value) { | ||
Dot['default'] = function(object, path, value) { | ||
if (Dot.get(object, path) === undefined) { | ||
@@ -86,0 +91,0 @@ Dot.set(object, path, value); |
{ | ||
"name": "dottie", | ||
"version": "0.0.7-0", | ||
"version": "0.0.8-0", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "buster": "*" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
9643
242
0
1