@atlaspack/rust 2.12.1-dev.3443 → 2.12.1-dev.3450
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.js.flow +177 -24
- package/package.json +2 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.js.flow
CHANGED
|
@@ -7,8 +7,6 @@ import type {
|
|
|
7
7
|
PackageManager,
|
|
8
8
|
} from '@atlaspack/types';
|
|
9
9
|
|
|
10
|
-
import {decl} from 'postcss';
|
|
11
|
-
|
|
12
10
|
declare export var init: void | (() => void);
|
|
13
11
|
|
|
14
12
|
export type Transferable = {||};
|
|
@@ -94,25 +92,13 @@ declare export function findNodeModule(
|
|
|
94
92
|
declare export function hashString(s: string): string;
|
|
95
93
|
declare export function hashBuffer(buf: Buffer): string;
|
|
96
94
|
declare export function optimizeImage(kind: string, buf: Buffer): Buffer;
|
|
97
|
-
|
|
98
|
-
canonicalize: string => string;
|
|
99
|
-
read: string => Buffer;
|
|
100
|
-
isFile: string => boolean;
|
|
101
|
-
isDir: string => boolean;
|
|
102
|
-
includeNodeModules?: boolean | Array<string> | {|[string]: boolean|};
|
|
103
|
-
}
|
|
95
|
+
|
|
104
96
|
export interface ResolveOptions {
|
|
105
97
|
filename: string;
|
|
106
98
|
specifierType: string;
|
|
107
99
|
parent: string;
|
|
108
100
|
packageConditions?: Array<string>;
|
|
109
101
|
}
|
|
110
|
-
export type Resolution =
|
|
111
|
-
| {|type: 'Path', value: string|}
|
|
112
|
-
| {|type: 'Builtin', value: string|}
|
|
113
|
-
| {|type: 'External'|}
|
|
114
|
-
| {|type: 'Empty'|}
|
|
115
|
-
| {|type: 'Global', value: string|};
|
|
116
102
|
|
|
117
103
|
export interface ResolveResult {
|
|
118
104
|
resolution: Resolution;
|
|
@@ -135,21 +121,159 @@ declare export class Hash {
|
|
|
135
121
|
writeBuffer(b: Buffer): void;
|
|
136
122
|
finish(): string;
|
|
137
123
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
124
|
+
|
|
125
|
+
export type Engines = {|
|
|
126
|
+
atlaspack?: string,
|
|
127
|
+
browsers?: string | string[],
|
|
128
|
+
electron?: string,
|
|
129
|
+
node?: string,
|
|
130
|
+
|}
|
|
131
|
+
|
|
132
|
+
export type Environment = {|
|
|
133
|
+
context: string,
|
|
134
|
+
engines: Engines,
|
|
135
|
+
includeNodeModules: IncludeNodeModules,
|
|
136
|
+
isLibrary: boolean,
|
|
137
|
+
loc?: SourceLocation,
|
|
138
|
+
outputFormat: string,
|
|
139
|
+
shouldScopeHoist: boolean,
|
|
140
|
+
shouldOptimize: boolean,
|
|
141
|
+
sourceMap?: {|
|
|
142
|
+
inline?: boolean,
|
|
143
|
+
inlineSources?: boolean,
|
|
144
|
+
sourceRoot?: string,
|
|
145
|
+
|},
|
|
146
|
+
sourceType: string,
|
|
147
|
+
|}
|
|
148
|
+
|
|
149
|
+
export type SourceLocation = {|
|
|
150
|
+
filePath: string,
|
|
151
|
+
start: {|
|
|
152
|
+
line: number,
|
|
153
|
+
column: number
|
|
154
|
+
|},
|
|
155
|
+
end: {|
|
|
156
|
+
line: number,
|
|
157
|
+
column: number
|
|
158
|
+
|},
|
|
159
|
+
|}
|
|
160
|
+
|
|
161
|
+
export type Symbol = {|
|
|
162
|
+
local: string,
|
|
163
|
+
exported: string,
|
|
164
|
+
loc?: SourceLocation,
|
|
165
|
+
isWeak: boolean,
|
|
166
|
+
isEsmExport: boolean,
|
|
167
|
+
selfReferenced: boolean,
|
|
168
|
+
|}
|
|
169
|
+
|
|
170
|
+
export type Target = {|
|
|
171
|
+
distDir: string,
|
|
172
|
+
distEntry?: string,
|
|
173
|
+
env: Environment,
|
|
174
|
+
loc?: SourceLocation,
|
|
175
|
+
name: string,
|
|
176
|
+
publicUrl: string,
|
|
177
|
+
|}
|
|
178
|
+
|
|
179
|
+
export type Dependency = {|
|
|
180
|
+
bundleBehavior?: number,
|
|
181
|
+
env: Environment,
|
|
182
|
+
loc: SourceLocation,
|
|
183
|
+
meta?: any,
|
|
184
|
+
packageConditions: number,
|
|
185
|
+
pipeline?: string,
|
|
186
|
+
priority: number,
|
|
187
|
+
range?: string,
|
|
188
|
+
resolveFrom?: string,
|
|
189
|
+
sourceAssetId?: string,
|
|
190
|
+
sourcePath?: string,
|
|
191
|
+
specifier: string,
|
|
192
|
+
specifierType: number,
|
|
193
|
+
sourceAssetType?: string,
|
|
194
|
+
symbols?: Symbol[],
|
|
195
|
+
target?: Target,
|
|
196
|
+
isEntry: boolean,
|
|
197
|
+
isOptional: boolean,
|
|
198
|
+
needsStableName: boolean,
|
|
199
|
+
shouldWrap: boolean,
|
|
200
|
+
isEsm: boolean,
|
|
201
|
+
placeholder?: string,
|
|
202
|
+
|}
|
|
203
|
+
|
|
204
|
+
export type RpcAssetResult = {|
|
|
205
|
+
id: String,
|
|
206
|
+
bundleBehavior: number,
|
|
207
|
+
filePath: string,
|
|
208
|
+
type: string,
|
|
209
|
+
code: Array<number>,
|
|
210
|
+
meta: any,
|
|
211
|
+
pipeline?: string,
|
|
212
|
+
query?: string,
|
|
213
|
+
symbols?: Symbol[],
|
|
214
|
+
uniqueKey?: string,
|
|
215
|
+
sideEffects: boolean,
|
|
216
|
+
isBundleSplittable: boolean,
|
|
217
|
+
isSource: boolean,
|
|
218
|
+
|}
|
|
219
|
+
|
|
220
|
+
export type RpcTransformerOpts = {|
|
|
221
|
+
resolveFrom: string,
|
|
222
|
+
specifier: string,
|
|
223
|
+
options: RpcPluginOptions,
|
|
224
|
+
asset: Asset,
|
|
225
|
+
|}
|
|
226
|
+
|
|
227
|
+
export type RpcHmrOptions = {|
|
|
228
|
+
port?: number,
|
|
229
|
+
host?: string,
|
|
230
|
+
|}
|
|
231
|
+
|
|
232
|
+
export type RpcPluginOptions = {|
|
|
233
|
+
hmrOptions?: RpcHmrOptions,
|
|
234
|
+
projectRoot: string,
|
|
235
|
+
|}
|
|
236
|
+
|
|
237
|
+
export type Asset = {|
|
|
238
|
+
id: string,
|
|
239
|
+
bundleBehavior: number,
|
|
240
|
+
env: Environment,
|
|
241
|
+
filePath: string,
|
|
242
|
+
type: string,
|
|
243
|
+
code: Array<number>,
|
|
244
|
+
meta: any,
|
|
245
|
+
pipeline?: string,
|
|
246
|
+
query?: string,
|
|
247
|
+
stats: {|
|
|
248
|
+
size: number,
|
|
249
|
+
time: number,
|
|
250
|
+
|},
|
|
251
|
+
symbols?: Symbol[],
|
|
252
|
+
uniqueKey?: string,
|
|
253
|
+
sideEffects: boolean,
|
|
254
|
+
isBundleSplittable: boolean,
|
|
255
|
+
isSource: boolean,
|
|
256
|
+
hasCjsExports: boolean,
|
|
257
|
+
staticExports: boolean,
|
|
258
|
+
shouldWrap: boolean,
|
|
259
|
+
hasNodeReplacements: boolean,
|
|
260
|
+
isConstantModule: boolean,
|
|
261
|
+
conditions: Array<{|
|
|
262
|
+
key: string,
|
|
263
|
+
ifTruePlaceholder?: string,
|
|
264
|
+
ifFalsePlaceholder?: string,
|
|
265
|
+
|}>,
|
|
266
|
+
configPath?: string,
|
|
267
|
+
configKeyPath?: string,
|
|
268
|
+
|}
|
|
269
|
+
|
|
147
270
|
declare export class Resolver {
|
|
148
271
|
constructor(projectRoot: string, options: ResolverOptions): Resolver;
|
|
149
272
|
resolve(options: ResolveOptions): ResolveResult;
|
|
150
273
|
resolveAsync(options: ResolveOptions): Promise<ResolveResult>;
|
|
151
274
|
getInvalidations(path: string): JsInvalidations;
|
|
152
275
|
}
|
|
276
|
+
|
|
153
277
|
export interface LmdbOptions {
|
|
154
278
|
/** The database directory path */
|
|
155
279
|
path: string;
|
|
@@ -212,3 +336,32 @@ declare export function replaceHashReferences(
|
|
|
212
336
|
input: Buffer,
|
|
213
337
|
hashRefToNameHash: {[key: string]: string},
|
|
214
338
|
): Buffer;
|
|
339
|
+
|
|
340
|
+
export interface ResolverOptions {
|
|
341
|
+
fs?: JsFileSystemOptions;
|
|
342
|
+
includeNodeModules?: IncludeNodeModules;
|
|
343
|
+
conditions?: number;
|
|
344
|
+
moduleDirResolver?: (...args: any[]) => any;
|
|
345
|
+
mode: number;
|
|
346
|
+
entries?: number;
|
|
347
|
+
extensions?: Array<string>;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface JsFileSystemOptions {
|
|
351
|
+
canonicalize: string => string;
|
|
352
|
+
read: string => Buffer;
|
|
353
|
+
isFile: string => boolean;
|
|
354
|
+
isDir: string => boolean;
|
|
355
|
+
includeNodeModules?: IncludeNodeModules;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Types below break IDE highlighting, place them at the bottom of the file
|
|
359
|
+
|
|
360
|
+
export type IncludeNodeModules = boolean | Array<string> | {|[string]: boolean|}
|
|
361
|
+
|
|
362
|
+
export type Resolution =
|
|
363
|
+
| {|type: 'Path', value: string|}
|
|
364
|
+
| {|type: 'Builtin', value: string|}
|
|
365
|
+
| {|type: 'External'|}
|
|
366
|
+
| {|type: 'Empty'|}
|
|
367
|
+
| {|type: 'Global', value: string|};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaspack/rust",
|
|
3
|
-
"version": "2.12.1-dev.
|
|
3
|
+
"version": "2.12.1-dev.3450+58845ef87",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"wasm:build": "cargo build -p atlaspack-node-bindings --target wasm32-unknown-unknown && cp ../../../target/wasm32-unknown-unknown/debug/atlaspack_node_bindings.wasm .",
|
|
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
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "58845ef87446fcedb7d7d8876440c64184645cbb"
|
|
41
41
|
}
|