@atlaspack/rust 3.2.1-canary.2 → 3.2.1-canary.20
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 +6 -0
- package/index.darwin-arm64.node +0 -0
- package/index.darwin-x64.node +0 -0
- package/index.js +2 -1
- package/index.js.flow +8 -0
- package/index.linux-arm64-gnu.node +0 -0
- package/index.linux-x64-gnu.node +0 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export interface InlineRequiresOptimizerResult {
|
|
|
61
61
|
sourceMap?: string
|
|
62
62
|
}
|
|
63
63
|
export declare function runInlineRequiresOptimizer(input: InlineRequiresOptimizerInput): InlineRequiresOptimizerResult
|
|
64
|
+
export declare function runInlineRequiresOptimizerAsync(input: InlineRequiresOptimizerInput): object
|
|
64
65
|
export interface JsFileSystemOptions {
|
|
65
66
|
canonicalize: (...args: any[]) => any
|
|
66
67
|
read: (...args: any[]) => any
|
|
@@ -124,6 +125,7 @@ export class Lmdb {
|
|
|
124
125
|
constructor(options: LmdbOptions)
|
|
125
126
|
get(key: string): Promise<Buffer | null | undefined>
|
|
126
127
|
hasSync(key: string): boolean
|
|
128
|
+
keysSync(skip: number, limit: number): Array<string>
|
|
127
129
|
getSync(key: string): Buffer | null
|
|
128
130
|
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
|
|
129
131
|
putMany(entries: Array<Entry>): Promise<void>
|
|
@@ -135,9 +137,12 @@ export class Lmdb {
|
|
|
135
137
|
startWriteTransaction(): Promise<void>
|
|
136
138
|
commitWriteTransaction(): Promise<void>
|
|
137
139
|
close(): void
|
|
140
|
+
/** Compact the database to the target path */
|
|
141
|
+
compact(targetPath: string): void
|
|
138
142
|
constructor(options: LMDBOptions)
|
|
139
143
|
get(key: string): Promise<Buffer | null | undefined>
|
|
140
144
|
hasSync(key: string): boolean
|
|
145
|
+
keysSync(skip: number, limit: number): Array<string>
|
|
141
146
|
getSync(key: string): Buffer | null
|
|
142
147
|
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
|
|
143
148
|
putMany(entries: Array<Entry>): Promise<void>
|
|
@@ -149,6 +154,7 @@ export class Lmdb {
|
|
|
149
154
|
startWriteTransaction(): Promise<void>
|
|
150
155
|
commitWriteTransaction(): Promise<void>
|
|
151
156
|
close(): void
|
|
157
|
+
compact(targetPath: string): void
|
|
152
158
|
}
|
|
153
159
|
export class Hash {
|
|
154
160
|
constructor()
|
package/index.darwin-arm64.node
CHANGED
|
Binary file
|
package/index.darwin-x64.node
CHANGED
|
Binary file
|
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, performStringReplacements, 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, runInlineRequiresOptimizerAsync, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -333,6 +333,7 @@ module.exports.initializeMonitoring = initializeMonitoring
|
|
|
333
333
|
module.exports.closeMonitoring = closeMonitoring
|
|
334
334
|
module.exports.newNodejsWorker = newNodejsWorker
|
|
335
335
|
module.exports.runInlineRequiresOptimizer = runInlineRequiresOptimizer
|
|
336
|
+
module.exports.runInlineRequiresOptimizerAsync = runInlineRequiresOptimizerAsync
|
|
336
337
|
module.exports.Resolver = Resolver
|
|
337
338
|
module.exports.performStringReplacements = performStringReplacements
|
|
338
339
|
module.exports.transform = transform
|
package/index.js.flow
CHANGED
|
@@ -327,6 +327,7 @@ declare export function performStringReplacements(
|
|
|
327
327
|
declare export class Lmdb {
|
|
328
328
|
constructor(options: LmdbOptions): Lmdb;
|
|
329
329
|
get(key: string): Promise<Buffer | null | void>;
|
|
330
|
+
keysSync(skip: number, limit: number): Array<string>;
|
|
330
331
|
hasSync(key: string): boolean;
|
|
331
332
|
getSync(key: string): Buffer | null;
|
|
332
333
|
getManySync(keys: Array<string>): Array<Buffer | void | null>;
|
|
@@ -339,6 +340,7 @@ declare export class Lmdb {
|
|
|
339
340
|
commitWriteTransaction(): Promise<void>;
|
|
340
341
|
delete(key: string): Promise<void>;
|
|
341
342
|
close(): void;
|
|
343
|
+
compact(targetPath: string): void;
|
|
342
344
|
}
|
|
343
345
|
|
|
344
346
|
export interface InlineRequiresOptimizerInput {
|
|
@@ -355,6 +357,10 @@ declare export function runInlineRequiresOptimizer(
|
|
|
355
357
|
input: InlineRequiresOptimizerInput,
|
|
356
358
|
): InlineRequiresOptimizerResult;
|
|
357
359
|
|
|
360
|
+
declare export function runInlineRequiresOptimizerAsync(
|
|
361
|
+
input: InlineRequiresOptimizerInput,
|
|
362
|
+
): Promise<InlineRequiresOptimizerResult>;
|
|
363
|
+
|
|
358
364
|
export interface VCSFile {
|
|
359
365
|
path: string;
|
|
360
366
|
hash: number;
|
|
@@ -371,6 +377,8 @@ export interface VCSState {
|
|
|
371
377
|
// Files that have been modified since the last commit
|
|
372
378
|
dirtyFiles: VCSFile[];
|
|
373
379
|
yarnStates: YarnState[];
|
|
380
|
+
dirtyFilesExecutionTime: number;
|
|
381
|
+
yarnStatesExecutionTime: number;
|
|
374
382
|
}
|
|
375
383
|
|
|
376
384
|
declare export function getVcsStateSnapshot(
|
|
Binary file
|
package/index.linux-x64-gnu.node
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "3.2.1-canary.
|
|
3
|
+
"version": "3.2.1-canary.20+30f60175b",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"test": "mocha"
|
|
35
35
|
},
|
|
36
36
|
"type": "commonjs",
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "30f60175ba4d272c5fc193973c63bc298584775b"
|
|
38
38
|
}
|