Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uirouter/core

Package Overview
Dependencies
Maintainers
4
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uirouter/core - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

_bundles/ui-router-core.js

5

lib-esm/common/common.d.ts

@@ -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 }

8

lib/common/common.js

@@ -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

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