lodash._createwrapper
Advanced tools
Comparing version 3.0.0 to 3.0.1
13
index.js
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -11,4 +11,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
baseCreate = require('lodash._basecreate'), | ||
replaceHolders = require('lodash._replaceholders'), | ||
isFunction = require('lodash.isfunction'); | ||
replaceHolders = require('lodash._replaceholders'); | ||
@@ -34,3 +33,3 @@ /** Used to compose bitmasks for wrapper metadata. */ | ||
* Used as the maximum length of an array-like value. | ||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength) | ||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer) | ||
* for more details. | ||
@@ -285,3 +284,3 @@ */ | ||
var isBindKey = bitmask & BIND_KEY_FLAG; | ||
if (!isBindKey && !isFunction(func)) { | ||
if (!isBindKey && typeof func != 'function') { | ||
throw new TypeError(FUNC_ERROR_TEXT); | ||
@@ -310,5 +309,5 @@ } | ||
} else if ((bitmask == PARTIAL_FLAG || bitmask == (BIND_FLAG | PARTIAL_FLAG)) && !newData[4].length) { | ||
result = createPartialWrapper.apply(null, newData); | ||
result = createPartialWrapper.apply(undefined, newData); | ||
} else { | ||
result = createHybridWrapper.apply(null, newData); | ||
result = createHybridWrapper.apply(undefined, newData); | ||
} | ||
@@ -315,0 +314,0 @@ return result; |
{ | ||
"name": "lodash._createwrapper", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "The modern build of lodash’s internal `createWrapper` as a module.", | ||
@@ -21,5 +21,4 @@ "homepage": "https://lodash.com/", | ||
"lodash._basecreate": "^3.0.0", | ||
"lodash._replaceholders": "^3.0.0", | ||
"lodash.isfunction": "^3.0.0" | ||
"lodash._replaceholders": "^3.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash._createwrapper v3.0.0 | ||
# lodash._createwrapper v3.0.1 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createWrapper` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createwrapper) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createwrapper) for more details. |
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
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
3
0
15717
347
- Removedlodash.isfunction@^3.0.0
- Removedlodash.isfunction@3.0.9(transitive)