@parcel/rust 2.12.1-canary.3284 → 2.12.1-canary.3286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +26 -0
- package/package.json +2 -2
- package/parcel-node-bindings.darwin-arm64.node +0 -0
- package/parcel-node-bindings.darwin-x64.node +0 -0
- package/parcel-node-bindings.linux-arm-gnueabihf.node +0 -0
- package/parcel-node-bindings.linux-arm64-gnu.node +0 -0
- package/parcel-node-bindings.linux-arm64-musl.node +0 -0
- package/parcel-node-bindings.linux-x64-gnu.node +0 -0
- package/parcel-node-bindings.linux-x64-musl.node +0 -0
- package/parcel-node-bindings.win32-x64-msvc.node +0 -0
package/index.d.ts
CHANGED
|
@@ -15,6 +15,31 @@ export function findNodeModule(module: string, from: string): string | null
|
|
|
15
15
|
export function hashString(s: string): string
|
|
16
16
|
export function hashBuffer(buf: Buffer): string
|
|
17
17
|
export function optimizeImage(kind: string, buf: Buffer): Buffer
|
|
18
|
+
/**
|
|
19
|
+
* JavaScript provided options to configure the `tracing_subscriber` rust logs into a file or the
|
|
20
|
+
* console.
|
|
21
|
+
*/
|
|
22
|
+
export interface ParcelTracingOptions {
|
|
23
|
+
/** Enable tracing */
|
|
24
|
+
enabled: boolean
|
|
25
|
+
/**
|
|
26
|
+
* If set to some, will trace to a file with the given options, otherwise the console will be
|
|
27
|
+
* used.
|
|
28
|
+
*/
|
|
29
|
+
outputFileOptions?: ParcelTracingOutputFileOptions
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Output file configuration.
|
|
33
|
+
* Tracing log files will be rotated hourly on the provided directory.
|
|
34
|
+
*/
|
|
35
|
+
export interface ParcelTracingOutputFileOptions {
|
|
36
|
+
/** The directory where the log files will be written. */
|
|
37
|
+
directory: string
|
|
38
|
+
/** A prefix for the log file names. */
|
|
39
|
+
prefix: string
|
|
40
|
+
/** The maximum number of rotated files to keep. */
|
|
41
|
+
maxFiles: number
|
|
42
|
+
}
|
|
18
43
|
export interface ParcelNapiBuildOptions {
|
|
19
44
|
|
|
20
45
|
}
|
|
@@ -26,6 +51,7 @@ export interface ParcelNapiOptions {
|
|
|
26
51
|
nodeWorkers?: number
|
|
27
52
|
fs?: object
|
|
28
53
|
rpc: (...args: any[]) => any
|
|
54
|
+
tracingOptions?: ParcelTracingOptions
|
|
29
55
|
}
|
|
30
56
|
export function workerCallback(callback: (...args: any[]) => any): void
|
|
31
57
|
export interface JsFileSystemOptions {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcel/rust",
|
|
3
|
-
"version": "2.12.1-canary.
|
|
3
|
+
"version": "2.12.1-canary.3286+1b6b6bf66",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
|
|
41
41
|
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p parcel-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/parcel_node_bindings.wasm -o parcel_node_bindings.wasm"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "1b6b6bf6691e97ef788796a3ea7ddb1544140f75"
|
|
44
44
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|