@parcel/rust 2.12.1-canary.3271 → 2.12.1-canary.3273

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -15,6 +15,18 @@ 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
+ export interface ParcelNapiBuildOptions {
19
+
20
+ }
21
+ export interface ParcelNapiBuildResult {
22
+
23
+ }
24
+ export interface ParcelNapiOptions {
25
+ threads?: number
26
+ nodeWorkers?: number
27
+ fs?: object
28
+ rpc: (...args: any[]) => any
29
+ }
18
30
  export function workerCallback(callback: (...args: any[]) => any): void
19
31
  export interface JsFileSystemOptions {
20
32
  canonicalize: (...args: any[]) => any
@@ -73,9 +85,9 @@ export class Hash {
73
85
  finish(): string
74
86
  }
75
87
  export class ParcelNapi {
76
- constructor(options: object)
77
- build(): Promise<void>
78
- static defaultThreadCount(): number
88
+ nodeWorkerCount: number
89
+ constructor(options: ParcelNapiOptions)
90
+ build(options: ParcelNapiBuildOptions): object
79
91
  testingTempFsReadToString(path: string): Promise<string>
80
92
  testingTempFsIsFile(path: string): Promise<boolean>
81
93
  testingTempFsIsDir(path: string): Promise<boolean>
package/index.js.flow CHANGED
@@ -25,8 +25,9 @@ export interface ParcelNapiOptions {
25
25
  }
26
26
 
27
27
  declare export class ParcelNapi {
28
+ nodeWorkerCount: number,
28
29
  constructor(options: ParcelNapiOptions): ParcelNapi;
29
- build(): Promise<void>;
30
+ build(options: {||}): Promise<void>;
30
31
  static defaultThreadCount(): number;
31
32
  testingTempFsReadToString(path: string): string;
32
33
  testingTempFsIsDir(path: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-canary.3271+53161b463",
3
+ "version": "2.12.1-canary.3273+07dfb428a",
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": "53161b46382f9b0e57124c08eea4b526c6f1e995"
43
+ "gitHead": "07dfb428a775ccef7aac25affd9b042571ae1e34"
44
44
  }