Comparing version 3.0.2 to 3.1.0
24
index.js
/** | ||
* lodash 3.0.2 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* lodash 3.1.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
*/ | ||
var createWrapper = require('lodash._createwrapper'), | ||
isIterateeCall = require('lodash._isiterateecall'); | ||
var createWrapper = require('lodash._createwrapper'); | ||
@@ -15,7 +14,4 @@ /** Used to compose bitmasks for wrapper metadata. */ | ||
/* Native method references for those with the same name as other `lodash` methods. */ | ||
var nativeMax = Math.max; | ||
/** | ||
* Creates a function that accepts up to `n` arguments ignoring any | ||
* Creates a function that accepts up to `n` arguments, ignoring any | ||
* additional arguments. | ||
@@ -28,3 +24,3 @@ * | ||
* @param {number} [n=func.length] The arity cap. | ||
* @param- {Object} [guard] Enables use as a callback for functions like `_.map`. | ||
* @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. | ||
* @returns {Function} Returns the new function. | ||
@@ -37,6 +33,4 @@ * @example | ||
function ary(func, n, guard) { | ||
if (guard && isIterateeCall(func, n, guard)) { | ||
n = undefined; | ||
} | ||
n = (func && n == null) ? func.length : nativeMax(+n || 0, 0); | ||
n = guard ? undefined : n; | ||
n = (func && n == null) ? func.length : n; | ||
return createWrapper(func, ARY_FLAG, undefined, undefined, undefined, undefined, n); | ||
@@ -43,0 +37,0 @@ } |
{ | ||
"name": "lodash.ary", | ||
"version": "3.0.2", | ||
"description": "The modern build of lodash’s `_.ary` as a module.", | ||
"version": "3.1.0", | ||
"description": "The lodash method `_.ary` exported as a module.", | ||
"homepage": "https://lodash.com/", | ||
"icon": "https://lodash.com/icon.svg", | ||
"license": "MIT", | ||
"keywords": "lodash, lodash-modularized, stdlib, util", | ||
"keywords": "lodash, lodash-modularized, stdlib, util, ary", | ||
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"contributors": [ | ||
"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)", | ||
"Benjamin Tan <demoneaux@gmail.com> (https://d10.github.io/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)", | ||
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)", | ||
"Blaine Bublitz <blaine@iceddev.com> (https://github.com/phated)", | ||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)" | ||
@@ -20,5 +18,4 @@ ], | ||
"dependencies": { | ||
"lodash._createwrapper": "^3.0.0", | ||
"lodash._isiterateecall": "^3.0.0" | ||
"lodash._createwrapper": "^3.0.0" | ||
} | ||
} |
@@ -1,4 +0,4 @@ | ||
# lodash.ary v3.0.2 | ||
# lodash.ary v3.1.0 | ||
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.ary` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
The [lodash](https://lodash.com/) method `_.ary` exported as a [Node.js](https://nodejs.org/) module. | ||
@@ -8,3 +8,2 @@ ## Installation | ||
Using npm: | ||
```bash | ||
@@ -15,4 +14,3 @@ $ {sudo -H} npm i -g npm | ||
In Node.js/io.js: | ||
In Node.js: | ||
```js | ||
@@ -22,2 +20,2 @@ var ary = require('lodash.ary'); | ||
See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.ary) for more details. | ||
See the [documentation](https://lodash.com/docs#ary) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.ary) for more details. |
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
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
1
3705
33
19
- Removedlodash._isiterateecall@^3.0.0
- Removedlodash._isiterateecall@3.0.9(transitive)