Comparing version 3.0.0-beta.1 to 3.0.0
@@ -58,3 +58,3 @@ const Flatted = require('flatted'), | ||
__uvm_emit('[["1"],"load.${id}"]'); | ||
__uvm_emit('${Flatted.stringify(['load.' + id])}'); | ||
__uvm_emit = null; delete __uvm_emit; | ||
@@ -74,2 +74,3 @@ __uvm_setTimeout = null; delete __uvm_setTimeout; | ||
forwardEmits = (e) => { | ||
// e.data for Web Worker (MessageEvent.data) | ||
const { __emit_uvm, __id_uvm } = e?.data || e || /* istanbul ignore next */ {}; | ||
@@ -153,2 +154,3 @@ | ||
if (typeof worker.addEventListener !== 'function') { | ||
// add event listener methods for Node.js worker | ||
worker.addEventListener = worker.on.bind(worker); | ||
@@ -155,0 +157,0 @@ worker.removeEventListener = worker.off.bind(worker); |
{ | ||
"name": "uvm", | ||
"version": "3.0.0-beta.1", | ||
"version": "3.0.0", | ||
"description": "Universal Virtual Machine for Node and Browser", | ||
@@ -5,0 +5,0 @@ "author": "Postman Inc.", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
39991
519
0
0