@atlaspack/rust 3.0.1-dev.142 → 3.0.1-dev.145
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 +10 -0
- package/index.darwin-arm64.node +0 -0
- package/index.darwin-x64.node +0 -0
- package/index.js +2 -1
- package/index.js.flow +11 -1
- 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
|
|
@@ -123,28 +124,37 @@ export type LMDB = Lmdb
|
|
|
123
124
|
export class Lmdb {
|
|
124
125
|
constructor(options: LmdbOptions)
|
|
125
126
|
get(key: string): Promise<Buffer | null | undefined>
|
|
127
|
+
hasSync(key: string): boolean
|
|
128
|
+
keysSync(skip: number, limit: number): Array<string>
|
|
126
129
|
getSync(key: string): Buffer | null
|
|
127
130
|
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
|
|
128
131
|
putMany(entries: Array<Entry>): Promise<void>
|
|
129
132
|
put(key: string, data: Buffer): Promise<void>
|
|
130
133
|
putNoConfirm(key: string, data: Buffer): void
|
|
134
|
+
delete(key: string): Promise<void>
|
|
131
135
|
startReadTransaction(): void
|
|
132
136
|
commitReadTransaction(): void
|
|
133
137
|
startWriteTransaction(): Promise<void>
|
|
134
138
|
commitWriteTransaction(): Promise<void>
|
|
135
139
|
close(): void
|
|
140
|
+
/** Compact the database to the target path */
|
|
141
|
+
compact(targetPath: string): void
|
|
136
142
|
constructor(options: LMDBOptions)
|
|
137
143
|
get(key: string): Promise<Buffer | null | undefined>
|
|
144
|
+
hasSync(key: string): boolean
|
|
145
|
+
keysSync(skip: number, limit: number): Array<string>
|
|
138
146
|
getSync(key: string): Buffer | null
|
|
139
147
|
getManySync(keys: Array<string>): Array<Buffer | undefined | null>
|
|
140
148
|
putMany(entries: Array<Entry>): Promise<void>
|
|
141
149
|
put(key: string, data: Buffer): Promise<void>
|
|
150
|
+
delete(key: string): Promise<void>
|
|
142
151
|
putNoConfirm(key: string, data: Buffer): void
|
|
143
152
|
startReadTransaction(): void
|
|
144
153
|
commitReadTransaction(): void
|
|
145
154
|
startWriteTransaction(): Promise<void>
|
|
146
155
|
commitWriteTransaction(): Promise<void>
|
|
147
156
|
close(): void
|
|
157
|
+
compact(targetPath: string): void
|
|
148
158
|
}
|
|
149
159
|
export class Hash {
|
|
150
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
|
@@ -333,6 +333,8 @@ declare export function performStringReplacements(
|
|
|
333
333
|
declare export class Lmdb {
|
|
334
334
|
constructor(options: LmdbOptions): Lmdb;
|
|
335
335
|
get(key: string): Promise<Buffer | null | void>;
|
|
336
|
+
keysSync(skip: number, limit: number): Array<string>;
|
|
337
|
+
hasSync(key: string): boolean;
|
|
336
338
|
getSync(key: string): Buffer | null;
|
|
337
339
|
getManySync(keys: Array<string>): Array<Buffer | void | null>;
|
|
338
340
|
putMany(entries: Array<LmdbEntry>): Promise<void>;
|
|
@@ -342,7 +344,9 @@ declare export class Lmdb {
|
|
|
342
344
|
commitReadTransaction(): void;
|
|
343
345
|
startWriteTransaction(): Promise<void>;
|
|
344
346
|
commitWriteTransaction(): Promise<void>;
|
|
347
|
+
delete(key: string): Promise<void>;
|
|
345
348
|
close(): void;
|
|
349
|
+
compact(targetPath: string): void;
|
|
346
350
|
}
|
|
347
351
|
|
|
348
352
|
export interface InlineRequiresOptimizerInput {
|
|
@@ -359,9 +363,13 @@ declare export function runInlineRequiresOptimizer(
|
|
|
359
363
|
input: InlineRequiresOptimizerInput,
|
|
360
364
|
): InlineRequiresOptimizerResult;
|
|
361
365
|
|
|
366
|
+
declare export function runInlineRequiresOptimizerAsync(
|
|
367
|
+
input: InlineRequiresOptimizerInput,
|
|
368
|
+
): Promise<InlineRequiresOptimizerResult>;
|
|
369
|
+
|
|
362
370
|
export interface VCSFile {
|
|
363
371
|
path: string;
|
|
364
|
-
hash
|
|
372
|
+
hash?: string | null;
|
|
365
373
|
}
|
|
366
374
|
|
|
367
375
|
export interface YarnState {
|
|
@@ -375,6 +383,8 @@ export interface VCSState {
|
|
|
375
383
|
// Files that have been modified since the last commit
|
|
376
384
|
dirtyFiles: VCSFile[];
|
|
377
385
|
yarnStates: YarnState[];
|
|
386
|
+
dirtyFilesExecutionTime: number;
|
|
387
|
+
yarnStatesExecutionTime: number;
|
|
378
388
|
}
|
|
379
389
|
|
|
380
390
|
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.0.1-dev.
|
|
3
|
+
"version": "3.0.1-dev.145+fa4d24840",
|
|
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": "fa4d24840815e7048a21d74caf01e2df633fabe3"
|
|
38
38
|
}
|