@parcel/rust 2.12.1-canary.3351 → 2.12.1-canary.3354

Sign up to get free protection for your applications and to get access to all the features.
package/browser.js CHANGED
@@ -1,5 +1,3 @@
1
- /* global WebAssembly, crypto */
2
-
3
1
  const {Environment, napi} = require('napi-wasm');
4
2
 
5
3
  let env;
package/index.d.ts CHANGED
@@ -7,12 +7,12 @@ export interface JsMacroError {
7
7
  kind: number
8
8
  message: string
9
9
  }
10
- export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
11
- export function findFirstFile(names: Array<string>): string | null
12
- export function findNodeModule(module: string, from: string): string | null
13
- export function hashString(s: string): string
14
- export function hashBuffer(buf: Buffer): string
15
- export function optimizeImage(kind: string, buf: Buffer): Buffer
10
+ export declare function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
11
+ export declare function findFirstFile(names: Array<string>): string | null
12
+ export declare function findNodeModule(module: string, from: string): string | null
13
+ export declare function hashString(s: string): string
14
+ export declare function hashBuffer(buf: Buffer): string
15
+ export declare function optimizeImage(kind: string, buf: Buffer): Buffer
16
16
  export interface JsFileSystemOptions {
17
17
  canonicalize: (...args: any[]) => any
18
18
  read: (...args: any[]) => any
@@ -61,15 +61,15 @@ export interface JsInvalidations {
61
61
  invalidateOnFileCreate: Array<FilePathCreateInvalidation | FileNameCreateInvalidation | GlobCreateInvalidation>
62
62
  invalidateOnStartup: boolean
63
63
  }
64
- export function transform(opts: object): unknown
65
- export function transformAsync(opts: object): object
66
- export class Hash {
64
+ export declare function transform(opts: object): unknown
65
+ export declare function transformAsync(opts: object): object
66
+ export declare class Hash {
67
67
  constructor()
68
68
  writeString(s: string): void
69
69
  writeBuffer(buf: Buffer): void
70
70
  finish(): string
71
71
  }
72
- export class Resolver {
72
+ export declare class Resolver {
73
73
  constructor(projectRoot: string, options: FileSystem)
74
74
  resolve(options: ResolveOptions): ResolveResult
75
75
  resolveAsync(): object
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-canary.3351+d1f3ffeeb",
3
+ "version": "2.12.1-canary.3354+6f68c78b1",
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": "d1f3ffeebe74a6f3a7cb028210c31a44d93fea23"
43
+ "gitHead": "6f68c78b1fa2b9653e298fd893e43e875ff6bdb8"
44
44
  }