@uirouter/core
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -148,6 +148,5 @@ import { StateObject } from "../state/stateObject"; | ||
* Return a copy of the object only containing the whitelisted properties. | ||
* @example | ||
* | ||
* #### Example: | ||
* ``` | ||
* | ||
* var foo = { a: 1, b: 2, c: 3 }; | ||
@@ -154,0 +153,0 @@ * var ab = pick(foo, ['a', 'b']); // { a: 1, b: 2 } |
@@ -10,3 +10,3 @@ /** | ||
/** for typedoc */ | ||
import { isFunction, isString, isArray, isRegExp, isDate, isDefined } from "./predicates"; | ||
import { isFunction, isString, isArray, isRegExp, isDate } from "./predicates"; | ||
import { all, any, prop, curry, val, not } from "./hof"; | ||
@@ -191,6 +191,5 @@ import { services } from "./coreservices"; | ||
* Return a copy of the object only containing the whitelisted properties. | ||
* @example | ||
* | ||
* #### Example: | ||
* ``` | ||
* | ||
* var foo = { a: 1, b: 2, c: 3 }; | ||
@@ -204,4 +203,3 @@ * var ab = pick(foo, ['a', 'b']); // { a: 1, b: 2 } | ||
var copy = {}; | ||
// propNames.forEach(prop => { if (obj.hasOwnProperty(prop)) copy[prop] = obj[prop] }); | ||
propNames.forEach(function (prop) { if (isDefined(obj[prop])) | ||
propNames.forEach(function (prop) { if (obj.hasOwnProperty(prop)) | ||
copy[prop] = obj[prop]; }); | ||
@@ -208,0 +206,0 @@ return copy; |
@@ -148,6 +148,5 @@ import { StateObject } from "../state/stateObject"; | ||
* Return a copy of the object only containing the whitelisted properties. | ||
* @example | ||
* | ||
* #### Example: | ||
* ``` | ||
* | ||
* var foo = { a: 1, b: 2, c: 3 }; | ||
@@ -154,0 +153,0 @@ * var ab = pick(foo, ['a', 'b']); // { a: 1, b: 2 } |
@@ -200,6 +200,5 @@ "use strict"; | ||
* Return a copy of the object only containing the whitelisted properties. | ||
* @example | ||
* | ||
* #### Example: | ||
* ``` | ||
* | ||
* var foo = { a: 1, b: 2, c: 3 }; | ||
@@ -213,4 +212,3 @@ * var ab = pick(foo, ['a', 'b']); // { a: 1, b: 2 } | ||
var copy = {}; | ||
// propNames.forEach(prop => { if (obj.hasOwnProperty(prop)) copy[prop] = obj[prop] }); | ||
propNames.forEach(function (prop) { if (predicates_1.isDefined(obj[prop])) | ||
propNames.forEach(function (prop) { if (obj.hasOwnProperty(prop)) | ||
copy[prop] = obj[prop]; }); | ||
@@ -217,0 +215,0 @@ return copy; |
{ | ||
"name": "@uirouter/core", | ||
"description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"scripts": { | ||
"clean": "shx rm -rf lib lib-esm", | ||
"build": "npm run clean && tsc && tsc -m es6 --outDir lib-esm && npm run fixdts", | ||
"clean": "shx rm -rf lib lib-esm _bundles", | ||
"build": "npm run clean && tsc && tsc -m es6 --outDir lib-esm && npm run fixdts && npm run bundle", | ||
"bundle": "rollup -c && rollup -c --environment MINIFY", | ||
"fixdts": "dts-downlevel 'lib/**/*.d.ts' 'lib-esm/**/*.d.ts'", | ||
@@ -75,3 +76,3 @@ "install": "node ./migrate/migratewarn.js", | ||
"karma-jasmine": "^1.0.2", | ||
"karma-phantomjs-launcher": "^1.0.2", | ||
"karma-phantomjs-launcher": "^1.0.4", | ||
"karma-script-launcher": "~0.1.0", | ||
@@ -82,2 +83,8 @@ "karma-sourcemap-loader": "^0.3.7", | ||
"readline-sync": "^1.4.4", | ||
"rollup": "^0.41.6", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"rollup-plugin-progress": "^0.2.1", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-uglify": "^1.0.2", | ||
"rollup-plugin-visualizer": "^0.2.1", | ||
"shelljs": "^0.7.0", | ||
@@ -84,0 +91,0 @@ "shx": "^0.1.4", |
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
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
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
3383850
475
39736
30
1