Comparing version 4.0.1 to 4.0.2
15
index.js
@@ -10,2 +10,11 @@ /** | ||
/** 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')(); | ||
/** | ||
@@ -27,6 +36,6 @@ * Gets the timestamp of the number of milliseconds that have elapsed since | ||
*/ | ||
function now() { | ||
return Date.now(); | ||
} | ||
var now = function() { | ||
return root.Date.now(); | ||
}; | ||
module.exports = now; |
{ | ||
"name": "lodash.now", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "The lodash method `_.now` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.now v4.0.1 | ||
# lodash.now v4.0.2 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.now` exported as a [Node.js](https://nodejs.org/) module. | ||
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. |
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
4371
34