perf-deets
Advanced tools
Comparing version 1.0.13 to 1.0.14
13
index.js
@@ -86,6 +86,11 @@ let buffer = 40000; | ||
function isWorker() { | ||
return ( | ||
typeof WorkerGlobalScope !== 'undefined' && | ||
self instanceof WorkerGlobalScope | ||
// TODO: To support other environments/setups, we should abstract how | ||
// to communicate to this package and allow custom protocols. While | ||
// the message handler below is just a convenience, to log data we | ||
// currently use `postMessage` which makes assumptions about the | ||
// environment | ||
if (globalThis.addEventListener == null) { | ||
throw new Error( | ||
'perf-deets currently only supports browser and web worker environments. ' + | ||
'Other environments should alias the package to `perf-deets/noop`.' | ||
); | ||
@@ -92,0 +97,0 @@ } |
{ | ||
"name": "perf-deets", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"main": "./index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
11249
348