@parcel/rust 2.12.1-canary.3245 → 2.12.1-canary.3248
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +0 -46
- package/index.js +1 -3
- 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
@@ -9,52 +9,6 @@ export interface JsMacroError {
|
|
9
9
|
}
|
10
10
|
export function initSentry(): void
|
11
11
|
export function closeSentry(): void
|
12
|
-
/**
|
13
|
-
* JavaScript API for running a config request.
|
14
|
-
* At the moment the request fields themselves will be copied on call.
|
15
|
-
*
|
16
|
-
* This is not efficient but can be worked around when it becomes an issue.
|
17
|
-
*
|
18
|
-
* This should have exhaustive unit-tests on `packages/core/core/test/requests/ConfigRequest.test.js`.
|
19
|
-
*/
|
20
|
-
export function napiRunConfigRequest(configRequest: ConfigRequest, api: object, options: object): void
|
21
|
-
/** napi entry-point for `run_entry_request`. */
|
22
|
-
export function napiRunEntryRequest(entryRequest: EntryRequestInput, api: object, options: object): EntryResult
|
23
|
-
export interface ConfigKeyChange {
|
24
|
-
filePath: ProjectPath
|
25
|
-
configKey: string
|
26
|
-
}
|
27
|
-
export interface InternalFileCreateInvalidation {
|
28
|
-
filePath?: ProjectPath
|
29
|
-
glob?: InternalGlob
|
30
|
-
fileName?: string
|
31
|
-
aboveFilePath?: ProjectPath
|
32
|
-
}
|
33
|
-
export interface ConfigRequest {
|
34
|
-
id: string
|
35
|
-
invalidateOnFileChange: Array<ProjectPath>
|
36
|
-
invalidateOnConfigKeyChange: Array<ConfigKeyChange>
|
37
|
-
invalidateOnFileCreate: Array<InternalFileCreateInvalidation>
|
38
|
-
invalidateOnEnvChange: Array<string>
|
39
|
-
invalidateOnOptionChange: Array<string>
|
40
|
-
invalidateOnStartup: boolean
|
41
|
-
invalidateOnBuild: boolean
|
42
|
-
}
|
43
|
-
export interface RequestOptions {
|
44
|
-
|
45
|
-
}
|
46
|
-
export interface Entry {
|
47
|
-
filePath: ProjectPath
|
48
|
-
packagePath: ProjectPath
|
49
|
-
}
|
50
|
-
export interface EntryResult {
|
51
|
-
entries: Array<Entry>
|
52
|
-
files: Array<ProjectPath>
|
53
|
-
globs: Array<string>
|
54
|
-
}
|
55
|
-
export interface EntryRequestInput {
|
56
|
-
projectPath: string
|
57
|
-
}
|
58
12
|
export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
|
59
13
|
export function findFirstFile(names: Array<string>): string | null
|
60
14
|
export function findNodeModule(module: string, from: string): string | null
|
package/index.js
CHANGED
@@ -295,12 +295,10 @@ if (!nativeBinding) {
|
|
295
295
|
throw new Error(`Failed to load native binding`)
|
296
296
|
}
|
297
297
|
|
298
|
-
const { initSentry, closeSentry,
|
298
|
+
const { initSentry, closeSentry, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
299
299
|
|
300
300
|
module.exports.initSentry = initSentry
|
301
301
|
module.exports.closeSentry = closeSentry
|
302
|
-
module.exports.napiRunConfigRequest = napiRunConfigRequest
|
303
|
-
module.exports.napiRunEntryRequest = napiRunEntryRequest
|
304
302
|
module.exports.findAncestorFile = findAncestorFile
|
305
303
|
module.exports.findFirstFile = findFirstFile
|
306
304
|
module.exports.findNodeModule = findNodeModule
|
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.3248+5bfc9aa86",
|
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": "5bfc9aa863816cd18266e045ce9d62b317131ab4"
|
44
44
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|