@biomejs/wasm-nodejs 2.3.2 → 2.3.4
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/biome_wasm.d.ts +100 -37
- package/biome_wasm.js +171 -171
- package/biome_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/biome_wasm.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ interface CssConfiguration {
|
|
|
137
137
|
type Extends = string[] | string;
|
|
138
138
|
interface FilesConfiguration {
|
|
139
139
|
/**
|
|
140
|
-
* **Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: https://biomejs.dev/reference/configuration/#filesincludes
|
|
140
|
+
* **Deprecated:** Please use _force-ignore syntax_ in `files.includes` instead: <https://biomejs.dev/reference/configuration/#filesincludes>
|
|
141
141
|
|
|
142
142
|
Set of file and folder names that should be unconditionally ignored by Biome's scanner.
|
|
143
143
|
*/
|
|
@@ -1513,6 +1513,10 @@ interface Correctness {
|
|
|
1513
1513
|
useYield?: RuleConfiguration_for_UseYieldOptions;
|
|
1514
1514
|
}
|
|
1515
1515
|
interface Nursery {
|
|
1516
|
+
/**
|
|
1517
|
+
* Disallow continue statements.
|
|
1518
|
+
*/
|
|
1519
|
+
noContinue?: RuleConfiguration_for_NoContinueOptions;
|
|
1516
1520
|
/**
|
|
1517
1521
|
* Restrict imports of deprecated exports.
|
|
1518
1522
|
*/
|
|
@@ -1549,6 +1553,10 @@ interface Nursery {
|
|
|
1549
1553
|
* Prevent client components from being async functions.
|
|
1550
1554
|
*/
|
|
1551
1555
|
noNextAsyncClientComponent?: RuleConfiguration_for_NoNextAsyncClientComponentOptions;
|
|
1556
|
+
/**
|
|
1557
|
+
* Disallow function parameters that are only used in recursive calls.
|
|
1558
|
+
*/
|
|
1559
|
+
noParametersOnlyUsedInRecursion?: RuleFixConfiguration_for_NoParametersOnlyUsedInRecursionOptions;
|
|
1552
1560
|
/**
|
|
1553
1561
|
* Replaces usages of forwardRef with passing ref as a prop.
|
|
1554
1562
|
*/
|
|
@@ -1557,6 +1565,10 @@ interface Nursery {
|
|
|
1557
1565
|
* Disallow variable declarations from shadowing variables declared in the outer scope.
|
|
1558
1566
|
*/
|
|
1559
1567
|
noShadow?: RuleConfiguration_for_NoShadowOptions;
|
|
1568
|
+
/**
|
|
1569
|
+
* Disallow unknown DOM properties.
|
|
1570
|
+
*/
|
|
1571
|
+
noUnknownAttribute?: RuleConfiguration_for_NoUnknownAttributeOptions;
|
|
1560
1572
|
/**
|
|
1561
1573
|
* Disallow unnecessary type-based conditions that can be statically determined as redundant.
|
|
1562
1574
|
*/
|
|
@@ -2887,6 +2899,9 @@ type RuleFixConfiguration_for_UseValidTypeofOptions =
|
|
|
2887
2899
|
type RuleConfiguration_for_UseYieldOptions =
|
|
2888
2900
|
| RulePlainConfiguration
|
|
2889
2901
|
| RuleWithOptions_for_UseYieldOptions;
|
|
2902
|
+
type RuleConfiguration_for_NoContinueOptions =
|
|
2903
|
+
| RulePlainConfiguration
|
|
2904
|
+
| RuleWithOptions_for_NoContinueOptions;
|
|
2890
2905
|
type RuleConfiguration_for_NoDeprecatedImportsOptions =
|
|
2891
2906
|
| RulePlainConfiguration
|
|
2892
2907
|
| RuleWithOptions_for_NoDeprecatedImportsOptions;
|
|
@@ -2914,12 +2929,18 @@ type RuleFixConfiguration_for_NoMisusedPromisesOptions =
|
|
|
2914
2929
|
type RuleConfiguration_for_NoNextAsyncClientComponentOptions =
|
|
2915
2930
|
| RulePlainConfiguration
|
|
2916
2931
|
| RuleWithOptions_for_NoNextAsyncClientComponentOptions;
|
|
2932
|
+
type RuleFixConfiguration_for_NoParametersOnlyUsedInRecursionOptions =
|
|
2933
|
+
| RulePlainConfiguration
|
|
2934
|
+
| RuleWithFixOptions_for_NoParametersOnlyUsedInRecursionOptions;
|
|
2917
2935
|
type RuleFixConfiguration_for_NoReactForwardRefOptions =
|
|
2918
2936
|
| RulePlainConfiguration
|
|
2919
2937
|
| RuleWithFixOptions_for_NoReactForwardRefOptions;
|
|
2920
2938
|
type RuleConfiguration_for_NoShadowOptions =
|
|
2921
2939
|
| RulePlainConfiguration
|
|
2922
2940
|
| RuleWithOptions_for_NoShadowOptions;
|
|
2941
|
+
type RuleConfiguration_for_NoUnknownAttributeOptions =
|
|
2942
|
+
| RulePlainConfiguration
|
|
2943
|
+
| RuleWithOptions_for_NoUnknownAttributeOptions;
|
|
2923
2944
|
type RuleConfiguration_for_NoUnnecessaryConditionsOptions =
|
|
2924
2945
|
| RulePlainConfiguration
|
|
2925
2946
|
| RuleWithOptions_for_NoUnnecessaryConditionsOptions;
|
|
@@ -5304,6 +5325,16 @@ interface RuleWithOptions_for_UseYieldOptions {
|
|
|
5304
5325
|
*/
|
|
5305
5326
|
options: UseYieldOptions;
|
|
5306
5327
|
}
|
|
5328
|
+
interface RuleWithOptions_for_NoContinueOptions {
|
|
5329
|
+
/**
|
|
5330
|
+
* The severity of the emitted diagnostics by the rule
|
|
5331
|
+
*/
|
|
5332
|
+
level: RulePlainConfiguration;
|
|
5333
|
+
/**
|
|
5334
|
+
* Rule's options
|
|
5335
|
+
*/
|
|
5336
|
+
options: NoContinueOptions;
|
|
5337
|
+
}
|
|
5307
5338
|
interface RuleWithOptions_for_NoDeprecatedImportsOptions {
|
|
5308
5339
|
/**
|
|
5309
5340
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -5402,6 +5433,20 @@ interface RuleWithOptions_for_NoNextAsyncClientComponentOptions {
|
|
|
5402
5433
|
*/
|
|
5403
5434
|
options: NoNextAsyncClientComponentOptions;
|
|
5404
5435
|
}
|
|
5436
|
+
interface RuleWithFixOptions_for_NoParametersOnlyUsedInRecursionOptions {
|
|
5437
|
+
/**
|
|
5438
|
+
* The kind of the code actions emitted by the rule
|
|
5439
|
+
*/
|
|
5440
|
+
fix?: FixKind;
|
|
5441
|
+
/**
|
|
5442
|
+
* The severity of the emitted diagnostics by the rule
|
|
5443
|
+
*/
|
|
5444
|
+
level: RulePlainConfiguration;
|
|
5445
|
+
/**
|
|
5446
|
+
* Rule's options
|
|
5447
|
+
*/
|
|
5448
|
+
options: NoParametersOnlyUsedInRecursionOptions;
|
|
5449
|
+
}
|
|
5405
5450
|
interface RuleWithFixOptions_for_NoReactForwardRefOptions {
|
|
5406
5451
|
/**
|
|
5407
5452
|
* The kind of the code actions emitted by the rule
|
|
@@ -5426,6 +5471,16 @@ interface RuleWithOptions_for_NoShadowOptions {
|
|
|
5426
5471
|
*/
|
|
5427
5472
|
options: NoShadowOptions;
|
|
5428
5473
|
}
|
|
5474
|
+
interface RuleWithOptions_for_NoUnknownAttributeOptions {
|
|
5475
|
+
/**
|
|
5476
|
+
* The severity of the emitted diagnostics by the rule
|
|
5477
|
+
*/
|
|
5478
|
+
level: RulePlainConfiguration;
|
|
5479
|
+
/**
|
|
5480
|
+
* Rule's options
|
|
5481
|
+
*/
|
|
5482
|
+
options: NoUnknownAttributeOptions;
|
|
5483
|
+
}
|
|
5429
5484
|
interface RuleWithOptions_for_NoUnnecessaryConditionsOptions {
|
|
5430
5485
|
/**
|
|
5431
5486
|
* The severity of the emitted diagnostics by the rule
|
|
@@ -7984,7 +8039,7 @@ interface NoRestrictedElementsOptions {
|
|
|
7984
8039
|
/**
|
|
7985
8040
|
* Elements to restrict. Each key is the element name, and the value is the message to show when the element is used.
|
|
7986
8041
|
*/
|
|
7987
|
-
elements
|
|
8042
|
+
elements?: CustomRestrictedElements;
|
|
7988
8043
|
}
|
|
7989
8044
|
interface NoSelfAssignOptions {}
|
|
7990
8045
|
interface NoSetterReturnOptions {}
|
|
@@ -8083,6 +8138,7 @@ interface UseUniqueElementIdsOptions {
|
|
|
8083
8138
|
interface UseValidForDirectionOptions {}
|
|
8084
8139
|
interface UseValidTypeofOptions {}
|
|
8085
8140
|
interface UseYieldOptions {}
|
|
8141
|
+
interface NoContinueOptions {}
|
|
8086
8142
|
interface NoDeprecatedImportsOptions {}
|
|
8087
8143
|
interface NoDuplicateDependenciesOptions {}
|
|
8088
8144
|
interface NoEmptySourceOptions {
|
|
@@ -8120,8 +8176,12 @@ interface NoJsxLiteralsOptions {
|
|
|
8120
8176
|
}
|
|
8121
8177
|
interface NoMisusedPromisesOptions {}
|
|
8122
8178
|
interface NoNextAsyncClientComponentOptions {}
|
|
8179
|
+
interface NoParametersOnlyUsedInRecursionOptions {}
|
|
8123
8180
|
interface NoReactForwardRefOptions {}
|
|
8124
8181
|
interface NoShadowOptions {}
|
|
8182
|
+
interface NoUnknownAttributeOptions {
|
|
8183
|
+
ignore?: string[];
|
|
8184
|
+
}
|
|
8125
8185
|
interface NoUnnecessaryConditionsOptions {}
|
|
8126
8186
|
interface NoUnresolvedImportsOptions {}
|
|
8127
8187
|
interface NoUnusedExpressionsOptions {}
|
|
@@ -8235,13 +8295,13 @@ interface NoRestrictedGlobalsOptions {
|
|
|
8235
8295
|
/**
|
|
8236
8296
|
* A list of names that should trigger the rule
|
|
8237
8297
|
*/
|
|
8238
|
-
deniedGlobals
|
|
8298
|
+
deniedGlobals?: Record<string, string>;
|
|
8239
8299
|
}
|
|
8240
8300
|
interface NoRestrictedImportsOptions {
|
|
8241
8301
|
/**
|
|
8242
8302
|
* A list of import paths that should trigger the rule.
|
|
8243
8303
|
*/
|
|
8244
|
-
paths
|
|
8304
|
+
paths?: Record<string, Paths>;
|
|
8245
8305
|
/**
|
|
8246
8306
|
* gitignore-style patterns that should trigger the rule.
|
|
8247
8307
|
*/
|
|
@@ -8270,7 +8330,7 @@ interface UseComponentExportOnlyModulesOptions {
|
|
|
8270
8330
|
/**
|
|
8271
8331
|
* A list of names that can be additionally exported from the module This option is for exports that do not hinder [React Fast Refresh](https://github.com/facebook/react/tree/main/packages/react-refresh), such as [`meta` in Remix](https://remix.run/docs/en/main/route/meta)
|
|
8272
8332
|
*/
|
|
8273
|
-
allowExportNames
|
|
8333
|
+
allowExportNames?: string[];
|
|
8274
8334
|
}
|
|
8275
8335
|
interface UseConsistentArrayTypeOptions {
|
|
8276
8336
|
syntax?: ConsistentArrayType;
|
|
@@ -8305,7 +8365,7 @@ interface UseFilenamingConventionOptions {
|
|
|
8305
8365
|
/**
|
|
8306
8366
|
* Allowed cases for file names.
|
|
8307
8367
|
*/
|
|
8308
|
-
filenameCases
|
|
8368
|
+
filenameCases?: FilenameCases;
|
|
8309
8369
|
/**
|
|
8310
8370
|
* Regular expression to enforce
|
|
8311
8371
|
*/
|
|
@@ -8313,11 +8373,11 @@ interface UseFilenamingConventionOptions {
|
|
|
8313
8373
|
/**
|
|
8314
8374
|
* If `false`, then non-ASCII characters are allowed.
|
|
8315
8375
|
*/
|
|
8316
|
-
requireAscii
|
|
8376
|
+
requireAscii?: boolean;
|
|
8317
8377
|
/**
|
|
8318
8378
|
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
8319
8379
|
*/
|
|
8320
|
-
strictCase
|
|
8380
|
+
strictCase?: boolean;
|
|
8321
8381
|
}
|
|
8322
8382
|
interface UseForOfOptions {}
|
|
8323
8383
|
interface UseFragmentSyntaxOptions {}
|
|
@@ -8334,15 +8394,15 @@ interface UseNamingConventionOptions {
|
|
|
8334
8394
|
/**
|
|
8335
8395
|
* Custom conventions.
|
|
8336
8396
|
*/
|
|
8337
|
-
conventions
|
|
8397
|
+
conventions?: Convention[];
|
|
8338
8398
|
/**
|
|
8339
8399
|
* If `false`, then non-ASCII characters are allowed.
|
|
8340
8400
|
*/
|
|
8341
|
-
requireAscii
|
|
8401
|
+
requireAscii?: boolean;
|
|
8342
8402
|
/**
|
|
8343
8403
|
* If `false`, then consecutive uppercase are allowed in _camel_ and _pascal_ cases. This does not affect other [Case].
|
|
8344
8404
|
*/
|
|
8345
|
-
strictCase
|
|
8405
|
+
strictCase?: boolean;
|
|
8346
8406
|
}
|
|
8347
8407
|
interface UseNodeAssertStrictOptions {}
|
|
8348
8408
|
interface UseNodejsImportProtocolOptions {}
|
|
@@ -8354,7 +8414,7 @@ interface UseReadonlyClassPropertiesOptions {
|
|
|
8354
8414
|
/**
|
|
8355
8415
|
* When `true`, the keywords `public`, `protected`, and `private` are analyzed by the rule.
|
|
8356
8416
|
*/
|
|
8357
|
-
checkAllProperties
|
|
8417
|
+
checkAllProperties?: boolean;
|
|
8358
8418
|
}
|
|
8359
8419
|
interface UseSelfClosingElementsOptions {
|
|
8360
8420
|
ignoreHtmlElements?: boolean;
|
|
@@ -8378,7 +8438,7 @@ interface NoBitwiseOperatorsOptions {
|
|
|
8378
8438
|
/**
|
|
8379
8439
|
* Allows a list of bitwise operators to be used as exceptions.
|
|
8380
8440
|
*/
|
|
8381
|
-
allow
|
|
8441
|
+
allow?: string[];
|
|
8382
8442
|
}
|
|
8383
8443
|
interface NoCatchAssignOptions {}
|
|
8384
8444
|
interface NoClassAssignOptions {}
|
|
@@ -8388,14 +8448,14 @@ interface NoConfusingLabelsOptions {
|
|
|
8388
8448
|
/**
|
|
8389
8449
|
* A list of (non-confusing) labels that should be allowed
|
|
8390
8450
|
*/
|
|
8391
|
-
allowedLabels
|
|
8451
|
+
allowedLabels?: string[];
|
|
8392
8452
|
}
|
|
8393
8453
|
interface NoConfusingVoidTypeOptions {}
|
|
8394
8454
|
interface NoConsoleOptions {
|
|
8395
8455
|
/**
|
|
8396
8456
|
* Allowed calls on the console object.
|
|
8397
8457
|
*/
|
|
8398
|
-
allow
|
|
8458
|
+
allow?: string[];
|
|
8399
8459
|
}
|
|
8400
8460
|
interface NoConstEnumOptions {}
|
|
8401
8461
|
interface NoConstantBinaryExpressionsOptions {}
|
|
@@ -8409,7 +8469,7 @@ interface NoDoubleEqualsOptions {
|
|
|
8409
8469
|
|
|
8410
8470
|
If `false`, no such exception will be made.
|
|
8411
8471
|
*/
|
|
8412
|
-
ignoreNull
|
|
8472
|
+
ignoreNull?: boolean;
|
|
8413
8473
|
}
|
|
8414
8474
|
interface NoDuplicateAtImportRulesOptions {}
|
|
8415
8475
|
interface NoDuplicateCaseOptions {}
|
|
@@ -8850,6 +8910,7 @@ type Category =
|
|
|
8850
8910
|
| "lint/correctness/useValidTypeof"
|
|
8851
8911
|
| "lint/correctness/useYield"
|
|
8852
8912
|
| "lint/nursery/noColorInvalidHex"
|
|
8913
|
+
| "lint/nursery/noContinue"
|
|
8853
8914
|
| "lint/nursery/noDeprecatedImports"
|
|
8854
8915
|
| "lint/nursery/noDuplicateDependencies"
|
|
8855
8916
|
| "lint/nursery/noEmptySource"
|
|
@@ -8861,8 +8922,10 @@ type Category =
|
|
|
8861
8922
|
| "lint/nursery/noMissingGenericFamilyKeyword"
|
|
8862
8923
|
| "lint/nursery/noMisusedPromises"
|
|
8863
8924
|
| "lint/nursery/noNextAsyncClientComponent"
|
|
8925
|
+
| "lint/nursery/noParametersOnlyUsedInRecursion"
|
|
8864
8926
|
| "lint/nursery/noReactForwardRef"
|
|
8865
8927
|
| "lint/nursery/noShadow"
|
|
8928
|
+
| "lint/nursery/noUnknownAttribute"
|
|
8866
8929
|
| "lint/nursery/noUnnecessaryConditions"
|
|
8867
8930
|
| "lint/nursery/noUnresolvedImports"
|
|
8868
8931
|
| "lint/nursery/noUnusedExpressions"
|
|
@@ -9621,9 +9684,9 @@ interface DropPatternParams {
|
|
|
9621
9684
|
export class DiagnosticPrinter {
|
|
9622
9685
|
free(): void;
|
|
9623
9686
|
[Symbol.dispose](): void;
|
|
9624
|
-
constructor(file_name: string, file_source: string);
|
|
9625
9687
|
print_simple(diagnostic: Diagnostic): void;
|
|
9626
9688
|
print_verbose(diagnostic: Diagnostic): void;
|
|
9689
|
+
constructor(file_name: string, file_source: string);
|
|
9627
9690
|
finish(): string;
|
|
9628
9691
|
}
|
|
9629
9692
|
export class MemoryFileSystem {
|
|
@@ -9636,31 +9699,31 @@ export class MemoryFileSystem {
|
|
|
9636
9699
|
export class Workspace {
|
|
9637
9700
|
free(): void;
|
|
9638
9701
|
[Symbol.dispose](): void;
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9702
|
+
closeFile(params: CloseFileParams): void;
|
|
9703
|
+
changeFile(params: ChangeFileParams): ChangeFileResult;
|
|
9704
|
+
fileExists(params: FileExitsParams): boolean;
|
|
9705
|
+
formatFile(params: FormatFileParams): any;
|
|
9706
|
+
formatRange(params: FormatRangeParams): any;
|
|
9643
9707
|
openProject(params: OpenProjectParams): OpenProjectResult;
|
|
9708
|
+
pullActions(params: PullActionsParams): PullActionsResult;
|
|
9644
9709
|
scanProject(params: ScanProjectParams): ScanProjectResult;
|
|
9645
|
-
|
|
9646
|
-
getFileContent(params: GetFileContentParams): string;
|
|
9647
|
-
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
9648
|
-
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
9649
|
-
getFormatterIr(params: GetFormatterIRParams): string;
|
|
9710
|
+
fileFeatures(params: SupportsFeatureParams): FileFeaturesResult;
|
|
9650
9711
|
getTypeInfo(params: GetTypeInfoParams): string;
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
changeFile(params: ChangeFileParams): ChangeFileResult;
|
|
9654
|
-
closeFile(params: CloseFileParams): void;
|
|
9655
|
-
fileExists(params: FileExitsParams): boolean;
|
|
9712
|
+
formatOnType(params: FormatOnTypeParams): any;
|
|
9713
|
+
getSyntaxTree(params: GetSyntaxTreeParams): GetSyntaxTreeResult;
|
|
9656
9714
|
isPathIgnored(params: PathIsIgnoredParams): boolean;
|
|
9657
|
-
|
|
9715
|
+
updateSettings(params: UpdateSettingsParams): UpdateSettingsResult;
|
|
9716
|
+
getFileContent(params: GetFileContentParams): string;
|
|
9717
|
+
getFormatterIr(params: GetFormatterIRParams): string;
|
|
9658
9718
|
getModuleGraph(params: GetModuleGraphParams): GetModuleGraphResult;
|
|
9659
9719
|
pullDiagnostics(params: PullDiagnosticsParams): PullDiagnosticsResult;
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9664
|
-
|
|
9720
|
+
getSemanticModel(params: GetSemanticModelParams): string;
|
|
9721
|
+
static withFileSystem(fs: MemoryFileSystem): Workspace;
|
|
9722
|
+
updateModuleGraph(params: UpdateModuleGraphParams): void;
|
|
9723
|
+
getRegisteredTypes(params: GetRegisteredTypesParams): string;
|
|
9724
|
+
getControlFlowGraph(params: GetControlFlowGraphParams): string;
|
|
9725
|
+
constructor();
|
|
9665
9726
|
rename(params: RenameParams): RenameResult;
|
|
9727
|
+
fixFile(params: FixFileParams): FixFileResult;
|
|
9728
|
+
openFile(params: OpenFileParams): OpenFileResult;
|
|
9666
9729
|
}
|
package/biome_wasm.js
CHANGED
|
@@ -176,10 +176,6 @@ function debugString(val) {
|
|
|
176
176
|
return className;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
exports.main = function() {
|
|
180
|
-
wasm.main();
|
|
181
|
-
};
|
|
182
|
-
|
|
183
179
|
function passArray8ToWasm0(arg, malloc) {
|
|
184
180
|
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
185
181
|
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
@@ -187,11 +183,9 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
187
183
|
return ptr;
|
|
188
184
|
}
|
|
189
185
|
|
|
190
|
-
function
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
}
|
|
186
|
+
exports.main = function() {
|
|
187
|
+
wasm.main();
|
|
188
|
+
};
|
|
195
189
|
|
|
196
190
|
function takeFromExternrefTable0(idx) {
|
|
197
191
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -199,6 +193,12 @@ function takeFromExternrefTable0(idx) {
|
|
|
199
193
|
return value;
|
|
200
194
|
}
|
|
201
195
|
|
|
196
|
+
function _assertClass(instance, klass) {
|
|
197
|
+
if (!(instance instanceof klass)) {
|
|
198
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
202
|
const DiagnosticPrinterFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
203
203
|
? { register: () => {}, unregister: () => {} }
|
|
204
204
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnosticprinter_free(ptr >>> 0, 1));
|
|
@@ -216,20 +216,6 @@ class DiagnosticPrinter {
|
|
|
216
216
|
const ptr = this.__destroy_into_raw();
|
|
217
217
|
wasm.__wbg_diagnosticprinter_free(ptr, 0);
|
|
218
218
|
}
|
|
219
|
-
/**
|
|
220
|
-
* @param {string} file_name
|
|
221
|
-
* @param {string} file_source
|
|
222
|
-
*/
|
|
223
|
-
constructor(file_name, file_source) {
|
|
224
|
-
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
225
|
-
const len0 = WASM_VECTOR_LEN;
|
|
226
|
-
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
227
|
-
const len1 = WASM_VECTOR_LEN;
|
|
228
|
-
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
229
|
-
this.__wbg_ptr = ret >>> 0;
|
|
230
|
-
DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
|
|
231
|
-
return this;
|
|
232
|
-
}
|
|
233
219
|
/**
|
|
234
220
|
* @param {Diagnostic} diagnostic
|
|
235
221
|
*/
|
|
@@ -248,6 +234,20 @@ class DiagnosticPrinter {
|
|
|
248
234
|
throw takeFromExternrefTable0(ret[0]);
|
|
249
235
|
}
|
|
250
236
|
}
|
|
237
|
+
/**
|
|
238
|
+
* @param {string} file_name
|
|
239
|
+
* @param {string} file_source
|
|
240
|
+
*/
|
|
241
|
+
constructor(file_name, file_source) {
|
|
242
|
+
const ptr0 = passStringToWasm0(file_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
243
|
+
const len0 = WASM_VECTOR_LEN;
|
|
244
|
+
const ptr1 = passStringToWasm0(file_source, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
245
|
+
const len1 = WASM_VECTOR_LEN;
|
|
246
|
+
const ret = wasm.diagnosticprinter_new(ptr0, len0, ptr1, len1);
|
|
247
|
+
this.__wbg_ptr = ret >>> 0;
|
|
248
|
+
DiagnosticPrinterFinalization.register(this, this.__wbg_ptr, this);
|
|
249
|
+
return this;
|
|
250
|
+
}
|
|
251
251
|
/**
|
|
252
252
|
* @returns {string}
|
|
253
253
|
*/
|
|
@@ -347,38 +347,54 @@ class Workspace {
|
|
|
347
347
|
const ptr = this.__destroy_into_raw();
|
|
348
348
|
wasm.__wbg_workspace_free(ptr, 0);
|
|
349
349
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
350
|
+
/**
|
|
351
|
+
* @param {CloseFileParams} params
|
|
352
|
+
*/
|
|
353
|
+
closeFile(params) {
|
|
354
|
+
const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
|
|
355
|
+
if (ret[1]) {
|
|
356
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
357
|
+
}
|
|
355
358
|
}
|
|
356
359
|
/**
|
|
357
|
-
* @param {
|
|
358
|
-
* @returns {
|
|
360
|
+
* @param {ChangeFileParams} params
|
|
361
|
+
* @returns {ChangeFileResult}
|
|
359
362
|
*/
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
363
|
+
changeFile(params) {
|
|
364
|
+
const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
|
|
365
|
+
if (ret[2]) {
|
|
366
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
367
|
+
}
|
|
368
|
+
return takeFromExternrefTable0(ret[0]);
|
|
364
369
|
}
|
|
365
370
|
/**
|
|
366
|
-
* @param {
|
|
367
|
-
* @returns {
|
|
371
|
+
* @param {FileExitsParams} params
|
|
372
|
+
* @returns {boolean}
|
|
368
373
|
*/
|
|
369
|
-
|
|
370
|
-
const ret = wasm.
|
|
374
|
+
fileExists(params) {
|
|
375
|
+
const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
|
|
376
|
+
if (ret[2]) {
|
|
377
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
378
|
+
}
|
|
379
|
+
return ret[0] !== 0;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* @param {FormatFileParams} params
|
|
383
|
+
* @returns {any}
|
|
384
|
+
*/
|
|
385
|
+
formatFile(params) {
|
|
386
|
+
const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
|
|
371
387
|
if (ret[2]) {
|
|
372
388
|
throw takeFromExternrefTable0(ret[1]);
|
|
373
389
|
}
|
|
374
390
|
return takeFromExternrefTable0(ret[0]);
|
|
375
391
|
}
|
|
376
392
|
/**
|
|
377
|
-
* @param {
|
|
378
|
-
* @returns {
|
|
393
|
+
* @param {FormatRangeParams} params
|
|
394
|
+
* @returns {any}
|
|
379
395
|
*/
|
|
380
|
-
|
|
381
|
-
const ret = wasm.
|
|
396
|
+
formatRange(params) {
|
|
397
|
+
const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
|
|
382
398
|
if (ret[2]) {
|
|
383
399
|
throw takeFromExternrefTable0(ret[1]);
|
|
384
400
|
}
|
|
@@ -395,6 +411,17 @@ class Workspace {
|
|
|
395
411
|
}
|
|
396
412
|
return takeFromExternrefTable0(ret[0]);
|
|
397
413
|
}
|
|
414
|
+
/**
|
|
415
|
+
* @param {PullActionsParams} params
|
|
416
|
+
* @returns {PullActionsResult}
|
|
417
|
+
*/
|
|
418
|
+
pullActions(params) {
|
|
419
|
+
const ret = wasm.workspace_pullActions(this.__wbg_ptr, params);
|
|
420
|
+
if (ret[2]) {
|
|
421
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
422
|
+
}
|
|
423
|
+
return takeFromExternrefTable0(ret[0]);
|
|
424
|
+
}
|
|
398
425
|
/**
|
|
399
426
|
* @param {ScanProjectParams} params
|
|
400
427
|
* @returns {ScanProjectResult}
|
|
@@ -407,25 +434,25 @@ class Workspace {
|
|
|
407
434
|
return takeFromExternrefTable0(ret[0]);
|
|
408
435
|
}
|
|
409
436
|
/**
|
|
410
|
-
* @param {
|
|
411
|
-
* @returns {
|
|
437
|
+
* @param {SupportsFeatureParams} params
|
|
438
|
+
* @returns {FileFeaturesResult}
|
|
412
439
|
*/
|
|
413
|
-
|
|
414
|
-
const ret = wasm.
|
|
440
|
+
fileFeatures(params) {
|
|
441
|
+
const ret = wasm.workspace_fileFeatures(this.__wbg_ptr, params);
|
|
415
442
|
if (ret[2]) {
|
|
416
443
|
throw takeFromExternrefTable0(ret[1]);
|
|
417
444
|
}
|
|
418
445
|
return takeFromExternrefTable0(ret[0]);
|
|
419
446
|
}
|
|
420
447
|
/**
|
|
421
|
-
* @param {
|
|
448
|
+
* @param {GetTypeInfoParams} params
|
|
422
449
|
* @returns {string}
|
|
423
450
|
*/
|
|
424
|
-
|
|
451
|
+
getTypeInfo(params) {
|
|
425
452
|
let deferred2_0;
|
|
426
453
|
let deferred2_1;
|
|
427
454
|
try {
|
|
428
|
-
const ret = wasm.
|
|
455
|
+
const ret = wasm.workspace_getTypeInfo(this.__wbg_ptr, params);
|
|
429
456
|
var ptr1 = ret[0];
|
|
430
457
|
var len1 = ret[1];
|
|
431
458
|
if (ret[3]) {
|
|
@@ -439,6 +466,17 @@ class Workspace {
|
|
|
439
466
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
440
467
|
}
|
|
441
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* @param {FormatOnTypeParams} params
|
|
471
|
+
* @returns {any}
|
|
472
|
+
*/
|
|
473
|
+
formatOnType(params) {
|
|
474
|
+
const ret = wasm.workspace_formatOnType(this.__wbg_ptr, params);
|
|
475
|
+
if (ret[2]) {
|
|
476
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
477
|
+
}
|
|
478
|
+
return takeFromExternrefTable0(ret[0]);
|
|
479
|
+
}
|
|
442
480
|
/**
|
|
443
481
|
* @param {GetSyntaxTreeParams} params
|
|
444
482
|
* @returns {GetSyntaxTreeResult}
|
|
@@ -451,14 +489,36 @@ class Workspace {
|
|
|
451
489
|
return takeFromExternrefTable0(ret[0]);
|
|
452
490
|
}
|
|
453
491
|
/**
|
|
454
|
-
* @param {
|
|
492
|
+
* @param {PathIsIgnoredParams} params
|
|
493
|
+
* @returns {boolean}
|
|
494
|
+
*/
|
|
495
|
+
isPathIgnored(params) {
|
|
496
|
+
const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
|
|
497
|
+
if (ret[2]) {
|
|
498
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
499
|
+
}
|
|
500
|
+
return ret[0] !== 0;
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* @param {UpdateSettingsParams} params
|
|
504
|
+
* @returns {UpdateSettingsResult}
|
|
505
|
+
*/
|
|
506
|
+
updateSettings(params) {
|
|
507
|
+
const ret = wasm.workspace_updateSettings(this.__wbg_ptr, params);
|
|
508
|
+
if (ret[2]) {
|
|
509
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
510
|
+
}
|
|
511
|
+
return takeFromExternrefTable0(ret[0]);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* @param {GetFileContentParams} params
|
|
455
515
|
* @returns {string}
|
|
456
516
|
*/
|
|
457
|
-
|
|
517
|
+
getFileContent(params) {
|
|
458
518
|
let deferred2_0;
|
|
459
519
|
let deferred2_1;
|
|
460
520
|
try {
|
|
461
|
-
const ret = wasm.
|
|
521
|
+
const ret = wasm.workspace_getFileContent(this.__wbg_ptr, params);
|
|
462
522
|
var ptr1 = ret[0];
|
|
463
523
|
var len1 = ret[1];
|
|
464
524
|
if (ret[3]) {
|
|
@@ -495,14 +555,36 @@ class Workspace {
|
|
|
495
555
|
}
|
|
496
556
|
}
|
|
497
557
|
/**
|
|
498
|
-
* @param {
|
|
558
|
+
* @param {GetModuleGraphParams} params
|
|
559
|
+
* @returns {GetModuleGraphResult}
|
|
560
|
+
*/
|
|
561
|
+
getModuleGraph(params) {
|
|
562
|
+
const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
|
|
563
|
+
if (ret[2]) {
|
|
564
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
565
|
+
}
|
|
566
|
+
return takeFromExternrefTable0(ret[0]);
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* @param {PullDiagnosticsParams} params
|
|
570
|
+
* @returns {PullDiagnosticsResult}
|
|
571
|
+
*/
|
|
572
|
+
pullDiagnostics(params) {
|
|
573
|
+
const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
|
|
574
|
+
if (ret[2]) {
|
|
575
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
576
|
+
}
|
|
577
|
+
return takeFromExternrefTable0(ret[0]);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* @param {GetSemanticModelParams} params
|
|
499
581
|
* @returns {string}
|
|
500
582
|
*/
|
|
501
|
-
|
|
583
|
+
getSemanticModel(params) {
|
|
502
584
|
let deferred2_0;
|
|
503
585
|
let deferred2_1;
|
|
504
586
|
try {
|
|
505
|
-
const ret = wasm.
|
|
587
|
+
const ret = wasm.workspace_getSemanticModel(this.__wbg_ptr, params);
|
|
506
588
|
var ptr1 = ret[0];
|
|
507
589
|
var len1 = ret[1];
|
|
508
590
|
if (ret[3]) {
|
|
@@ -516,6 +598,24 @@ class Workspace {
|
|
|
516
598
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
517
599
|
}
|
|
518
600
|
}
|
|
601
|
+
/**
|
|
602
|
+
* @param {MemoryFileSystem} fs
|
|
603
|
+
* @returns {Workspace}
|
|
604
|
+
*/
|
|
605
|
+
static withFileSystem(fs) {
|
|
606
|
+
_assertClass(fs, MemoryFileSystem);
|
|
607
|
+
const ret = wasm.workspace_withFileSystem(fs.__wbg_ptr);
|
|
608
|
+
return Workspace.__wrap(ret);
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* @param {UpdateModuleGraphParams} params
|
|
612
|
+
*/
|
|
613
|
+
updateModuleGraph(params) {
|
|
614
|
+
const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
|
|
615
|
+
if (ret[1]) {
|
|
616
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
519
619
|
/**
|
|
520
620
|
* @param {GetRegisteredTypesParams} params
|
|
521
621
|
* @returns {string}
|
|
@@ -539,14 +639,14 @@ class Workspace {
|
|
|
539
639
|
}
|
|
540
640
|
}
|
|
541
641
|
/**
|
|
542
|
-
* @param {
|
|
642
|
+
* @param {GetControlFlowGraphParams} params
|
|
543
643
|
* @returns {string}
|
|
544
644
|
*/
|
|
545
|
-
|
|
645
|
+
getControlFlowGraph(params) {
|
|
546
646
|
let deferred2_0;
|
|
547
647
|
let deferred2_1;
|
|
548
648
|
try {
|
|
549
|
-
const ret = wasm.
|
|
649
|
+
const ret = wasm.workspace_getControlFlowGraph(this.__wbg_ptr, params);
|
|
550
650
|
var ptr1 = ret[0];
|
|
551
651
|
var len1 = ret[1];
|
|
552
652
|
if (ret[3]) {
|
|
@@ -560,118 +660,18 @@ class Workspace {
|
|
|
560
660
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
561
661
|
}
|
|
562
662
|
}
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
const ret = wasm.workspace_changeFile(this.__wbg_ptr, params);
|
|
569
|
-
if (ret[2]) {
|
|
570
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
571
|
-
}
|
|
572
|
-
return takeFromExternrefTable0(ret[0]);
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* @param {CloseFileParams} params
|
|
576
|
-
*/
|
|
577
|
-
closeFile(params) {
|
|
578
|
-
const ret = wasm.workspace_closeFile(this.__wbg_ptr, params);
|
|
579
|
-
if (ret[1]) {
|
|
580
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* @param {FileExitsParams} params
|
|
585
|
-
* @returns {boolean}
|
|
586
|
-
*/
|
|
587
|
-
fileExists(params) {
|
|
588
|
-
const ret = wasm.workspace_fileExists(this.__wbg_ptr, params);
|
|
589
|
-
if (ret[2]) {
|
|
590
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
591
|
-
}
|
|
592
|
-
return ret[0] !== 0;
|
|
593
|
-
}
|
|
594
|
-
/**
|
|
595
|
-
* @param {PathIsIgnoredParams} params
|
|
596
|
-
* @returns {boolean}
|
|
597
|
-
*/
|
|
598
|
-
isPathIgnored(params) {
|
|
599
|
-
const ret = wasm.workspace_isPathIgnored(this.__wbg_ptr, params);
|
|
600
|
-
if (ret[2]) {
|
|
601
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
602
|
-
}
|
|
603
|
-
return ret[0] !== 0;
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* @param {UpdateModuleGraphParams} params
|
|
607
|
-
*/
|
|
608
|
-
updateModuleGraph(params) {
|
|
609
|
-
const ret = wasm.workspace_updateModuleGraph(this.__wbg_ptr, params);
|
|
610
|
-
if (ret[1]) {
|
|
611
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
/**
|
|
615
|
-
* @param {GetModuleGraphParams} params
|
|
616
|
-
* @returns {GetModuleGraphResult}
|
|
617
|
-
*/
|
|
618
|
-
getModuleGraph(params) {
|
|
619
|
-
const ret = wasm.workspace_getModuleGraph(this.__wbg_ptr, params);
|
|
620
|
-
if (ret[2]) {
|
|
621
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
622
|
-
}
|
|
623
|
-
return takeFromExternrefTable0(ret[0]);
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* @param {PullDiagnosticsParams} params
|
|
627
|
-
* @returns {PullDiagnosticsResult}
|
|
628
|
-
*/
|
|
629
|
-
pullDiagnostics(params) {
|
|
630
|
-
const ret = wasm.workspace_pullDiagnostics(this.__wbg_ptr, params);
|
|
631
|
-
if (ret[2]) {
|
|
632
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
633
|
-
}
|
|
634
|
-
return takeFromExternrefTable0(ret[0]);
|
|
635
|
-
}
|
|
636
|
-
/**
|
|
637
|
-
* @param {PullActionsParams} params
|
|
638
|
-
* @returns {PullActionsResult}
|
|
639
|
-
*/
|
|
640
|
-
pullActions(params) {
|
|
641
|
-
const ret = wasm.workspace_pullActions(this.__wbg_ptr, params);
|
|
642
|
-
if (ret[2]) {
|
|
643
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
644
|
-
}
|
|
645
|
-
return takeFromExternrefTable0(ret[0]);
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* @param {FormatFileParams} params
|
|
649
|
-
* @returns {any}
|
|
650
|
-
*/
|
|
651
|
-
formatFile(params) {
|
|
652
|
-
const ret = wasm.workspace_formatFile(this.__wbg_ptr, params);
|
|
653
|
-
if (ret[2]) {
|
|
654
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
655
|
-
}
|
|
656
|
-
return takeFromExternrefTable0(ret[0]);
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* @param {FormatRangeParams} params
|
|
660
|
-
* @returns {any}
|
|
661
|
-
*/
|
|
662
|
-
formatRange(params) {
|
|
663
|
-
const ret = wasm.workspace_formatRange(this.__wbg_ptr, params);
|
|
664
|
-
if (ret[2]) {
|
|
665
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
666
|
-
}
|
|
667
|
-
return takeFromExternrefTable0(ret[0]);
|
|
663
|
+
constructor() {
|
|
664
|
+
const ret = wasm.workspace_new();
|
|
665
|
+
this.__wbg_ptr = ret >>> 0;
|
|
666
|
+
WorkspaceFinalization.register(this, this.__wbg_ptr, this);
|
|
667
|
+
return this;
|
|
668
668
|
}
|
|
669
669
|
/**
|
|
670
|
-
* @param {
|
|
671
|
-
* @returns {
|
|
670
|
+
* @param {RenameParams} params
|
|
671
|
+
* @returns {RenameResult}
|
|
672
672
|
*/
|
|
673
|
-
|
|
674
|
-
const ret = wasm.
|
|
673
|
+
rename(params) {
|
|
674
|
+
const ret = wasm.workspace_rename(this.__wbg_ptr, params);
|
|
675
675
|
if (ret[2]) {
|
|
676
676
|
throw takeFromExternrefTable0(ret[1]);
|
|
677
677
|
}
|
|
@@ -689,11 +689,11 @@ class Workspace {
|
|
|
689
689
|
return takeFromExternrefTable0(ret[0]);
|
|
690
690
|
}
|
|
691
691
|
/**
|
|
692
|
-
* @param {
|
|
693
|
-
* @returns {
|
|
692
|
+
* @param {OpenFileParams} params
|
|
693
|
+
* @returns {OpenFileResult}
|
|
694
694
|
*/
|
|
695
|
-
|
|
696
|
-
const ret = wasm.
|
|
695
|
+
openFile(params) {
|
|
696
|
+
const ret = wasm.workspace_openFile(this.__wbg_ptr, params);
|
|
697
697
|
if (ret[2]) {
|
|
698
698
|
throw takeFromExternrefTable0(ret[1]);
|
|
699
699
|
}
|
package/biome_wasm_bg.wasm
CHANGED
|
Binary file
|