Bump to v4.0.2.

This commit is contained in:
John-David Dalton
2016-01-24 22:41:24 -08:00
parent c033f79116
commit a9140d2c8f
545 changed files with 6999 additions and 2625 deletions

View File

@@ -1,4 +1,4 @@
# lodash.now v4.0.1
# lodash.now v4.0.2
The [lodash](https://lodash.com/) method `_.now` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var now = require('lodash.now');
```
See the [documentation](https://lodash.com/docs#now) or [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash.now) for more details.
See the [documentation](https://lodash.com/docs#now) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.now) for more details.

View File

@@ -7,6 +7,15 @@
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
/** Detect free variable `global` from Node.js. */
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
/** Detect free variable `self`. */
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || Function('return this')();
/**
* Gets the timestamp of the number of milliseconds that have elapsed since
* the Unix epoch (1 January 1970 00:00:00 UTC).
@@ -23,8 +32,8 @@
* }, _.now());
* // => Logs the number of milliseconds it took for the deferred invocation.
*/
function now() {
return Date.now();
}
var now = function() {
return root.Date.now();
};
module.exports = now;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.now",
"version": "4.0.1",
"version": "4.0.2",
"description": "The lodash method `_.now` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",