@parcel/rust 2.12.1-dev.3188 → 2.12.1-dev.3196
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 -0
- package/index.js +3 -1
- package/index.js.flow +22 -13
- package/package.json +4 -3
- 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,6 +7,8 @@ export interface JsMacroError {
|
|
7
7
|
kind: number
|
8
8
|
message: string
|
9
9
|
}
|
10
|
+
export function initSentry(): void
|
11
|
+
export function closeSentry(): void
|
10
12
|
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
|
11
13
|
export function findFirstFile(names: Array<string>): string | null
|
12
14
|
export function findNodeModule(module: string, from: string): string | null
|
package/index.js
CHANGED
@@ -295,8 +295,10 @@ if (!nativeBinding) {
|
|
295
295
|
throw new Error(`Failed to load native binding`)
|
296
296
|
}
|
297
297
|
|
298
|
-
const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
298
|
+
const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
299
299
|
|
300
|
+
module.exports.initSentry = initSentry
|
301
|
+
module.exports.closeSentry = closeSentry
|
300
302
|
module.exports.findAncestorFile = findAncestorFile
|
301
303
|
module.exports.findFirstFile = findFirstFile
|
302
304
|
module.exports.findNodeModule = findNodeModule
|
package/index.js.flow
CHANGED
@@ -3,12 +3,21 @@ import type {FileCreateInvalidation} from '@parcel/types';
|
|
3
3
|
|
4
4
|
declare export var init: void | (() => void);
|
5
5
|
|
6
|
-
declare export function
|
7
|
-
declare export function
|
8
|
-
declare export function
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
declare export function initSentry(): void;
|
7
|
+
declare export function closeSentry(): void;
|
8
|
+
declare export function findAncestorFile(
|
9
|
+
filenames: Array<string>,
|
10
|
+
from: string,
|
11
|
+
root: string,
|
12
|
+
): string | null;
|
13
|
+
declare export function findFirstFile(names: Array<string>): string | null;
|
14
|
+
declare export function findNodeModule(
|
15
|
+
module: string,
|
16
|
+
from: string,
|
17
|
+
): string | null;
|
18
|
+
declare export function hashString(s: string): string;
|
19
|
+
declare export function hashBuffer(buf: Buffer): string;
|
20
|
+
declare export function optimizeImage(kind: string, buf: Buffer): Buffer;
|
12
21
|
export interface JsFileSystemOptions {
|
13
22
|
canonicalize: string => string;
|
14
23
|
read: string => Buffer;
|
@@ -17,14 +26,14 @@ export interface JsFileSystemOptions {
|
|
17
26
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
18
27
|
}
|
19
28
|
export interface FileSystem {
|
20
|
-
fs?: JsFileSystemOptions
|
29
|
+
fs?: JsFileSystemOptions;
|
21
30
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
22
|
-
conditions?: number
|
23
|
-
moduleDirResolver?: (...args: any[]) => any
|
24
|
-
mode: number
|
25
|
-
entries?: number
|
26
|
-
extensions?: Array<string
|
27
|
-
packageExports: boolean
|
31
|
+
conditions?: number;
|
32
|
+
moduleDirResolver?: (...args: any[]) => any;
|
33
|
+
mode: number;
|
34
|
+
entries?: number;
|
35
|
+
extensions?: Array<string>;
|
36
|
+
packageExports: boolean;
|
28
37
|
}
|
29
38
|
export interface ResolveOptions {
|
30
39
|
filename: string;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/rust",
|
3
|
-
"version": "2.12.1-dev.
|
3
|
+
"version": "2.12.1-dev.3196+c9a0ab031",
|
4
4
|
"license": "MIT",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -19,7 +19,7 @@
|
|
19
19
|
"name": "parcel-node-bindings"
|
20
20
|
},
|
21
21
|
"engines": {
|
22
|
-
"node": ">=
|
22
|
+
"node": ">= 16.0.0"
|
23
23
|
},
|
24
24
|
"files": [
|
25
25
|
"browser.js",
|
@@ -35,9 +35,10 @@
|
|
35
35
|
},
|
36
36
|
"scripts": {
|
37
37
|
"build": "napi build --platform --cargo-cwd ../../../crates/node-bindings",
|
38
|
+
"build-canary": "napi build --platform --profile canary --features canary --cargo-cwd ../../../crates/node-bindings",
|
38
39
|
"build-release": "napi build --platform --release --cargo-cwd ../../../crates/node-bindings",
|
39
40
|
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
|
40
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"
|
41
42
|
},
|
42
|
-
"gitHead": "
|
43
|
+
"gitHead": "c9a0ab031986a896a5991de16420b12988d013cd"
|
43
44
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|