@uirouter/core
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -200,6 +200,9 @@ /** | ||
export function pick(obj, propNames) { | ||
var copy = {}; | ||
propNames.forEach(function (prop) { if (obj.hasOwnProperty(prop)) | ||
copy[prop] = obj[prop]; }); | ||
return copy; | ||
var objCopy = {}; | ||
for (var prop_1 in obj) { | ||
if (propNames.indexOf(prop_1) !== -1) { | ||
objCopy[prop_1] = obj[prop_1]; | ||
} | ||
} | ||
return objCopy; | ||
} | ||
@@ -206,0 +209,0 @@ /** |
@@ -210,6 +210,9 @@ "use strict"; | ||
function pick(obj, propNames) { | ||
var copy = {}; | ||
propNames.forEach(function (prop) { if (obj.hasOwnProperty(prop)) | ||
copy[prop] = obj[prop]; }); | ||
return copy; | ||
var objCopy = {}; | ||
for (var prop_1 in obj) { | ||
if (propNames.indexOf(prop_1) !== -1) { | ||
objCopy[prop_1] = obj[prop_1]; | ||
} | ||
} | ||
return objCopy; | ||
} | ||
@@ -216,0 +219,0 @@ exports.pick = pick; |
{ | ||
"name": "@uirouter/core", | ||
"description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "clean": "shx rm -rf lib lib-esm _bundles", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
3302155
473
39708