@atlaspack/rust 2.13.2-canary.3655 → 2.13.2-canary.3657

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 CHANGED
@@ -40,9 +40,6 @@ export declare function optimizeImage(kind: string, buf: Buffer): Buffer
40
40
  export declare function createAssetId(params: unknown): string
41
41
  export interface AtlaspackNapiBuildOptions {
42
42
  registerWorker: (...args: any[]) => any
43
- }
44
- export interface AtlaspackNapiBuildResult {
45
-
46
43
  }
47
44
  export interface AtlaspackNapiOptions {
48
45
  fs?: object
@@ -186,6 +183,7 @@ export class AtlaspackNapi {
186
183
  nodeWorkerCount: number
187
184
  static create(napiOptions: AtlaspackNapiOptions, lmdb: LMDB): AtlaspackNapi
188
185
  buildAssetGraph(options: AtlaspackNapiBuildOptions): object
186
+ respondToFsEvents(options: object): object
189
187
  }
190
188
  export class Resolver {
191
189
  constructor(projectRoot: string, options: FileSystem)
package/index.js.flow CHANGED
@@ -9,6 +9,15 @@ import type {
9
9
 
10
10
  declare export var init: void | (() => void);
11
11
 
12
+ export type WatchEventType = 'create' | 'update' | 'delete';
13
+
14
+ export interface WatchEvent {
15
+ path: string,
16
+ type: WatchEventType,
17
+ }
18
+
19
+ export type WatchEvents = Array<WatchEvent>;
20
+
12
21
  export type Transferable = {||};
13
22
 
14
23
  export type JsCallable<Args: $ReadOnlyArray<mixed>, Return> = (
@@ -66,6 +75,7 @@ declare export class AtlaspackNapi {
66
75
  nodeWorkerCount: number;
67
76
  build(options: AtlaspackBuildOptions): Promise<void>;
68
77
  buildAssetGraph(options: AtlaspackBuildOptions): Promise<any>;
78
+ respondToFsEvents(events: WatchEvents): boolean;
69
79
  static defaultThreadCount(): number;
70
80
  testingTempFsReadToString(path: string): string;
71
81
  testingTempFsIsDir(path: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/rust",
3
- "version": "2.13.2-canary.3655+9247743b7",
3
+ "version": "2.13.2-canary.3657+93732232c",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,5 +37,5 @@
37
37
  "wasm:build": "cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/atlaspack_node_bindings.wasm .",
38
38
  "wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/atlaspack_node_bindings.wasm -o atlaspack_node_bindings.wasm"
39
39
  },
40
- "gitHead": "9247743b7f2eecc46b4c405fef03a0719a9c170b"
40
+ "gitHead": "93732232c38c42c9357356bdfd8325cd0bc2536d"
41
41
  }