@powerlines/plugin-crypto 0.10.65 → 0.10.67

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.
@@ -6,11 +6,11 @@ import { PluginContext } from "./context.cjs";
6
6
  import { Plugin } from "./plugin.cjs";
7
7
  import { MaybePromise } from "@stryke/types/base";
8
8
  import { PreviewOptions } from "vite";
9
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
10
9
  import { transformAsync } from "@babel/core";
11
10
  import { Format } from "@storm-software/build-tools/types";
12
11
  import { LogLevelLabel } from "@storm-software/config-tools/types";
13
12
  import { StormWorkspaceConfig } from "@storm-software/config/types";
13
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
14
14
  import { AssetGlob } from "@stryke/types/file";
15
15
 
16
16
  //#region ../powerlines/src/types/config.d.ts
@@ -9,9 +9,9 @@ import { transformAsync } from "@babel/core";
9
9
  import "c12";
10
10
  import { MaybePromise } from "@stryke/types/base";
11
11
  import { PreviewOptions } from "vite";
12
- import { TypeDefinitionParameter } from "@stryke/types/configuration";
13
12
  import { Format } from "@storm-software/build-tools/types";
14
13
  import { StormWorkspaceConfig } from "@storm-software/config/types";
14
+ import { TypeDefinitionParameter } from "@stryke/types/configuration";
15
15
  import { AssetGlob } from "@stryke/types/file";
16
16
 
17
17
  //#region ../powerlines/src/types/config.d.ts
@@ -6,7 +6,6 @@ import { NonUndefined } from "@stryke/types/base";
6
6
  import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
7
7
  import { EnvPaths } from "@stryke/env/get-env-paths";
8
8
  import { FetchRequestOptions } from "@stryke/http/fetch";
9
- import { TypeDefinition } from "@stryke/types/configuration";
10
9
  import { PackageJson } from "@stryke/types/package-json";
11
10
  import { Jiti } from "jiti";
12
11
  import { SourceMap } from "magic-string";
@@ -61,6 +60,9 @@ interface TransformResult$1 {
61
60
  code: string;
62
61
  map: SourceMap | null;
63
62
  }
63
+ /**
64
+ * Options for initializing or updating the context with new configuration values
65
+ */
64
66
  interface InitContextOptions {
65
67
  /**
66
68
  * If false, the plugin will be loaded after all other plugins.
@@ -69,27 +71,28 @@ interface InitContextOptions {
69
71
  */
70
72
  isHighPriority: boolean;
71
73
  }
74
+ /**
75
+ * Options for fetch requests made via the context's {@link Context.fetch} method
76
+ */
72
77
  interface FetchOptions extends FetchRequestOptions {
73
78
  /**
74
79
  * An indicator specifying that the request should bypass any caching
75
80
  */
76
81
  skipCache?: boolean;
77
82
  }
83
+ /**
84
+ * Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
85
+ */
78
86
  interface ParseOptions extends ParserOptions {
79
87
  /**
80
88
  * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
81
89
  */
82
90
  allowReturnOutsideFunction?: boolean;
83
91
  }
84
- interface EmitEntryOptions extends WriteOptions {
85
- /**
86
- * The export name of the type definition in the file being emitted
87
- *
88
- * @remarks
89
- * If no value is provided, we will attempt to infer the type definition from the module's `default` export.
90
- */
91
- name?: TypeDefinition["name"];
92
- }
92
+ /**
93
+ * Options for emitting entry virtual files
94
+ */
95
+ type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
93
96
  /**
94
97
  * The unresolved Powerlines context.
95
98
  *
@@ -8,7 +8,6 @@ import { NonUndefined } from "@stryke/types/base";
8
8
  import { ExternalIdResult, UnpluginBuildContext, UnpluginContext, UnpluginMessage } from "unplugin";
9
9
  import { EnvPaths } from "@stryke/env/get-env-paths";
10
10
  import { FetchRequestOptions } from "@stryke/http/fetch";
11
- import { TypeDefinition } from "@stryke/types/configuration";
12
11
  import { PackageJson } from "@stryke/types/package-json";
13
12
  import { Jiti } from "jiti";
14
13
  import { SourceMap } from "magic-string";
@@ -63,6 +62,9 @@ interface TransformResult$1 {
63
62
  code: string;
64
63
  map: SourceMap | null;
65
64
  }
65
+ /**
66
+ * Options for initializing or updating the context with new configuration values
67
+ */
66
68
  interface InitContextOptions {
67
69
  /**
68
70
  * If false, the plugin will be loaded after all other plugins.
@@ -71,27 +73,28 @@ interface InitContextOptions {
71
73
  */
72
74
  isHighPriority: boolean;
73
75
  }
76
+ /**
77
+ * Options for fetch requests made via the context's {@link Context.fetch} method
78
+ */
74
79
  interface FetchOptions extends FetchRequestOptions {
75
80
  /**
76
81
  * An indicator specifying that the request should bypass any caching
77
82
  */
78
83
  skipCache?: boolean;
79
84
  }
85
+ /**
86
+ * Options for parsing code using [Oxc-Parser](https://github.com/oxc/oxc)
87
+ */
80
88
  interface ParseOptions extends ParserOptions {
81
89
  /**
82
90
  * When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
83
91
  */
84
92
  allowReturnOutsideFunction?: boolean;
85
93
  }
86
- interface EmitEntryOptions extends WriteOptions {
87
- /**
88
- * The export name of the type definition in the file being emitted
89
- *
90
- * @remarks
91
- * If no value is provided, we will attempt to infer the type definition from the module's `default` export.
92
- */
93
- name?: TypeDefinition["name"];
94
- }
94
+ /**
95
+ * Options for emitting entry virtual files
96
+ */
97
+ type EmitEntryOptions = WriteOptions & Omit<ResolvedEntryTypeDefinition, "file">;
95
98
  /**
96
99
  * The unresolved Powerlines context.
97
100
  *
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
164
164
  /**
165
165
  * Additional metadata associated with the file.
166
166
  */
167
- properties: Record<string, string>;
167
+ properties: Record<string, string | undefined>;
168
168
  }
169
169
  interface VirtualFileData {
170
170
  /**
@@ -188,7 +188,7 @@ interface VirtualFileData {
188
188
  /**
189
189
  * Additional metadata associated with the file.
190
190
  */
191
- properties?: Record<string, string>;
191
+ properties?: Record<string, string | undefined>;
192
192
  }
193
193
  interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
194
194
  /**
@@ -164,7 +164,7 @@ interface VirtualFileMetadata {
164
164
  /**
165
165
  * Additional metadata associated with the file.
166
166
  */
167
- properties: Record<string, string>;
167
+ properties: Record<string, string | undefined>;
168
168
  }
169
169
  interface VirtualFileData {
170
170
  /**
@@ -188,7 +188,7 @@ interface VirtualFileData {
188
188
  /**
189
189
  * Additional metadata associated with the file.
190
190
  */
191
- properties?: Record<string, string>;
191
+ properties?: Record<string, string | undefined>;
192
192
  }
193
193
  interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
194
194
  /**
@@ -9,7 +9,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
9
9
  /**
10
10
  * The user provided entry point in the source code
11
11
  */
12
- input: TypeDefinition;
12
+ input?: TypeDefinition;
13
13
  /**
14
14
  * An optional name to use in the package export during the build process
15
15
  */
@@ -9,7 +9,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
9
9
  /**
10
10
  * The user provided entry point in the source code
11
11
  */
12
- input: TypeDefinition;
12
+ input?: TypeDefinition;
13
13
  /**
14
14
  * An optional name to use in the package export during the build process
15
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-crypto",
3
- "version": "0.10.65",
3
+ "version": "0.10.67",
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.13.97",
131
+ "@powerlines/plugin-env": "^0.13.99",
132
132
  "@storm-software/config-tools": "^1.188.73",
133
133
  "@stryke/path": "^0.24.0",
134
134
  "defu": "^6.1.4",
135
- "powerlines": "^0.34.9",
135
+ "powerlines": "^0.35.0",
136
136
  "@noble/ciphers": "^2.1.1"
137
137
  },
138
138
  "devDependencies": {
139
- "@powerlines/nx": "^0.11.22",
139
+ "@powerlines/nx": "^0.11.23",
140
140
  "@types/node": "^24.10.4"
141
141
  },
142
142
  "publishConfig": { "access": "public" },
143
- "gitHead": "f7af737805bba3f9c2d5dd4008f0574b0a15cdf8"
143
+ "gitHead": "2f0ec16cbf83221dde440cd38765491c048b4509"
144
144
  }