Comparing version 0.3.0 to 0.5.0
@@ -6,2 +6,5 @@ 'use strict'; | ||
}); | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var isObject = function isObject(a) { | ||
@@ -91,5 +94,3 @@ return typeof a == 'object' && a !== null; | ||
return values.reduce(function (composition, value, index) { | ||
return Object.assign(composition, { | ||
[objectKeys[index]]: value | ||
}); | ||
return Object.assign(composition, _defineProperty({}, objectKeys[index], value)); | ||
}, {}); | ||
@@ -103,3 +104,3 @@ }]]; | ||
throw new Error(`Invalid value of type ${typeof selector} for creating a selector`); | ||
throw new Error('Invalid value of type ' + typeof selector + ' for creating a selector'); | ||
} | ||
@@ -106,0 +107,0 @@ |
{ | ||
"name": "re-select", | ||
"version": "0.3.0", | ||
"version": "0.5.0", | ||
"description": "Memoized selector library", | ||
@@ -32,2 +32,3 @@ "main": "lib/index.js", | ||
"babel-plugin-transform-es2015-block-scoping": "^6.24.1", | ||
"babel-plugin-transform-es2015-computed-properties": "^6.24.1", | ||
"babel-plugin-transform-es2015-function-name": "^6.24.1", | ||
@@ -37,2 +38,3 @@ "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", | ||
"babel-plugin-transform-es2015-spread": "^6.22.0", | ||
"babel-plugin-transform-es2015-template-literals": "^6.22.0", | ||
"babel-register": "^6.24.1", | ||
@@ -39,0 +41,0 @@ "mocha": "^3.4.2", |
@@ -82,3 +82,3 @@ # re-select | ||
Let's take a closer look on how it works. | ||
Let's take a closer look at how it works. | ||
@@ -85,0 +85,0 @@ The selectors consisted of two parts. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43289
13
16
176
2