lodash.debounce
Advanced tools
+12
-11
| /** | ||
| * lodash 3.0.3 (Custom Build) <https://lodash.com/> | ||
| * lodash 3.1.0 (Custom Build) <https://lodash.com/> | ||
| * Build: `lodash modern modularize exports="npm" -o ./` | ||
| * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
| * Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
| * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
| * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
| * Available under MIT license <https://lodash.com/license> | ||
| */ | ||
| var isNative = require('lodash.isnative'); | ||
| var getNative = require('lodash._getnative'); | ||
@@ -16,3 +16,3 @@ /** Used as the `TypeError` message for "Functions" methods. */ | ||
| var nativeMax = Math.max, | ||
| nativeNow = isNative(nativeNow = Date.now) && nativeNow; | ||
| nativeNow = getNative(Date, 'now'); | ||
@@ -38,8 +38,9 @@ /** | ||
| /** | ||
| * Creates a function that delays invoking `func` until after `wait` milliseconds | ||
| * have elapsed since the last time it was invoked. The created function comes | ||
| * with a `cancel` method to cancel delayed invocations. Provide an options | ||
| * object to indicate that `func` should be invoked on the leading and/or | ||
| * trailing edge of the `wait` timeout. Subsequent calls to the debounced | ||
| * function return the result of the last `func` invocation. | ||
| * Creates a debounced function that delays invoking `func` until after `wait` | ||
| * milliseconds have elapsed since the last time the debounced function was | ||
| * invoked. The debounced function comes with a `cancel` method to cancel | ||
| * delayed invocations. Provide an options object to indicate that `func` | ||
| * should be invoked on the leading and/or trailing edge of the `wait` timeout. | ||
| * Subsequent calls to the debounced function return the result of the last | ||
| * `func` invocation. | ||
| * | ||
@@ -238,5 +239,5 @@ * **Note:** If `leading` and `trailing` options are `true`, `func` is invoked | ||
| var type = typeof value; | ||
| return type == 'function' || (!!value && type == 'object'); | ||
| return !!value && (type == 'object' || type == 'function'); | ||
| } | ||
| module.exports = debounce; |
+2
-2
| { | ||
| "name": "lodash.debounce", | ||
| "version": "3.0.3", | ||
| "version": "3.1.0", | ||
| "description": "The modern build of lodash’s `_.debounce` as a module.", | ||
@@ -20,4 +20,4 @@ "homepage": "https://lodash.com/", | ||
| "dependencies": { | ||
| "lodash.isnative": "^3.0.0" | ||
| "lodash._getnative": "^3.0.0" | ||
| } | ||
| } |
+2
-2
@@ -1,2 +0,2 @@ | ||
| # lodash.debounce v3.0.3 | ||
| # lodash.debounce v3.1.0 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.debounce` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
| See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.debounce) for more details. | ||
| See the [documentation](https://lodash.com/docs#debounce) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.debounce) for more details. |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
10054
0.19%227
0.44%+ Added
+ Added
- Removed
- Removed