@powerlines/plugin-crypto 0.10.25 → 0.10.26
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/README.md +5 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/dist/plugin-AoiogbrF.d.cts +1 -2
- package/dist/plugin-BfCldGxF.d.mts +1 -2
- package/package.json +6 -6
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/plugin-AoiogbrF.d.cts.map +0 -1
- package/dist/plugin-BfCldGxF.d.mts.map +0 -1
package/README.md
CHANGED
|
@@ -259,7 +259,11 @@ specification. Contributions of any kind welcome!
|
|
|
259
259
|
<br />
|
|
260
260
|
|
|
261
261
|
<div align="center">
|
|
262
|
-
<
|
|
262
|
+
<picture>
|
|
263
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp">
|
|
264
|
+
<source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light-optimized.webp">
|
|
265
|
+
<img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark-optimized.webp" width="100%" alt="Storm Software" />
|
|
266
|
+
</picture>
|
|
263
267
|
</div>
|
|
264
268
|
<br />
|
|
265
269
|
|
package/dist/index.d.cts
CHANGED
|
@@ -17,5 +17,4 @@ declare function cryptoModule(context: CryptoPluginContext): string;
|
|
|
17
17
|
*/
|
|
18
18
|
declare function plugin(options?: CryptoPluginOptions): Plugin<CryptoPluginContext>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { CryptoPluginContext, CryptoPluginOptions, CryptoPluginResolvedConfig, CryptoPluginUserConfig, __ΩCryptoPluginContext, __ΩCryptoPluginOptions, __ΩCryptoPluginResolvedConfig, __ΩCryptoPluginUserConfig, cryptoModule, plugin as default, plugin };
|
|
21
|
-
//# sourceMappingURL=index.d.cts.map
|
|
20
|
+
export { CryptoPluginContext, CryptoPluginOptions, CryptoPluginResolvedConfig, CryptoPluginUserConfig, __ΩCryptoPluginContext, __ΩCryptoPluginOptions, __ΩCryptoPluginResolvedConfig, __ΩCryptoPluginUserConfig, cryptoModule, plugin as default, plugin };
|
package/dist/index.d.mts
CHANGED
|
@@ -17,5 +17,4 @@ declare function cryptoModule(context: CryptoPluginContext): string;
|
|
|
17
17
|
*/
|
|
18
18
|
declare function plugin(options?: CryptoPluginOptions): Plugin<CryptoPluginContext>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { CryptoPluginContext, CryptoPluginOptions, CryptoPluginResolvedConfig, CryptoPluginUserConfig, __ΩCryptoPluginContext, __ΩCryptoPluginOptions, __ΩCryptoPluginResolvedConfig, __ΩCryptoPluginUserConfig, cryptoModule, plugin as default, plugin };
|
|
21
|
-
//# sourceMappingURL=index.d.mts.map
|
|
20
|
+
export { CryptoPluginContext, CryptoPluginOptions, CryptoPluginResolvedConfig, CryptoPluginUserConfig, __ΩCryptoPluginContext, __ΩCryptoPluginOptions, __ΩCryptoPluginResolvedConfig, __ΩCryptoPluginUserConfig, cryptoModule, plugin as default, plugin };
|
package/dist/index.mjs
CHANGED
|
@@ -202,5 +202,4 @@ export * from '@noble/hashes/pbkdf2.js';
|
|
|
202
202
|
export * from '@noble/hashes/scrypt.js';
|
|
203
203
|
export * from '@noble/hashes/utils.js';
|
|
204
204
|
|
|
205
|
-
`}function Oa(e={}){return{name:`crypto`,dependsOn:[wa(e.env)],config(){return{crypto:S(e,{salt:`${this.config.name||this.workspaceConfig?.name||this.packageJson?.name}-application`})}},configResolved(){this.dependencies[`@noble/ciphers`]=`^2.0.1`,this.dependencies[`@noble/hashes`]=`^2.0.1`,this.config.crypto.salt??=this.env.parsed.SALT,this.config.crypto.salt||(this.log(v.WARN,"No salt provided to the Crypto plugin - a salt value will be generated automatically. Please note: It's highly recommended to provide a unique salt value via the `salt` plugin option or the `SALT` environment variable."),this.config.crypto.salt=t(n(12))),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||(this.log(v.WARN,"No encryption key provided to the Crypto plugin - a secure key will be generated automatically. Please note: it's highly recommended to provide a secure encryption key via the `encryptionKey` plugin option or the `ENCRYPTION_KEY` environment variable."),this.config.crypto.encryptionKey=t(n(32)))},async prepare(){this.log(v.TRACE,`Preparing the Crypto runtime artifacts for the Powerlines project.`),await this.emitBuiltin(await Promise.resolve(Da(this)),`crypto`,`crypto.ts`)}}}var ka=Oa;export{Da as cryptoModule,ka as default,Oa as plugin};
|
|
206
|
-
//# sourceMappingURL=index.mjs.map
|
|
205
|
+
`}function Oa(e={}){return{name:`crypto`,dependsOn:[wa(e.env)],config(){return{crypto:S(e,{salt:`${this.config.name||this.workspaceConfig?.name||this.packageJson?.name}-application`})}},configResolved(){this.dependencies[`@noble/ciphers`]=`^2.0.1`,this.dependencies[`@noble/hashes`]=`^2.0.1`,this.config.crypto.salt??=this.env.parsed.SALT,this.config.crypto.salt||(this.log(v.WARN,"No salt provided to the Crypto plugin - a salt value will be generated automatically. Please note: It's highly recommended to provide a unique salt value via the `salt` plugin option or the `SALT` environment variable."),this.config.crypto.salt=t(n(12))),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||(this.log(v.WARN,"No encryption key provided to the Crypto plugin - a secure key will be generated automatically. Please note: it's highly recommended to provide a secure encryption key via the `encryptionKey` plugin option or the `ENCRYPTION_KEY` environment variable."),this.config.crypto.encryptionKey=t(n(32)))},async prepare(){this.log(v.TRACE,`Preparing the Crypto runtime artifacts for the Powerlines project.`),await this.emitBuiltin(await Promise.resolve(Da(this)),`crypto`,`crypto.ts`)}}}var ka=Oa;export{Da as cryptoModule,ka as default,Oa as plugin};
|
|
@@ -4208,5 +4208,4 @@ declare type __ΩCryptoPluginUserConfig = any[];
|
|
|
4208
4208
|
declare type __ΩCryptoPluginResolvedConfig = any[];
|
|
4209
4209
|
declare type __ΩCryptoPluginContext = any[];
|
|
4210
4210
|
//#endregion
|
|
4211
|
-
export { __ΩCryptoPluginContext as a, __ΩCryptoPluginUserConfig as c, CryptoPluginUserConfig as i, Plugin as l, CryptoPluginOptions as n, __ΩCryptoPluginOptions as o, CryptoPluginResolvedConfig as r, __ΩCryptoPluginResolvedConfig as s, CryptoPluginContext as t };
|
|
4212
|
-
//# sourceMappingURL=plugin-AoiogbrF.d.cts.map
|
|
4211
|
+
export { __ΩCryptoPluginContext as a, __ΩCryptoPluginUserConfig as c, CryptoPluginUserConfig as i, Plugin as l, CryptoPluginOptions as n, __ΩCryptoPluginOptions as o, CryptoPluginResolvedConfig as r, __ΩCryptoPluginResolvedConfig as s, CryptoPluginContext as t };
|
|
@@ -4207,5 +4207,4 @@ declare type __ΩCryptoPluginUserConfig = any[];
|
|
|
4207
4207
|
declare type __ΩCryptoPluginResolvedConfig = any[];
|
|
4208
4208
|
declare type __ΩCryptoPluginContext = any[];
|
|
4209
4209
|
//#endregion
|
|
4210
|
-
export { __ΩCryptoPluginContext as a, __ΩCryptoPluginUserConfig as c, CryptoPluginUserConfig as i, Plugin as l, CryptoPluginOptions as n, __ΩCryptoPluginOptions as o, CryptoPluginResolvedConfig as r, __ΩCryptoPluginResolvedConfig as s, CryptoPluginContext as t };
|
|
4211
|
-
//# sourceMappingURL=plugin-BfCldGxF.d.mts.map
|
|
4210
|
+
export { __ΩCryptoPluginContext as a, __ΩCryptoPluginUserConfig as c, CryptoPluginUserConfig as i, Plugin as l, CryptoPluginOptions as n, __ΩCryptoPluginOptions as o, CryptoPluginResolvedConfig as r, __ΩCryptoPluginResolvedConfig as s, CryptoPluginContext as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-crypto",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.26",
|
|
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.
|
|
132
|
-
"@storm-software/config-tools": "^1.188.
|
|
131
|
+
"@powerlines/plugin-env": "^0.13.58",
|
|
132
|
+
"@storm-software/config-tools": "^1.188.54",
|
|
133
133
|
"@stryke/path": "^0.22.0",
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
|
-
"powerlines": "^0.30.
|
|
135
|
+
"powerlines": "^0.30.3",
|
|
136
136
|
"@noble/ciphers": "^2.0.1"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
|
-
"@powerlines/nx": "^0.10.
|
|
139
|
+
"@powerlines/nx": "^0.10.52",
|
|
140
140
|
"@types/node": "^24.10.1"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "8f31b1531e973824d7c3d58abe08c1f1f75e36e5"
|
|
144
144
|
}
|
package/dist/index.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/components/crypto.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2BA;;;iBAAgB,YAAA,UAAsB;;;AAAtC;;;iBCKgB,MAAA,WACL,sBACR,OAAO"}
|
package/dist/index.d.mts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/components/crypto.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AA2BA;;;iBAAgB,YAAA,UAAsB;;;AAAtC;;;iBCKgB,MAAA,WACL,sBACR,OAAO"}
|