Socket
Socket
Sign inDemoInstall

es5-ext

Package Overview
Dependencies
2
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.11 to 0.10.12

9

array/#/flatten.js
'use strict';
var isArray = Array.isArray, forEach = Array.prototype.forEach
, push = Array.prototype.push;
var isArray = Array.isArray, forEach = Array.prototype.forEach;

@@ -9,5 +8,9 @@ module.exports = function flatten() {

forEach.call(this, function (x) {
push.apply(r, isArray(x) ? flatten.call(x) : [x]);
if (isArray(x)) {
r = r.concat(flatten.call(x));
} else {
r.push(x);
}
});
return r;
};

@@ -6,4 +6,4 @@ 'use strict';

module.exports = function (x) {
if (!isDate(x)) throw new TypeError(x + " is not a Date object");
if (!isDate(x) || isNaN(x)) throw new TypeError(x + " is not valid Date object");
return x;
};

@@ -7,8 +7,9 @@ 'use strict';

, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
, getOwnPropertyNames = Object.getOwnPropertyNames;
, getOwnPropertyNames = Object.getOwnPropertyNames
, getOwnPropertySymbols = Object.getOwnPropertySymbols;
module.exports = function (target, source) {
var error;
var error, sourceObject = Object(value(source));
target = Object(value(target));
getOwnPropertyNames(Object(value(source))).forEach(function (name) {
getOwnPropertyNames(sourceObject).forEach(function (name) {
try {

@@ -18,4 +19,11 @@ defineProperty(target, name, getOwnPropertyDescriptor(source, name));

});
if (typeof getOwnPropertySymbols === 'function') {
getOwnPropertySymbols(sourceObject).forEach(function (symbol) {
try {
defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));
} catch (e) { error = e; }
});
}
if (error !== undefined) throw error;
return target;
};
{
"name": "es5-ext",
"version": "0.10.11",
"version": "0.10.12",
"description": "ECMAScript extensions and shims",

@@ -30,3 +30,3 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",

"es6-iterator": "2",
"es6-symbol": "~3.0.2"
"es6-symbol": "~3.1"
},

@@ -33,0 +33,0 @@ "devDependencies": {

@@ -5,2 +5,4 @@ 'use strict';

a(t.call('razDwaTRzy4yFoo45My'), 'raz-dwa-t-rzy4y-foo45-my');
a(t.call('razDwaTRzy4yFoo45My-'), 'raz-dwa-t-rzy4y-foo45-my-');
a(t.call('razDwaTRzy4yFoo45My--'), 'raz-dwa-t-rzy4y-foo45-my--');
};

@@ -5,2 +5,4 @@ 'use strict';

a(t.call('raz-dwa-t-rzy-4y-rtr4-tiu-45-pa'), 'razDwaTRzy4yRtr4Tiu45Pa');
a(t.call('raz-dwa-t-rzy-4y-rtr4-tiu-45-pa-'), 'razDwaTRzy4yRtr4Tiu45Pa-');
a(t.call('raz-dwa-t-rzy-4y-rtr4-tiu-45-pa--'), 'razDwaTRzy4yRtr4Tiu45Pa--');
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc