@parcel/rust 2.12.1-canary.3330 → 2.12.1-canary.3332

Sign up to get free protection for your applications and to get access to all the features.
package/index.d.ts CHANGED
@@ -7,14 +7,14 @@ export interface JsMacroError {
7
7
  kind: number
8
8
  message: string
9
9
  }
10
- export function initSentry(): void
11
- export function closeSentry(): void
12
10
  export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
13
11
  export function findFirstFile(names: Array<string>): string | null
14
12
  export function findNodeModule(module: string, from: string): string | null
15
13
  export function hashString(s: string): string
16
14
  export function hashBuffer(buf: Buffer): string
17
15
  export function optimizeImage(kind: string, buf: Buffer): Buffer
16
+ export function initializeMonitoring(): void
17
+ export function closeMonitoring(): void
18
18
  export interface ParcelNapiBuildOptions {
19
19
  registerWorker: (...args: any[]) => any
20
20
  }
@@ -27,7 +27,6 @@ export interface ParcelNapiOptions {
27
27
  options: object
28
28
  packageManager?: object
29
29
  threads?: number
30
- tracerOptions?: object
31
30
  }
32
31
  /**
33
32
  * This function is run in the Nodejs worker context upon initialization
package/index.js CHANGED
@@ -310,10 +310,8 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, ParcelNapi, registerWorker, Resolver, ResolverOld, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
313
+ const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, initializeMonitoring, closeMonitoring, ParcelNapi, registerWorker, Resolver, ResolverOld, testingRunParcelJsTransformerPlugin, transform, transformAsync } = nativeBinding
314
314
 
315
- module.exports.initSentry = initSentry
316
- module.exports.closeSentry = closeSentry
317
315
  module.exports.findAncestorFile = findAncestorFile
318
316
  module.exports.findFirstFile = findFirstFile
319
317
  module.exports.findNodeModule = findNodeModule
@@ -321,6 +319,8 @@ module.exports.hashString = hashString
321
319
  module.exports.hashBuffer = hashBuffer
322
320
  module.exports.Hash = Hash
323
321
  module.exports.optimizeImage = optimizeImage
322
+ module.exports.initializeMonitoring = initializeMonitoring
323
+ module.exports.closeMonitoring = closeMonitoring
324
324
  module.exports.ParcelNapi = ParcelNapi
325
325
  module.exports.registerWorker = registerWorker
326
326
  module.exports.Resolver = Resolver
package/index.js.flow CHANGED
@@ -49,15 +49,6 @@ export type ParcelNapiOptions = {|
49
49
  |},
50
50
  packageManager?: PackageManager,
51
51
  threads?: number,
52
- tracerOptions?:
53
- | {|mode: 'disabled'|}
54
- | {|mode: 'stdout'|}
55
- | {|
56
- mode: 'file',
57
- directory: string,
58
- prefix: string,
59
- maxFiles: number,
60
- |},
61
52
  |};
62
53
 
63
54
  export type ParcelBuildOptions = {|
@@ -81,8 +72,8 @@ declare export function registerWorker(
81
72
  worker: any,
82
73
  ): void;
83
74
 
84
- declare export function initSentry(): void;
85
- declare export function closeSentry(): void;
75
+ declare export function initializeMonitoring(): void;
76
+ declare export function closeMonitoring(): void;
86
77
  declare export function napiRunConfigRequest(
87
78
  configRequest: ConfigRequest,
88
79
  api: any,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/rust",
3
- "version": "2.12.1-canary.3330+8ab5d078b",
3
+ "version": "2.12.1-canary.3332+4ce0f6eb0",
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": "8ab5d078beedb9a2dcb2b798d674444bb9a82241"
43
+ "gitHead": "4ce0f6eb01da680891a29183833f5f6a881bcb74"
44
44
  }