Comparing version 1.0.1 to 2.0.0
10
index.js
'use strict'; | ||
module.exports = function () { | ||
var _ = Error.prepareStackTrace; | ||
Error.prepareStackTrace = function (_, stack) { | ||
return stack; | ||
}; | ||
var stack = new Error().stack.slice(1); | ||
module.exports = () => { | ||
const _ = Error.prepareStackTrace; | ||
Error.prepareStackTrace = (_, stack) => stack; | ||
const stack = new Error().stack.slice(1); | ||
Error.prepareStackTrace = _; | ||
return stack; | ||
}; |
{ | ||
"name": "callsites", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"description": "Get callsites from the V8 stack trace API", | ||
@@ -13,3 +13,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">=0.10" | ||
"node": ">=4" | ||
}, | ||
@@ -37,3 +37,6 @@ "scripts": { | ||
"xo": "*" | ||
}, | ||
"xo": { | ||
"esnext": true | ||
} | ||
} |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3793
8