lodash._createwrapper
Advanced tools
Comparing version 2.4.0 to 2.4.1
20
index.js
/** | ||
* Lo-Dash 2.4.0 (Custom Build) <http://lodash.com/> | ||
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/> | ||
* Build: `lodash modularize modern exports="npm" -o ./npm/` | ||
@@ -11,3 +11,4 @@ * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/> | ||
baseCreateWrapper = require('lodash._basecreatewrapper'), | ||
isFunction = require('lodash.isfunction'); | ||
isFunction = require('lodash.isfunction'), | ||
slice = require('lodash._slice'); | ||
@@ -23,3 +24,4 @@ /** | ||
/** Native method shortcuts */ | ||
var push = arrayRef.push; | ||
var push = arrayRef.push, | ||
unshift = arrayRef.unshift; | ||
@@ -69,4 +71,10 @@ /** | ||
if (bindData && bindData !== true) { | ||
bindData = bindData.slice(); | ||
// clone `bindData` | ||
bindData = slice(bindData); | ||
if (bindData[2]) { | ||
bindData[2] = slice(bindData[2]); | ||
} | ||
if (bindData[3]) { | ||
bindData[3] = slice(bindData[3]); | ||
} | ||
// set `thisBinding` is not previously bound | ||
@@ -90,3 +98,3 @@ if (isBind && !(bindData[1] & 1)) { | ||
if (isPartialRight) { | ||
push.apply(bindData[3] || (bindData[3] = []), partialRightArgs); | ||
unshift.apply(bindData[3] || (bindData[3] = []), partialRightArgs); | ||
} | ||
@@ -93,0 +101,0 @@ // merge flags |
{ | ||
"name": "lodash._createwrapper", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "The internal Lo-Dash function `createWrapper` as a Node.js module generated by lodash-cli.", | ||
@@ -17,6 +17,7 @@ "homepage": "http://lodash.com/custom-builds", | ||
"dependencies": { | ||
"lodash._basebind": "~2.4.0", | ||
"lodash._basecreatewrapper": "~2.4.0", | ||
"lodash.isfunction": "~2.4.0" | ||
"lodash._basebind": "~2.4.1", | ||
"lodash._basecreatewrapper": "~2.4.1", | ||
"lodash.isfunction": "~2.4.1", | ||
"lodash._slice": "~2.4.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash._createwrapper v2.4.0 | ||
# lodash._createwrapper v2.4.1 | ||
@@ -3,0 +3,0 @@ The internal [Lo-Dash](http://lodash.com/) function `createWrapper` as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli). |
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
6825
101
4
+ Addedlodash._slice@~2.4.1
Updatedlodash._basebind@~2.4.1
Updatedlodash.isfunction@~2.4.1