@powerlines/plugin-crypto 0.10.95 → 0.10.97

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.
Files changed (111) hide show
  1. package/dist/_virtual/rolldown_runtime.cjs +37 -1
  2. package/dist/_virtual/rolldown_runtime.mjs +29 -1
  3. package/dist/components/crypto.cjs +24 -10
  4. package/dist/components/crypto.mjs +24 -10
  5. package/dist/components/index.cjs +1 -1
  6. package/dist/components/index.mjs +3 -1
  7. package/dist/deepkit/schemas/reflection.cjs +3998 -1
  8. package/dist/deepkit/schemas/reflection.mjs +3996 -1
  9. package/dist/deepkit/schemas/reflection2.cjs +4112 -1
  10. package/dist/deepkit/schemas/reflection2.mjs +4110 -1
  11. package/dist/deepkit/src/capnp.cjs +913 -1
  12. package/dist/deepkit/src/capnp.mjs +911 -1
  13. package/dist/deepkit/src/esbuild-plugin.cjs +47 -4
  14. package/dist/deepkit/src/esbuild-plugin.mjs +46 -4
  15. package/dist/deepkit/src/reflect-type.cjs +22 -1
  16. package/dist/deepkit/src/reflect-type.mjs +20 -1
  17. package/dist/deepkit/src/resolve-reflections.cjs +16 -1
  18. package/dist/deepkit/src/resolve-reflections.mjs +15 -1
  19. package/dist/deepkit/src/transformer.cjs +52 -1
  20. package/dist/deepkit/src/transformer.mjs +49 -1
  21. package/dist/deepkit/src/transpile.cjs +29 -1
  22. package/dist/deepkit/src/transpile.mjs +27 -1
  23. package/dist/deepkit/src/utilities.cjs +66 -1
  24. package/dist/deepkit/src/utilities.mjs +65 -1
  25. package/dist/deepkit/src/vendor/type-compiler/index.cjs +38 -1
  26. package/dist/deepkit/src/vendor/type-compiler/index.mjs +19 -1
  27. package/dist/deepkit/src/vendor/type.cjs +20 -1
  28. package/dist/deepkit/src/vendor/type.mjs +11 -1
  29. package/dist/index.cjs +46 -1
  30. package/dist/index.mjs +41 -1
  31. package/dist/plugin-alloy/src/core/components/output.cjs +38 -1
  32. package/dist/plugin-alloy/src/core/components/output.mjs +37 -1
  33. package/dist/plugin-alloy/src/core/contexts/context.cjs +11 -1
  34. package/dist/plugin-alloy/src/core/contexts/context.mjs +10 -1
  35. package/dist/plugin-alloy/src/index.cjs +90 -2
  36. package/dist/plugin-alloy/src/index.mjs +88 -2
  37. package/dist/plugin-alloy/src/types/components.d.mts +1 -1
  38. package/dist/plugin-alloy/src/types/plugin.d.cts +3 -3
  39. package/dist/plugin-alloy/src/types/plugin.d.mts +3 -3
  40. package/dist/plugin-automd/src/index.cjs +101 -1
  41. package/dist/plugin-automd/src/index.mjs +98 -1
  42. package/dist/plugin-babel/src/helpers/ast-utils.cjs +10 -1
  43. package/dist/plugin-babel/src/helpers/ast-utils.mjs +9 -1
  44. package/dist/plugin-babel/src/helpers/create-plugin.cjs +41 -1
  45. package/dist/plugin-babel/src/helpers/create-plugin.mjs +39 -1
  46. package/dist/plugin-babel/src/helpers/filters.cjs +23 -1
  47. package/dist/plugin-babel/src/helpers/filters.mjs +21 -1
  48. package/dist/plugin-babel/src/helpers/index.cjs +5 -1
  49. package/dist/plugin-babel/src/helpers/index.mjs +7 -1
  50. package/dist/plugin-babel/src/helpers/module-helpers.cjs +38 -1
  51. package/dist/plugin-babel/src/helpers/module-helpers.mjs +35 -1
  52. package/dist/plugin-babel/src/helpers/options.cjs +50 -1
  53. package/dist/plugin-babel/src/helpers/options.mjs +47 -1
  54. package/dist/plugin-babel/src/index.cjs +91 -1
  55. package/dist/plugin-babel/src/index.mjs +89 -1
  56. package/dist/plugin-env/src/babel/index.cjs +1 -1
  57. package/dist/plugin-env/src/babel/index.mjs +3 -1
  58. package/dist/plugin-env/src/babel/plugin.cjs +120 -4
  59. package/dist/plugin-env/src/babel/plugin.mjs +118 -4
  60. package/dist/plugin-env/src/components/docs.cjs +9 -1
  61. package/dist/plugin-env/src/components/docs.mjs +11 -1
  62. package/dist/plugin-env/src/components/env.cjs +349 -11
  63. package/dist/plugin-env/src/components/env.mjs +347 -9
  64. package/dist/plugin-env/src/components/index.cjs +2 -1
  65. package/dist/plugin-env/src/components/index.mjs +4 -1
  66. package/dist/plugin-env/src/helpers/automd-generator.cjs +22 -1
  67. package/dist/plugin-env/src/helpers/automd-generator.mjs +21 -1
  68. package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +55 -1
  69. package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +54 -1
  70. package/dist/plugin-env/src/helpers/index.cjs +6 -1
  71. package/dist/plugin-env/src/helpers/index.mjs +8 -1
  72. package/dist/plugin-env/src/helpers/load.cjs +83 -1
  73. package/dist/plugin-env/src/helpers/load.mjs +80 -1
  74. package/dist/plugin-env/src/helpers/persistence.cjs +200 -1
  75. package/dist/plugin-env/src/helpers/persistence.mjs +189 -1
  76. package/dist/plugin-env/src/helpers/reflect.cjs +125 -1
  77. package/dist/plugin-env/src/helpers/reflect.mjs +117 -1
  78. package/dist/plugin-env/src/helpers/source-file-env.cjs +24 -1
  79. package/dist/plugin-env/src/helpers/source-file-env.mjs +23 -1
  80. package/dist/plugin-env/src/helpers/template-helpers.cjs +2 -1
  81. package/dist/plugin-env/src/helpers/template-helpers.mjs +4 -1
  82. package/dist/plugin-env/src/index.cjs +167 -5
  83. package/dist/plugin-env/src/index.mjs +165 -5
  84. package/dist/powerlines/src/lib/build/esbuild.cjs +102 -14
  85. package/dist/powerlines/src/lib/build/esbuild.mjs +100 -14
  86. package/dist/powerlines/src/lib/entry.cjs +12 -1
  87. package/dist/powerlines/src/lib/entry.mjs +14 -1
  88. package/dist/powerlines/src/lib/logger.cjs +41 -1
  89. package/dist/powerlines/src/lib/logger.mjs +39 -1
  90. package/dist/powerlines/src/lib/utilities/bundle.cjs +35 -1
  91. package/dist/powerlines/src/lib/utilities/bundle.mjs +34 -1
  92. package/dist/powerlines/src/lib/utilities/file-header.cjs +19 -7
  93. package/dist/powerlines/src/lib/utilities/file-header.mjs +18 -7
  94. package/dist/powerlines/src/lib/utilities/resolve.cjs +30 -1
  95. package/dist/powerlines/src/lib/utilities/resolve.mjs +29 -1
  96. package/dist/powerlines/src/plugin-utils/paths.cjs +1 -1
  97. package/dist/powerlines/src/plugin-utils/paths.mjs +3 -1
  98. package/dist/powerlines/src/types/build.d.mts +2 -0
  99. package/dist/powerlines/src/types/config.d.mts +1 -1
  100. package/dist/powerlines/src/types/context.d.cts +43 -2
  101. package/dist/powerlines/src/types/context.d.mts +43 -2
  102. package/dist/powerlines/src/types/fs.d.cts +14 -0
  103. package/dist/powerlines/src/types/fs.d.mts +14 -0
  104. package/dist/powerlines/src/types/resolved.d.mts +1 -0
  105. package/dist/types/index.mjs +1 -1
  106. package/dist/types/plugin.mjs +1 -1
  107. package/package.json +6 -6
  108. package/dist/plugin-alloy/src/vendor/index.cjs +0 -1
  109. package/dist/plugin-alloy/src/vendor/index.d.cts +0 -7
  110. package/dist/plugin-alloy/src/vendor/index.d.mts +0 -7
  111. package/dist/plugin-alloy/src/vendor/index.mjs +0 -1
@@ -1,10 +1,22 @@
1
- const e=require(`../../../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/string-format/title-case`);function n(e){return`
2
- // Generated with ${(0,t.titleCase)(e.config.framework)}
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
3
+
4
+ //#region ../powerlines/src/lib/utilities/file-header.ts
5
+ function getBaseFileHeader(context) {
6
+ return `
7
+ // Generated with ${(0, __stryke_string_format_title_case.titleCase)(context.config.framework)}
3
8
  // Note: Do not edit this file manually - it will be overwritten automatically
4
- `}function r(e,t={}){let{directive:r=null,prettierIgnore:i=!1}=t;return`/* eslint-disable */
9
+ `;
10
+ }
11
+ function getFileHeader(context, options = {}) {
12
+ const { directive = null, prettierIgnore = false } = options;
13
+ return `/* eslint-disable */
5
14
  // biome-ignore lint: disable
6
- ${i?`// prettier-ignore`:``}${r?`\n\n${r}\n`:`
7
- `}
8
- ${n(e)}
15
+ ${prettierIgnore ? `// prettier-ignore` : ""}${directive ? `\n\n${directive}\n` : "\n"}
16
+ ${getBaseFileHeader(context)}
17
+
18
+ `;
19
+ }
9
20
 
10
- `}exports.getFileHeader=r;
21
+ //#endregion
22
+ exports.getFileHeader = getFileHeader;
@@ -1,10 +1,21 @@
1
- import{titleCase as e}from"@stryke/string-format/title-case";function t(t){return`
2
- // Generated with ${e(t.config.framework)}
1
+ import { titleCase } from "@stryke/string-format/title-case";
2
+
3
+ //#region ../powerlines/src/lib/utilities/file-header.ts
4
+ function getBaseFileHeader(context) {
5
+ return `
6
+ // Generated with ${titleCase(context.config.framework)}
3
7
  // Note: Do not edit this file manually - it will be overwritten automatically
4
- `}function n(e,n={}){let{directive:r=null,prettierIgnore:i=!1}=n;return`/* eslint-disable */
8
+ `;
9
+ }
10
+ function getFileHeader(context, options = {}) {
11
+ const { directive = null, prettierIgnore = false } = options;
12
+ return `/* eslint-disable */
5
13
  // biome-ignore lint: disable
6
- ${i?`// prettier-ignore`:``}${r?`\n\n${r}\n`:`
7
- `}
8
- ${t(e)}
14
+ ${prettierIgnore ? `// prettier-ignore` : ""}${directive ? `\n\n${directive}\n` : "\n"}
15
+ ${getBaseFileHeader(context)}
16
+
17
+ `;
18
+ }
9
19
 
10
- `}export{n as getFileHeader};
20
+ //#endregion
21
+ export { getFileHeader };
@@ -1 +1,30 @@
1
- const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`./bundle.cjs`);let n=require(`@stryke/type-checks/is-set-string`),r=require(`@stryke/convert/parse-type-definition`);async function i(e,i,a={}){let o;o=(0,n.isSetString)(i)?(0,r.parseTypeDefinition)(i):i;let s=await t.bundle(e,o.file,a),c=await e.resolver.evalModule(s.text,{filename:s.path,forceTranspile:!0}),l=o.name;return l||=`default`,c[l]??c[`__Ω${l}`]}exports.resolve=i;
1
+ const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_bundle = require('./bundle.cjs');
3
+ let __stryke_type_checks_is_set_string = require("@stryke/type-checks/is-set-string");
4
+ let __stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
5
+
6
+ //#region ../powerlines/src/lib/utilities/resolve.ts
7
+ /**
8
+ * Compiles a type definition to a module.
9
+ *
10
+ * @param context - The context object containing the environment paths.
11
+ * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
12
+ * @param overrides - Optional overrides for the ESBuild configuration.
13
+ * @returns A promise that resolves to the compiled module.
14
+ */
15
+ async function resolve(context, type, overrides = {}) {
16
+ let typeDefinition;
17
+ if ((0, __stryke_type_checks_is_set_string.isSetString)(type)) typeDefinition = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(type);
18
+ else typeDefinition = type;
19
+ const result = await require_bundle.bundle(context, typeDefinition.file, overrides);
20
+ const resolved = await context.resolver.evalModule(result.text, {
21
+ filename: result.path,
22
+ forceTranspile: true
23
+ });
24
+ let exportName = typeDefinition.name;
25
+ if (!exportName) exportName = "default";
26
+ return resolved[exportName] ?? resolved[`__Ω${exportName}`];
27
+ }
28
+
29
+ //#endregion
30
+ exports.resolve = resolve;
@@ -1 +1,29 @@
1
- import{bundle as e}from"./bundle.mjs";import{isSetString as t}from"@stryke/type-checks/is-set-string";import{parseTypeDefinition as n}from"@stryke/convert/parse-type-definition";async function r(r,i,a={}){let o;o=t(i)?n(i):i;let s=await e(r,o.file,a),c=await r.resolver.evalModule(s.text,{filename:s.path,forceTranspile:!0}),l=o.name;return l||=`default`,c[l]??c[`__Ω${l}`]}export{r as resolve};
1
+ import { bundle } from "./bundle.mjs";
2
+ import { isSetString } from "@stryke/type-checks/is-set-string";
3
+ import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
4
+
5
+ //#region ../powerlines/src/lib/utilities/resolve.ts
6
+ /**
7
+ * Compiles a type definition to a module.
8
+ *
9
+ * @param context - The context object containing the environment paths.
10
+ * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.
11
+ * @param overrides - Optional overrides for the ESBuild configuration.
12
+ * @returns A promise that resolves to the compiled module.
13
+ */
14
+ async function resolve(context, type, overrides = {}) {
15
+ let typeDefinition;
16
+ if (isSetString(type)) typeDefinition = parseTypeDefinition(type);
17
+ else typeDefinition = type;
18
+ const result = await bundle(context, typeDefinition.file, overrides);
19
+ const resolved = await context.resolver.evalModule(result.text, {
20
+ filename: result.path,
21
+ forceTranspile: true
22
+ });
23
+ let exportName = typeDefinition.name;
24
+ if (!exportName) exportName = "default";
25
+ return resolved[exportName] ?? resolved[`__Ω${exportName}`];
26
+ }
27
+
28
+ //#endregion
29
+ export { resolve };
@@ -1 +1 @@
1
- let e=require(`@stryke/path/replace`);
1
+ let __stryke_path_replace = require("@stryke/path/replace");
@@ -1 +1,3 @@
1
- import{replacePath as e}from"@stryke/path/replace";export{};
1
+ import { replacePath } from "@stryke/path/replace";
2
+
3
+ export { };
@@ -1,3 +1,5 @@
1
+ import "esbuild";
2
+
1
3
  //#region ../powerlines/src/types/build.d.ts
2
4
 
3
5
  type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
@@ -4,9 +4,9 @@ import { StoragePort, StoragePreset } from "./fs.mjs";
4
4
  import { TSConfig } from "./tsconfig.mjs";
5
5
  import { PluginContext } from "./context.mjs";
6
6
  import { Plugin } from "./plugin.mjs";
7
- import { LogLevelLabel } from "@storm-software/config-tools/types";
8
7
  import "c12";
9
8
  import { transformAsync } from "@babel/core";
9
+ import { LogLevelLabel } from "@storm-software/config-tools/types";
10
10
  import { MaybePromise } from "@stryke/types/base";
11
11
  import { PreviewOptions } from "vite";
12
12
  import { Format } from "@storm-software/build-tools/types";
@@ -89,10 +89,18 @@ interface ParseOptions extends ParserOptions {
89
89
  */
90
90
  allowReturnOutsideFunction?: boolean;
91
91
  }
92
+ interface EmitOptions extends WriteOptions {
93
+ /**
94
+ * If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
95
+ */
96
+ emitWithBundler?: boolean;
97
+ needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
98
+ originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
99
+ }
92
100
  /**
93
101
  * Options for emitting entry virtual files
94
102
  */
95
- type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
103
+ type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
96
104
  /**
97
105
  * The unresolved Powerlines context.
98
106
  *
@@ -303,6 +311,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
303
311
  * The Powerlines builtin virtual files
304
312
  */
305
313
  getBuiltins: () => Promise<VirtualFile[]>;
314
+ /**
315
+ * Resolves a file and writes it to the VFS if it does not already exist
316
+ *
317
+ * @param code - The source code of the file
318
+ * @param path - The path to write the file to
319
+ * @param options - Additional options for writing the file
320
+ */
321
+ emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
322
+ /**
323
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
324
+ *
325
+ * @param code - The source code of the file
326
+ * @param path - The path to write the file to
327
+ * @param options - Additional options for writing the file
328
+ */
329
+ emitSync: (code: string, path: string, options?: EmitOptions) => void;
306
330
  /**
307
331
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
308
332
  *
@@ -311,7 +335,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
311
335
  * @param path - An optional path to write the builtin file to
312
336
  * @param options - Additional options for writing the builtin file
313
337
  */
314
- emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
338
+ emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
339
+ /**
340
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
341
+ *
342
+ * @param code - The source code of the builtin file
343
+ * @param id - The unique identifier of the builtin file
344
+ * @param path - An optional path to write the builtin file to
345
+ * @param options - Additional options for writing the builtin file
346
+ */
347
+ emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
315
348
  /**
316
349
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
317
350
  *
@@ -320,6 +353,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
320
353
  * @param options - Additional options for writing the entry file
321
354
  */
322
355
  emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
356
+ /**
357
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
358
+ *
359
+ * @param code - The source code of the entry file
360
+ * @param path - An optional path to write the entry file to
361
+ * @param options - Additional options for writing the entry file
362
+ */
363
+ emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
323
364
  /**
324
365
  * A function to update the context fields using a new user configuration options
325
366
  */
@@ -91,10 +91,18 @@ interface ParseOptions extends ParserOptions {
91
91
  */
92
92
  allowReturnOutsideFunction?: boolean;
93
93
  }
94
+ interface EmitOptions extends WriteOptions {
95
+ /**
96
+ * If true, will emit the file using {@link UnpluginBuildContext.emitFile | the bundler's emit function}.
97
+ */
98
+ emitWithBundler?: boolean;
99
+ needsCodeReference?: Parameters<UnpluginBuildContext["emitFile"]>[0]["needsCodeReference"];
100
+ originalFileName?: Parameters<UnpluginBuildContext["emitFile"]>[0]["originalFileName"];
101
+ }
94
102
  /**
95
103
  * Options for emitting entry virtual files
96
104
  */
97
- type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
105
+ type EmitEntryOptions = EmitOptions & Omit<ResolvedEntryTypeDefinition, "file">;
98
106
  /**
99
107
  * The unresolved Powerlines context.
100
108
  *
@@ -305,6 +313,22 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
305
313
  * The Powerlines builtin virtual files
306
314
  */
307
315
  getBuiltins: () => Promise<VirtualFile[]>;
316
+ /**
317
+ * Resolves a file and writes it to the VFS if it does not already exist
318
+ *
319
+ * @param code - The source code of the file
320
+ * @param path - The path to write the file to
321
+ * @param options - Additional options for writing the file
322
+ */
323
+ emit: (code: string, path: string, options?: EmitOptions) => Promise<void>;
324
+ /**
325
+ * Synchronously resolves a file and writes it to the VFS if it does not already exist
326
+ *
327
+ * @param code - The source code of the file
328
+ * @param path - The path to write the file to
329
+ * @param options - Additional options for writing the file
330
+ */
331
+ emitSync: (code: string, path: string, options?: EmitOptions) => void;
308
332
  /**
309
333
  * Resolves a builtin virtual file and writes it to the VFS if it does not already exist
310
334
  *
@@ -313,7 +337,16 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
313
337
  * @param path - An optional path to write the builtin file to
314
338
  * @param options - Additional options for writing the builtin file
315
339
  */
316
- emitBuiltin: (code: string, id: string, path?: string, options?: WriteOptions) => Promise<void>;
340
+ emitBuiltin: (code: string, id: string, path?: string, options?: EmitOptions) => Promise<void>;
341
+ /**
342
+ * Synchronously resolves a builtin virtual file and writes it to the VFS if it does not already exist
343
+ *
344
+ * @param code - The source code of the builtin file
345
+ * @param id - The unique identifier of the builtin file
346
+ * @param path - An optional path to write the builtin file to
347
+ * @param options - Additional options for writing the builtin file
348
+ */
349
+ emitBuiltinSync: (code: string, id: string, path?: string, options?: EmitOptions) => void;
317
350
  /**
318
351
  * Resolves a entry virtual file and writes it to the VFS if it does not already exist
319
352
  *
@@ -322,6 +355,14 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
322
355
  * @param options - Additional options for writing the entry file
323
356
  */
324
357
  emitEntry: (code: string, path: string, options?: EmitEntryOptions) => Promise<void>;
358
+ /**
359
+ * Synchronously resolves a entry virtual file and writes it to the VFS if it does not already exist
360
+ *
361
+ * @param code - The source code of the entry file
362
+ * @param path - An optional path to write the entry file to
363
+ * @param options - Additional options for writing the entry file
364
+ */
365
+ emitEntrySync: (code: string, path: string, options?: EmitEntryOptions) => void;
325
366
  /**
326
367
  * A function to update the context fields using a new user configuration options
327
368
  */
@@ -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
  */
@@ -1,3 +1,4 @@
1
+ import "./build.mjs";
1
2
  import { BabelUserConfig, EnvironmentConfig, InlineConfig, OutputConfig, UserConfig } from "./config.mjs";
2
3
  import { NonUndefined } from "@stryke/types/base";
3
4
  import { ResolvedPreviewOptions } from "vite";
@@ -1 +1 @@
1
- export{};
1
+ export { };
@@ -1 +1 @@
1
- export{};
1
+ export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-crypto",
3
- "version": "0.10.95",
3
+ "version": "0.10.97",
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": {
@@ -128,17 +128,17 @@
128
128
  "files": ["dist/**/*"],
129
129
  "keywords": ["powerlines", "storm-software", "powerlines-plugin"],
130
130
  "dependencies": {
131
- "@powerlines/plugin-env": "^0.14.20",
131
+ "@powerlines/plugin-env": "^0.14.22",
132
132
  "@storm-software/config-tools": "^1.188.74",
133
- "@stryke/path": "^0.24.0",
133
+ "@stryke/path": "^0.24.1",
134
134
  "defu": "^6.1.4",
135
- "powerlines": "^0.36.21",
135
+ "powerlines": "^0.36.23",
136
136
  "@noble/ciphers": "^2.1.1"
137
137
  },
138
138
  "devDependencies": {
139
- "@powerlines/nx": "^0.11.47",
139
+ "@powerlines/nx": "^0.11.49",
140
140
  "@types/node": "^24.10.4"
141
141
  },
142
142
  "publishConfig": { "access": "public" },
143
- "gitHead": "b16324cf857ea5743fd7ad06e18607b1ba32abe0"
143
+ "gitHead": "be47e546b48b9a82e460b5c5d4f02fb66e821f18"
144
144
  }
@@ -1 +0,0 @@
1
- const e=require(`../../../_virtual/rolldown_runtime.cjs`);var t={};e.__reExport(t,require(`@alloy-js/core`)),Object.defineProperty(exports,`vendor_exports`,{enumerable:!0,get:function(){return t}});var n=require(`@alloy-js/core`);Object.keys(n).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
@@ -1,7 +0,0 @@
1
- export * from "@alloy-js/core";
2
-
3
- //#region ../plugin-alloy/src/vendor/index.d.ts
4
-
5
- import * as import___alloy_js_core from "@alloy-js/core";
6
- //#endregion
7
- export { import___alloy_js_core as index_d_exports };
@@ -1,7 +0,0 @@
1
- export * from "@alloy-js/core";
2
-
3
- //#region ../plugin-alloy/src/vendor/index.d.ts
4
-
5
- import * as import___alloy_js_core from "@alloy-js/core";
6
- //#endregion
7
- export { import___alloy_js_core as index_d_exports };
@@ -1 +0,0 @@
1
- import{__reExport as e}from"../../../_virtual/rolldown_runtime.mjs";export*from"@alloy-js/core";var t={};import*as n from"@alloy-js/core";e(t,n);export{t as vendor_exports};