+12
-3
@@ -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; |
+1
-1
| { | ||
| "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/", |
+2
-2
@@ -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. |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
4371
9.77%34
21.43%1
Infinity%