@parcel/rust 2.12.1-dev.3171 → 2.12.1-dev.3186
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +0 -2
- package/index.js +1 -3
- package/index.js.flow +13 -26
- 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
@@ -63,8 +63,6 @@ export interface JsInvalidations {
|
|
63
63
|
}
|
64
64
|
export function transform(opts: object): unknown
|
65
65
|
export function transformAsync(opts: object): object
|
66
|
-
export function getChangedPackages(packageVersions: object, prevPackageVersions: object): unknown
|
67
|
-
export function getPackages(yarnLockContents: string): unknown
|
68
66
|
export class Hash {
|
69
67
|
constructor()
|
70
68
|
writeString(s: string): void
|
package/index.js
CHANGED
@@ -295,7 +295,7 @@ 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
|
298
|
+
const { findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, Resolver, transform, transformAsync } = nativeBinding
|
299
299
|
|
300
300
|
module.exports.findAncestorFile = findAncestorFile
|
301
301
|
module.exports.findFirstFile = findFirstFile
|
@@ -307,5 +307,3 @@ module.exports.optimizeImage = optimizeImage
|
|
307
307
|
module.exports.Resolver = Resolver
|
308
308
|
module.exports.transform = transform
|
309
309
|
module.exports.transformAsync = transformAsync
|
310
|
-
module.exports.getChangedPackages = getChangedPackages
|
311
|
-
module.exports.getPackages = getPackages
|
package/index.js.flow
CHANGED
@@ -3,19 +3,12 @@ import type {FileCreateInvalidation} from '@parcel/types';
|
|
3
3
|
|
4
4
|
declare export var init: void | (() => void);
|
5
5
|
|
6
|
-
declare export function findAncestorFile(
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
): string
|
11
|
-
declare export function
|
12
|
-
declare export function findNodeModule(
|
13
|
-
module: string,
|
14
|
-
from: string,
|
15
|
-
): string | null;
|
16
|
-
declare export function hashString(s: string): string;
|
17
|
-
declare export function hashBuffer(buf: Buffer): string;
|
18
|
-
declare export function optimizeImage(kind: string, buf: Buffer): Buffer;
|
6
|
+
declare export function findAncestorFile(filenames: Array<string>, from: string, root: string): string | null
|
7
|
+
declare export function findFirstFile(names: Array<string>): string | null
|
8
|
+
declare export function findNodeModule(module: string, from: string): string | null
|
9
|
+
declare export function hashString(s: string): string
|
10
|
+
declare export function hashBuffer(buf: Buffer): string
|
11
|
+
declare export function optimizeImage(kind: string, buf: Buffer): Buffer
|
19
12
|
export interface JsFileSystemOptions {
|
20
13
|
canonicalize: string => string;
|
21
14
|
read: string => Buffer;
|
@@ -24,14 +17,14 @@ export interface JsFileSystemOptions {
|
|
24
17
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
25
18
|
}
|
26
19
|
export interface FileSystem {
|
27
|
-
fs?: JsFileSystemOptions
|
20
|
+
fs?: JsFileSystemOptions,
|
28
21
|
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
29
|
-
conditions?: number
|
30
|
-
moduleDirResolver?: (...args: any[]) => any
|
31
|
-
mode: number
|
32
|
-
entries?: number
|
33
|
-
extensions?: Array<string
|
34
|
-
packageExports: boolean
|
22
|
+
conditions?: number,
|
23
|
+
moduleDirResolver?: (...args: any[]) => any,
|
24
|
+
mode: number,
|
25
|
+
entries?: number,
|
26
|
+
extensions?: Array<string>,
|
27
|
+
packageExports: boolean
|
35
28
|
}
|
36
29
|
export interface ResolveOptions {
|
37
30
|
filename: string;
|
@@ -82,9 +75,3 @@ declare export class Resolver {
|
|
82
75
|
resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
|
83
76
|
getInvalidations(path: string): JsInvalidations;
|
84
77
|
}
|
85
|
-
export type PackageVersions = Map<String, Array<String>>;
|
86
|
-
declare export function getChangedPackages(
|
87
|
-
packageVersions: PackageVersions,
|
88
|
-
prevPackageVersions: PackageVersions,
|
89
|
-
): Array<string>;
|
90
|
-
declare export function getPackages(yarnLock: string): PackageVersions;
|
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.3186+2449643f7",
|
4
4
|
"license": "MIT",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -39,5 +39,5 @@
|
|
39
39
|
"wasm:build": "cargo build -p parcel-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/parcel_node_bindings.wasm .",
|
40
40
|
"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
41
|
},
|
42
|
-
"gitHead": "
|
42
|
+
"gitHead": "2449643f7b1774d2e9f8c4bd13d6fa8ac66f23e6"
|
43
43
|
}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|