@atlaspack/rust 2.13.2-canary.3699 → 2.13.2-canary.3703
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/atlaspack-node-bindings.darwin-arm64.node +0 -0
- package/atlaspack-node-bindings.darwin-x64.node +0 -0
- package/atlaspack-node-bindings.linux-arm-gnueabihf.node +0 -0
- package/atlaspack-node-bindings.linux-arm64-gnu.node +0 -0
- package/atlaspack-node-bindings.linux-x64-gnu.node +0 -0
- package/index.d.ts +3 -5
- package/index.js +4 -2
- package/index.js.flow +9 -17
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export interface AtlaspackNapiOptions {
|
|
|
45
45
|
threads?: number
|
|
46
46
|
napiWorkerPool: object
|
|
47
47
|
}
|
|
48
|
+
export declare function atlaspackNapiCreate(napiOptions: AtlaspackNapiOptions, lmdb: LMDB): object
|
|
49
|
+
export declare function atlaspackNapiBuildAssetGraph(atlaspackNapi: AtlaspackNapi): object
|
|
50
|
+
export declare function atlaspackNapiRespondToFsEvents(atlaspackNapi: AtlaspackNapi, options: object): object
|
|
48
51
|
export declare function createDependencyId(params: unknown): string
|
|
49
52
|
export declare function createEnvironmentId(params: unknown): string
|
|
50
53
|
export declare function getAvailableThreads(): number
|
|
@@ -153,11 +156,6 @@ export class AtlaspackTracer {
|
|
|
153
156
|
enter(label: string): SpanId
|
|
154
157
|
exit(id: SpanId): void
|
|
155
158
|
}
|
|
156
|
-
export class AtlaspackNapi {
|
|
157
|
-
static create(napiOptions: AtlaspackNapiOptions, lmdb: LMDB): AtlaspackNapi
|
|
158
|
-
buildAssetGraph(): object
|
|
159
|
-
respondToFsEvents(options: object): object
|
|
160
|
-
}
|
|
161
159
|
export class Resolver {
|
|
162
160
|
constructor(projectRoot: string, options: FileSystem)
|
|
163
161
|
resolve(options: ResolveOptions): ResolveResult
|
package/index.js
CHANGED
|
@@ -310,7 +310,7 @@ if (!nativeBinding) {
|
|
|
310
310
|
throw new Error(`Failed to load native binding`)
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId,
|
|
313
|
+
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, Resolver, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -323,7 +323,9 @@ module.exports.Hash = Hash
|
|
|
323
323
|
module.exports.optimizeImage = optimizeImage
|
|
324
324
|
module.exports.AtlaspackTracer = AtlaspackTracer
|
|
325
325
|
module.exports.createAssetId = createAssetId
|
|
326
|
-
module.exports.
|
|
326
|
+
module.exports.atlaspackNapiCreate = atlaspackNapiCreate
|
|
327
|
+
module.exports.atlaspackNapiBuildAssetGraph = atlaspackNapiBuildAssetGraph
|
|
328
|
+
module.exports.atlaspackNapiRespondToFsEvents = atlaspackNapiRespondToFsEvents
|
|
327
329
|
module.exports.createDependencyId = createDependencyId
|
|
328
330
|
module.exports.createEnvironmentId = createEnvironmentId
|
|
329
331
|
module.exports.getAvailableThreads = getAvailableThreads
|
package/index.js.flow
CHANGED
|
@@ -68,26 +68,18 @@ export type AtlaspackNapiOptions = {|
|
|
|
68
68
|
threads?: number,
|
|
69
69
|
|};
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
testingTempFsReadToString(path: string): string;
|
|
78
|
-
testingTempFsIsDir(path: string): boolean;
|
|
79
|
-
testingTempFsIsFile(path: string): boolean;
|
|
80
|
-
testingRpcPing(): void;
|
|
81
|
-
}
|
|
71
|
+
// AtlaspackNapi
|
|
72
|
+
export type AtlaspackNapi = {||};
|
|
73
|
+
declare export function atlaspackNapiCreate(options: AtlaspackNapiOptions, lmdb: mixed): Promise<AtlaspackNapi>;
|
|
74
|
+
declare export function atlaspackNapiBuildAssetGraph(atlaspack: AtlaspackNapi): Promise<any>;
|
|
75
|
+
declare export function atlaspackNapiRespondToFsEvents(atlaspack: AtlaspackNapi, events: WatchEvents): boolean;
|
|
76
|
+
// AtlaspackNapi
|
|
82
77
|
|
|
83
78
|
declare export function getAvailableThreads(): number;
|
|
84
79
|
|
|
85
|
-
declare export function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
): void;
|
|
89
|
-
|
|
90
|
-
declare export function newNodejsWorker(delegate: any): Transferable;
|
|
80
|
+
declare export function newNodejsWorker(
|
|
81
|
+
delegate: any,
|
|
82
|
+
): Transferable;
|
|
91
83
|
|
|
92
84
|
declare export function initializeMonitoring(): void;
|
|
93
85
|
declare export function closeMonitoring(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "2.13.2-canary.
|
|
3
|
+
"version": "2.13.2-canary.3703+2d6afc5ea",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"wasm:build-release": "CARGO_PROFILE_RELEASE_LTO=true cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown --release && wasm-opt --strip-debug -O ../../../target/wasm32-unknown-unknown/release/atlaspack_node_bindings.wasm -o atlaspack_node_bindings.wasm"
|
|
39
39
|
},
|
|
40
40
|
"type": "commonjs",
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2d6afc5eaa2bafbc3d0992748ae7ab9d54a22869"
|
|
42
42
|
}
|