@powerlines/plugin-id 0.9.140 → 0.9.142

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/dist/index.cjs CHANGED
@@ -32,7 +32,7 @@ function plugin(options = {}) {
32
32
  idModule = require_components_nanoid.nanoidModule;
33
33
  break;
34
34
  }
35
- await this.emitBuiltin(await Promise.resolve(idModule(this)), "id", "id.ts");
35
+ await this.emitBuiltin(await Promise.resolve(idModule(this)), "id");
36
36
  }
37
37
  };
38
38
  }
package/dist/index.mjs CHANGED
@@ -29,7 +29,7 @@ function plugin(options = {}) {
29
29
  idModule = nanoidModule;
30
30
  break;
31
31
  }
32
- await this.emitBuiltin(await Promise.resolve(idModule(this)), "id", "id.ts");
32
+ await this.emitBuiltin(await Promise.resolve(idModule(this)), "id");
33
33
  }
34
34
  };
35
35
  }
@@ -326,19 +326,17 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
326
326
  *
327
327
  * @param code - The source code of the builtin file
328
328
  * @param id - The unique identifier of the builtin file
329
- * @param path - An optional path to write the builtin file to
330
329
  * @param options - Additional options for writing the builtin file
331
330
  */
332
- emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
331
+ emitBuiltin: (code: string, id: string, options?: EmitOptions) => Promise<void>;
333
332
  /**
334
333
  * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
335
334
  *
336
335
  * @param code - The source code of the builtin file
337
336
  * @param id - The unique identifier of the builtin file
338
- * @param path - An optional path to write the builtin file to
339
337
  * @param options - Additional options for writing the builtin file
340
338
  */
341
- emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
339
+ emitBuiltinSync: (code: string, id: string, options?: EmitOptions) => void;
342
340
  /**
343
341
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
344
342
  *
@@ -326,19 +326,17 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
326
326
  *
327
327
  * @param code - The source code of the builtin file
328
328
  * @param id - The unique identifier of the builtin file
329
- * @param path - An optional path to write the builtin file to
330
329
  * @param options - Additional options for writing the builtin file
331
330
  */
332
- emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
331
+ emitBuiltin: (code: string, id: string, options?: EmitOptions) => Promise<void>;
333
332
  /**
334
333
  * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
335
334
  *
336
335
  * @param code - The source code of the builtin file
337
336
  * @param id - The unique identifier of the builtin file
338
- * @param path - An optional path to write the builtin file to
339
337
  * @param options - Additional options for writing the builtin file
340
338
  */
341
- emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
339
+ emitBuiltinSync: (code: string, id: string, options?: EmitOptions) => void;
342
340
  /**
343
341
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
344
342
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-id",
3
- "version": "0.9.140",
3
+ "version": "0.9.142",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin that provides unique identifier generation capabilities at runtime by adding the `id` builtin module.",
6
6
  "repository": {
@@ -131,12 +131,12 @@
131
131
  "@storm-software/config-tools": "^1.188.75",
132
132
  "@stryke/path": "^0.24.1",
133
133
  "defu": "^6.1.4",
134
- "powerlines": "^0.37.5"
134
+ "powerlines": "^0.37.7"
135
135
  },
136
136
  "devDependencies": {
137
- "@powerlines/plugin-plugin": "^0.12.83",
137
+ "@powerlines/plugin-plugin": "^0.12.85",
138
138
  "@types/node": "^24.10.4"
139
139
  },
140
140
  "publishConfig": { "access": "public" },
141
- "gitHead": "cde0a30e0b06424661720ed40b29ae6f67a9ebcc"
141
+ "gitHead": "59db410d946ed8bbbff6ee6230b0716b91ef0115"
142
142
  }