@atlaspack/rust 2.13.2-canary.3707 → 2.13.2-canary.3709
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 +5 -0
- package/index.js +2 -1
- package/index.js.flow +10 -0
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -114,6 +114,11 @@ export interface JsInvalidations {
|
|
|
114
114
|
invalidateOnFileCreate: Array<FilePathCreateInvalidation | FileNameCreateInvalidation | GlobCreateInvalidation>
|
|
115
115
|
invalidateOnStartup: boolean
|
|
116
116
|
}
|
|
117
|
+
export interface Replacement {
|
|
118
|
+
from: string
|
|
119
|
+
to: string
|
|
120
|
+
}
|
|
121
|
+
export declare function performStringReplacements(input: string, replacements: Array<Replacement>): string
|
|
117
122
|
export declare function transform(opts: object): unknown
|
|
118
123
|
export declare function transformAsync(opts: object): object
|
|
119
124
|
export declare function getVcsStateSnapshot(path: string, excludePatterns: Array<string>): object
|
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, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, Resolver, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
313
|
+
const { initTracingSubscriber, Lmdb, findAncestorFile, findFirstFile, findNodeModule, hashString, hashBuffer, Hash, optimizeImage, AtlaspackTracer, createAssetId, atlaspackNapiCreate, atlaspackNapiBuildAssetGraph, atlaspackNapiRespondToFsEvents, createDependencyId, createEnvironmentId, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -334,6 +334,7 @@ module.exports.closeMonitoring = closeMonitoring
|
|
|
334
334
|
module.exports.newNodejsWorker = newNodejsWorker
|
|
335
335
|
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
|
|
336
336
|
module.exports.Resolver = Resolver
|
|
337
|
+
module.exports.performStringReplacements = performStringReplacements
|
|
337
338
|
module.exports.transform = transform
|
|
338
339
|
module.exports.transformAsync = transformAsync
|
|
339
340
|
module.exports.getVcsStateSnapshot = getVcsStateSnapshot
|
package/index.js.flow
CHANGED
|
@@ -308,6 +308,16 @@ export interface LmdbEntry {
|
|
|
308
308
|
value: Buffer;
|
|
309
309
|
}
|
|
310
310
|
|
|
311
|
+
export type StringReplacement = {|
|
|
312
|
+
from: string,
|
|
313
|
+
to: string,
|
|
314
|
+
|};
|
|
315
|
+
|
|
316
|
+
declare export function performStringReplacements(
|
|
317
|
+
input: string,
|
|
318
|
+
replacements: Array<StringReplacement>,
|
|
319
|
+
): string;
|
|
320
|
+
|
|
311
321
|
declare export class Lmdb {
|
|
312
322
|
constructor(options: LmdbOptions): Lmdb;
|
|
313
323
|
get(key: string): Promise<Buffer | null | 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.3709+4837b6988",
|
|
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": "4837b6988e56ca842a24797b796160964d3696ce"
|
|
42
42
|
}
|