@parcel/rust
Advanced tools
Comparing version 2.12.1-canary.3319 to 2.12.1-canary.3320
@@ -19,3 +19,3 @@ /* tslint:disable */ | ||
export interface ParcelNapiBuildOptions { | ||
registerWorker: (...args: any[]) => any | ||
} | ||
@@ -33,3 +33,25 @@ export interface ParcelNapiBuildResult { | ||
} | ||
export function registerWorker(worker: object): void | ||
/** | ||
* This function is run in the Nodejs worker context upon initialization | ||
* to notify the main thread that a Nodejs worker thread has started | ||
* | ||
* A Rust channel is transferred to the worker via JavaScript `worker.postMessage`. | ||
* The worker then calls `register_worker`, supplying it with an object containing | ||
* callbacks. | ||
* | ||
* The callbacks are later called from the main thread to send work to the worker. | ||
* | ||
* |-------------| --- Init channel ----> |-------------------| | ||
* | Main Thread | | Worker Thread (n) | | ||
* |-------------| <-- Worker wrapper --- |-------------------| | ||
* | ||
* **Later During Build** | ||
* | ||
* -- Resolver.resolve --> | ||
* <- DependencyResult --- | ||
* | ||
* -- Transf.transform --> | ||
* <--- Array<Asset> ----- | ||
*/ | ||
export function registerWorker(channel: JsTransferable, worker: object): void | ||
export interface JsFileSystemOptions { | ||
@@ -36,0 +58,0 @@ canonicalize: (...args: any[]) => any |
{ | ||
"name": "@parcel/rust", | ||
"version": "2.12.1-canary.3319+7fd97e461", | ||
"version": "2.12.1-canary.3320+8cc5c8f48", | ||
"license": "MIT", | ||
@@ -43,3 +43,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "7fd97e461582aa2cf22ed6cc7f3f788da63edd09" | ||
"gitHead": "8cc5c8f4826882f8f066b3efff751324c3b9986c" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 8 instances in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
489
3
267452997