@parcel/rust 2.12.1-canary.3330 → 2.12.1-canary.3333
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 +2 -3
- package/index.js +3 -3
- package/index.js.flow +2 -11
- 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
|
@@ -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 {
|
|
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
|
|
85
|
-
declare export function
|
|
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.
|
|
3
|
+
"version": "2.12.1-canary.3333+6a8d5e9c9",
|
|
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": "6a8d5e9c90d62a8132f6921a132343295e28f91a"
|
|
44
44
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|