Socket
Socket
Sign inDemoInstall

dottie

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dottie - npm Package Compare versions

Comparing version 0.0.7-0 to 0.0.8-0

35

dottie.js

@@ -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": "*"

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