@atlaspack/rust 3.2.1-canary.249 → 3.2.1-canary.250
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 +20 -0
- package/index.darwin-arm64.node +0 -0
- package/index.darwin-x64.node +0 -0
- package/index.js +2 -1
- package/index.linux-arm64-gnu.node +0 -0
- package/index.linux-x64-gnu.node +0 -0
- package/package.json +2 -2
- package/types.d.ts +27 -0
package/index.d.ts
CHANGED
|
@@ -156,6 +156,26 @@ export declare function transform(opts: object): unknown
|
|
|
156
156
|
export declare function transformAsync(opts: object): object
|
|
157
157
|
export declare function getVcsStateSnapshot(path: string, excludePatterns: Array<string>): object
|
|
158
158
|
export declare function getEventsSince(repoPath: string, vcsStateSnapshot: unknown, newRev?: string | undefined | null): object
|
|
159
|
+
export interface TokensPluginOptions {
|
|
160
|
+
tokenDataPath: string
|
|
161
|
+
shouldUseAutoFallback: boolean
|
|
162
|
+
shouldForceAutoFallback: boolean
|
|
163
|
+
forceAutoFallbackExemptions: Array<string>
|
|
164
|
+
defaultTheme: string
|
|
165
|
+
}
|
|
166
|
+
export interface TokensConfig {
|
|
167
|
+
filename: string
|
|
168
|
+
projectRoot: string
|
|
169
|
+
isSource: boolean
|
|
170
|
+
sourceMaps: boolean
|
|
171
|
+
tokensOptions: TokensPluginOptions
|
|
172
|
+
}
|
|
173
|
+
export interface TokensPluginResult {
|
|
174
|
+
code: string
|
|
175
|
+
map?: string
|
|
176
|
+
}
|
|
177
|
+
/** Apply the tokens transformation plugin to the given code asynchronously */
|
|
178
|
+
export declare function applyTokensPlugin(rawCode: Buffer, config: TokensConfig): object
|
|
159
179
|
export type LMDB = Lmdb
|
|
160
180
|
export class Lmdb {
|
|
161
181
|
constructor(options: LmdbOptions)
|
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, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, applyCompiledCssInJsPlugin, 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, setAllEnvironments, getAllEnvironments, getEnvironment, addEnvironment, getAvailableThreads, initializeMonitoring, closeMonitoring, newNodejsWorker, runInlineRequiresOptimizer, runInlineRequiresOptimizerAsync, applyCompiledCssInJsPlugin, Resolver, performStringReplacements, transform, transformAsync, getVcsStateSnapshot, getEventsSince, applyTokensPlugin } = nativeBinding
|
|
314
314
|
|
|
315
315
|
module.exports.initTracingSubscriber = initTracingSubscriber
|
|
316
316
|
module.exports.Lmdb = Lmdb
|
|
@@ -345,3 +345,4 @@ module.exports.transform = transform
|
|
|
345
345
|
module.exports.transformAsync = transformAsync
|
|
346
346
|
module.exports.getVcsStateSnapshot = getVcsStateSnapshot
|
|
347
347
|
module.exports.getEventsSince = getEventsSince
|
|
348
|
+
module.exports.applyTokensPlugin = applyTokensPlugin
|
|
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.250+9cd952197",
|
|
4
4
|
"license": "(MIT OR Apache-2.0)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
|
|
38
38
|
},
|
|
39
39
|
"type": "commonjs",
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "9cd9521978f783046e2ae4ce78f2de7aeb07d073"
|
|
41
41
|
}
|
package/types.d.ts
CHANGED
|
@@ -249,3 +249,30 @@ export interface Symbol {
|
|
|
249
249
|
isStaticBindingSafe: boolean;
|
|
250
250
|
selfReferenced: boolean;
|
|
251
251
|
}
|
|
252
|
+
|
|
253
|
+
export interface TokensPluginOptions {
|
|
254
|
+
tokenDataPath: string;
|
|
255
|
+
shouldUseAutoFallback: boolean;
|
|
256
|
+
shouldForceAutoFallback: boolean;
|
|
257
|
+
forceAutoFallbackExemptions: Array<string>;
|
|
258
|
+
defaultTheme: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface TokensConfig {
|
|
262
|
+
filename: string;
|
|
263
|
+
projectRoot: string;
|
|
264
|
+
isSource: boolean;
|
|
265
|
+
sourceMaps: boolean;
|
|
266
|
+
tokensOptions: TokensPluginOptions;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export interface TokensPluginResult {
|
|
270
|
+
code: string;
|
|
271
|
+
map: string | null;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/** Apply the tokens transformation plugin to the given code asynchronously */
|
|
275
|
+
export declare function applyTokensPlugin(
|
|
276
|
+
rawCode: Buffer,
|
|
277
|
+
config: TokensConfig,
|
|
278
|
+
): object;
|