@parcel/rust 2.12.1-canary.3317 → 2.12.1-canary.3319
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +1 -26
- package/index.js.flow +9 -1
- 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,31 +15,6 @@ 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
|
-
}
|
43
18
|
export interface ParcelNapiBuildOptions {
|
44
19
|
|
45
20
|
}
|
@@ -52,7 +27,7 @@ export interface ParcelNapiOptions {
|
|
52
27
|
options: object
|
53
28
|
packageManager?: object
|
54
29
|
threads?: number
|
55
|
-
|
30
|
+
tracerOptions?: object
|
56
31
|
}
|
57
32
|
export function registerWorker(worker: object): void
|
58
33
|
export interface JsFileSystemOptions {
|
package/index.js.flow
CHANGED
@@ -5,7 +5,6 @@ import type {
|
|
5
5
|
FilePath,
|
6
6
|
InitialParcelOptions,
|
7
7
|
PackageManager,
|
8
|
-
FileSystem as ParcelFileSystem,
|
9
8
|
} from '@parcel/types';
|
10
9
|
|
11
10
|
declare export var init: void | (() => void);
|
@@ -48,6 +47,15 @@ export type ParcelNapiOptions = {|
|
|
48
47
|
|},
|
49
48
|
packageManager?: PackageManager,
|
50
49
|
threads?: number,
|
50
|
+
tracerOptions?:
|
51
|
+
| {|mode: 'disabled'|}
|
52
|
+
| {|mode: 'stdout'|}
|
53
|
+
| {|
|
54
|
+
mode: 'file',
|
55
|
+
directory: string,
|
56
|
+
prefix: string,
|
57
|
+
maxFiles: number,
|
58
|
+
|},
|
51
59
|
|};
|
52
60
|
|
53
61
|
declare export class ParcelNapi {
|
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.3319+7fd97e461",
|
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": "7fd97e461582aa2cf22ed6cc7f3f788da63edd09"
|
44
44
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|