@wixc3/isomorphic-worker
Advanced tools
Comparing version 1.0.3 to 1.0.4
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Worker = void 0; | ||
exports.Worker = window.Worker; | ||
// globalThis in case of initial worker script inside a worker | ||
exports.Worker = globalThis.Worker; | ||
//# sourceMappingURL=browser-worker.js.map |
{ | ||
"name": "@wixc3/isomorphic-worker", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "simplified cross worker API for web workers and worker threads", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/wixplosives/isomorphic-worker", |
import type { UniversalWorker } from './types'; | ||
export const Worker = window.Worker as { | ||
// globalThis in case of initial worker script inside a worker | ||
export const Worker = globalThis.Worker as { | ||
new (url: string | URL, options: WorkerOptions): UniversalWorker; | ||
}; |
Sorry, the diff of this file is not supported yet
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
14443
204