@powerlines/plugin-unimport 0.1.117 → 0.1.118
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.
|
@@ -302,6 +302,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
302
302
|
* @param options - Additional options for writing the builtin file
|
|
303
303
|
*/
|
|
304
304
|
emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
|
|
305
|
+
/**
|
|
306
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
307
|
+
*
|
|
308
|
+
* @param code - The source code of the builtin file
|
|
309
|
+
* @param id - The unique identifier of the builtin file
|
|
310
|
+
* @param path - An optional path to write the builtin file to
|
|
311
|
+
* @param options - Additional options for writing the builtin file
|
|
312
|
+
*/
|
|
313
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: WriteOptions) => void;
|
|
305
314
|
/**
|
|
306
315
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
307
316
|
*
|
|
@@ -310,6 +319,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
310
319
|
* @param options - Additional options for writing the entry file
|
|
311
320
|
*/
|
|
312
321
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
322
|
+
/**
|
|
323
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
324
|
+
*
|
|
325
|
+
* @param code - The source code of the entry file
|
|
326
|
+
* @param path - An optional path to write the entry file to
|
|
327
|
+
* @param options - Additional options for writing the entry file
|
|
328
|
+
*/
|
|
329
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
313
330
|
/**
|
|
314
331
|
* A function to update the context fields using a new user configuration options
|
|
315
332
|
*/
|
|
@@ -304,6 +304,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
304
304
|
* @param options - Additional options for writing the builtin file
|
|
305
305
|
*/
|
|
306
306
|
emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
|
|
307
|
+
/**
|
|
308
|
+
* Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
|
|
309
|
+
*
|
|
310
|
+
* @param code - The source code of the builtin file
|
|
311
|
+
* @param id - The unique identifier of the builtin file
|
|
312
|
+
* @param path - An optional path to write the builtin file to
|
|
313
|
+
* @param options - Additional options for writing the builtin file
|
|
314
|
+
*/
|
|
315
|
+
emitBuiltinSync: (code: string, id: string, path?: string, options?: WriteOptions) => void;
|
|
307
316
|
/**
|
|
308
317
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
309
318
|
*
|
|
@@ -312,6 +321,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
312
321
|
* @param options - Additional options for writing the entry file
|
|
313
322
|
*/
|
|
314
323
|
emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
|
|
324
|
+
/**
|
|
325
|
+
* Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
326
|
+
*
|
|
327
|
+
* @param code - The source code of the entry file
|
|
328
|
+
* @param path - An optional path to write the entry file to
|
|
329
|
+
* @param options - Additional options for writing the entry file
|
|
330
|
+
*/
|
|
331
|
+
emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
|
|
315
332
|
/**
|
|
316
333
|
* A function to update the context fields using a new user configuration options
|
|
317
334
|
*/
|
|
@@ -13,6 +13,13 @@ interface StorageAdapter {
|
|
|
13
13
|
* A name identifying the storage adapter type.
|
|
14
14
|
*/
|
|
15
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The storage preset for the adapter.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
21
|
+
*/
|
|
22
|
+
preset?: StoragePreset | null;
|
|
16
23
|
/**
|
|
17
24
|
* Checks if a key exists in the storage.
|
|
18
25
|
*
|
|
@@ -207,6 +214,13 @@ interface WriteOptions {
|
|
|
207
214
|
* @defaultValue false
|
|
208
215
|
*/
|
|
209
216
|
skipFormat?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The storage preset or adapter name for the output file.
|
|
219
|
+
*
|
|
220
|
+
* @remarks
|
|
221
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
222
|
+
*/
|
|
223
|
+
storage?: StoragePreset | string;
|
|
210
224
|
/**
|
|
211
225
|
* Additional metadata for the file.
|
|
212
226
|
*/
|
|
@@ -13,6 +13,13 @@ interface StorageAdapter {
|
|
|
13
13
|
* A name identifying the storage adapter type.
|
|
14
14
|
*/
|
|
15
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* The storage preset for the adapter.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
* This can be used as an alternate way to identify the type of storage being used.
|
|
21
|
+
*/
|
|
22
|
+
preset?: StoragePreset | null;
|
|
16
23
|
/**
|
|
17
24
|
* Checks if a key exists in the storage.
|
|
18
25
|
*
|
|
@@ -207,6 +214,13 @@ interface WriteOptions {
|
|
|
207
214
|
* @defaultValue false
|
|
208
215
|
*/
|
|
209
216
|
skipFormat?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* The storage preset or adapter name for the output file.
|
|
219
|
+
*
|
|
220
|
+
* @remarks
|
|
221
|
+
* If not specified, the output mode will be determined by the provided `output.mode` value.
|
|
222
|
+
*/
|
|
223
|
+
storage?: StoragePreset | string;
|
|
210
224
|
/**
|
|
211
225
|
* Additional metadata for the file.
|
|
212
226
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-unimport",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin to add imports to source code automatically via unimport.",
|
|
6
6
|
"repository": {
|
|
@@ -126,14 +126,14 @@
|
|
|
126
126
|
"defu": "^6.1.4",
|
|
127
127
|
"jiti": "^2.6.1",
|
|
128
128
|
"unimport": "^5.6.0",
|
|
129
|
-
"powerlines": "^0.36.
|
|
129
|
+
"powerlines": "^0.36.22",
|
|
130
130
|
"magic-string": "^0.30.21"
|
|
131
131
|
},
|
|
132
132
|
"devDependencies": {
|
|
133
|
-
"@powerlines/nx": "^0.11.
|
|
134
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
133
|
+
"@powerlines/nx": "^0.11.48",
|
|
134
|
+
"@powerlines/plugin-plugin": "^0.12.69",
|
|
135
135
|
"@types/node": "^24.10.4"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": { "access": "public" },
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "f88fe8eb30f96536b83fc9af884972d48e31e63a"
|
|
139
139
|
}
|