@powerlines/plugin-crypto 0.9.8 → 0.9.10
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/chunk-FBBMZ4NC.cjs +7 -0
- package/dist/chunk-UCUR73HG.js +7 -0
- package/dist/components/crypto.cjs +139 -0
- package/dist/components/crypto.d.cts +37 -0
- package/dist/components/crypto.d.ts +37 -0
- package/dist/components/crypto.js +139 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.cts +28 -0
- package/dist/components/index.d.ts +28 -0
- package/dist/components/index.js +1 -0
- package/dist/index-DHmlsdWC.d.cts +3876 -0
- package/dist/index-DHmlsdWC.d.ts +3876 -0
- package/dist/src/index.cjs +7 -0
- package/dist/src/index.d.cts +36 -0
- package/dist/src/index.d.ts +36 -0
- package/dist/src/index.js +7 -0
- package/dist/types/index.cjs +1 -0
- package/dist/types/index.d.cts +27 -0
- package/dist/types/index.d.ts +27 -0
- package/dist/types/index.js +1 -0
- package/dist/types/plugin.cjs +1 -0
- package/dist/types/plugin.d.cts +27 -0
- package/dist/types/plugin.d.ts +27 -0
- package/dist/types/plugin.js +0 -0
- package/package.json +9 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var chunkFBBMZ4NC_cjs=require('../chunk-FBBMZ4NC.cjs'),i=require('@powerlines/plugin-env'),types$1=require('@storm-software/config-tools/types'),crypto=require('./components/crypto'),components=require('./components'),types=require('./types');function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var i__default=/*#__PURE__*/_interopDefault(i);/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function n(e={}){return {name:"crypto",dependsOn:[i__default.default(e.env)],config(){return {crypto:{salt:e.salt,encryptionKey:e.encryptionKey}}},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(types$1.LogLevelLabel.WARN,"No salt provided for the Crypto plugin. It's highly recommended to provide a unique salt via the plugin options or the SALT environment variable."),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||this.log(types$1.LogLevelLabel.WARN,"No encryption key provided for the Crypto plugin. It's highly recommended to provide a secure encryption key via the plugin options or the ENCRYPTION_KEY environment variable.");},async prepare(){this.log(types$1.LogLevelLabel.TRACE,"Preparing the Crypto runtime artifacts for the Powerlines project."),await this.writeBuiltin(await Promise.resolve(crypto.cryptoModule(this)),"crypto","crypto.ts");}}}chunkFBBMZ4NC_cjs.a(n,"plugin");var f=n;exports.default=f;exports.plugin=n;Object.keys(components).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return components[k]}})});Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { C as CryptoPluginOptions, P as Plugin, a as CryptoPluginContext } from '../index-DHmlsdWC.cjs';
|
|
2
|
+
export { c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.cjs';
|
|
3
|
+
export { cryptoModule } from '../components/crypto.cjs';
|
|
4
|
+
import '@alloy-js/core/jsx-runtime';
|
|
5
|
+
import '@deepkit/type';
|
|
6
|
+
import '@stryke/capnp';
|
|
7
|
+
import '@babel/core';
|
|
8
|
+
import '@storm-software/build-tools/types';
|
|
9
|
+
import '@storm-software/config-tools/types';
|
|
10
|
+
import '@storm-software/config/types';
|
|
11
|
+
import '@stryke/types/base';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
15
|
+
import '@babel/helper-plugin-utils';
|
|
16
|
+
import '@stryke/env/get-env-paths';
|
|
17
|
+
import '@stryke/types/package-json';
|
|
18
|
+
import 'jiti';
|
|
19
|
+
import 'oxc-parser';
|
|
20
|
+
import 'semver';
|
|
21
|
+
import 'unplugin';
|
|
22
|
+
import '@stryke/types/tsconfig';
|
|
23
|
+
import 'typescript';
|
|
24
|
+
import '@stryke/json/types';
|
|
25
|
+
import 'memfs';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import 'unionfs';
|
|
28
|
+
import '@stryke/types/array';
|
|
29
|
+
import '@stryke/env/types';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
33
|
+
*/
|
|
34
|
+
declare function plugin(options?: CryptoPluginOptions): Plugin<CryptoPluginContext>;
|
|
35
|
+
|
|
36
|
+
export { CryptoPluginContext, CryptoPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { C as CryptoPluginOptions, P as Plugin, a as CryptoPluginContext } from '../index-DHmlsdWC.js';
|
|
2
|
+
export { c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.js';
|
|
3
|
+
export { cryptoModule } from '../components/crypto.js';
|
|
4
|
+
import '@alloy-js/core/jsx-runtime';
|
|
5
|
+
import '@deepkit/type';
|
|
6
|
+
import '@stryke/capnp';
|
|
7
|
+
import '@babel/core';
|
|
8
|
+
import '@storm-software/build-tools/types';
|
|
9
|
+
import '@storm-software/config-tools/types';
|
|
10
|
+
import '@storm-software/config/types';
|
|
11
|
+
import '@stryke/types/base';
|
|
12
|
+
import '@stryke/types/configuration';
|
|
13
|
+
import '@stryke/types/file';
|
|
14
|
+
import 'vite';
|
|
15
|
+
import '@babel/helper-plugin-utils';
|
|
16
|
+
import '@stryke/env/get-env-paths';
|
|
17
|
+
import '@stryke/types/package-json';
|
|
18
|
+
import 'jiti';
|
|
19
|
+
import 'oxc-parser';
|
|
20
|
+
import 'semver';
|
|
21
|
+
import 'unplugin';
|
|
22
|
+
import '@stryke/types/tsconfig';
|
|
23
|
+
import 'typescript';
|
|
24
|
+
import '@stryke/json/types';
|
|
25
|
+
import 'memfs';
|
|
26
|
+
import 'node:fs';
|
|
27
|
+
import 'unionfs';
|
|
28
|
+
import '@stryke/types/array';
|
|
29
|
+
import '@stryke/env/types';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
33
|
+
*/
|
|
34
|
+
declare function plugin(options?: CryptoPluginOptions): Plugin<CryptoPluginContext>;
|
|
35
|
+
|
|
36
|
+
export { CryptoPluginContext, CryptoPluginOptions, plugin as default, plugin };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {a}from'../chunk-UCUR73HG.js';import i from'@powerlines/plugin-env';import {LogLevelLabel}from'@storm-software/config-tools/types';import {cryptoModule}from'./components/crypto';export*from'./components';export*from'./types';/*****************************************
|
|
2
|
+
*
|
|
3
|
+
* ⚡ Built by Storm Software
|
|
4
|
+
*
|
|
5
|
+
*****************************************/
|
|
6
|
+
|
|
7
|
+
function n(e={}){return {name:"crypto",dependsOn:[i(e.env)],config(){return {crypto:{salt:e.salt,encryptionKey:e.encryptionKey}}},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(LogLevelLabel.WARN,"No salt provided for the Crypto plugin. It's highly recommended to provide a unique salt via the plugin options or the SALT environment variable."),this.config.crypto.encryptionKey??=this.env.parsed.ENCRYPTION_KEY,this.config.crypto.encryptionKey||this.log(LogLevelLabel.WARN,"No encryption key provided for the Crypto plugin. It's highly recommended to provide a secure encryption key via the plugin options or the ENCRYPTION_KEY environment variable.");},async prepare(){this.log(LogLevelLabel.TRACE,"Preparing the Crypto runtime artifacts for the Powerlines project."),await this.writeBuiltin(await Promise.resolve(cryptoModule(this)),"crypto","crypto.ts");}}}a(n,"plugin");var m=n;export{m as default,n as plugin};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';var plugin=require('./plugin');Object.keys(plugin).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return plugin[k]}})});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { a as CryptoPluginContext, C as CryptoPluginOptions, c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.cjs';
|
|
2
|
+
import '@alloy-js/core/jsx-runtime';
|
|
3
|
+
import '@deepkit/type';
|
|
4
|
+
import '@stryke/capnp';
|
|
5
|
+
import '@babel/core';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@babel/helper-plugin-utils';
|
|
14
|
+
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/types/package-json';
|
|
16
|
+
import 'jiti';
|
|
17
|
+
import 'oxc-parser';
|
|
18
|
+
import 'semver';
|
|
19
|
+
import 'unplugin';
|
|
20
|
+
import '@stryke/types/tsconfig';
|
|
21
|
+
import 'typescript';
|
|
22
|
+
import '@stryke/json/types';
|
|
23
|
+
import 'memfs';
|
|
24
|
+
import 'node:fs';
|
|
25
|
+
import 'unionfs';
|
|
26
|
+
import '@stryke/types/array';
|
|
27
|
+
import '@stryke/env/types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { a as CryptoPluginContext, C as CryptoPluginOptions, c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.js';
|
|
2
|
+
import '@alloy-js/core/jsx-runtime';
|
|
3
|
+
import '@deepkit/type';
|
|
4
|
+
import '@stryke/capnp';
|
|
5
|
+
import '@babel/core';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@babel/helper-plugin-utils';
|
|
14
|
+
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/types/package-json';
|
|
16
|
+
import 'jiti';
|
|
17
|
+
import 'oxc-parser';
|
|
18
|
+
import 'semver';
|
|
19
|
+
import 'unplugin';
|
|
20
|
+
import '@stryke/types/tsconfig';
|
|
21
|
+
import 'typescript';
|
|
22
|
+
import '@stryke/json/types';
|
|
23
|
+
import 'memfs';
|
|
24
|
+
import 'node:fs';
|
|
25
|
+
import 'unionfs';
|
|
26
|
+
import '@stryke/types/array';
|
|
27
|
+
import '@stryke/env/types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from'./plugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { a as CryptoPluginContext, C as CryptoPluginOptions, c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.cjs';
|
|
2
|
+
import '@alloy-js/core/jsx-runtime';
|
|
3
|
+
import '@deepkit/type';
|
|
4
|
+
import '@stryke/capnp';
|
|
5
|
+
import '@babel/core';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@babel/helper-plugin-utils';
|
|
14
|
+
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/types/package-json';
|
|
16
|
+
import 'jiti';
|
|
17
|
+
import 'oxc-parser';
|
|
18
|
+
import 'semver';
|
|
19
|
+
import 'unplugin';
|
|
20
|
+
import '@stryke/types/tsconfig';
|
|
21
|
+
import 'typescript';
|
|
22
|
+
import '@stryke/json/types';
|
|
23
|
+
import 'memfs';
|
|
24
|
+
import 'node:fs';
|
|
25
|
+
import 'unionfs';
|
|
26
|
+
import '@stryke/types/array';
|
|
27
|
+
import '@stryke/env/types';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export { a as CryptoPluginContext, C as CryptoPluginOptions, c as CryptoPluginResolvedConfig, b as CryptoPluginUserConfig } from '../index-DHmlsdWC.js';
|
|
2
|
+
import '@alloy-js/core/jsx-runtime';
|
|
3
|
+
import '@deepkit/type';
|
|
4
|
+
import '@stryke/capnp';
|
|
5
|
+
import '@babel/core';
|
|
6
|
+
import '@storm-software/build-tools/types';
|
|
7
|
+
import '@storm-software/config-tools/types';
|
|
8
|
+
import '@storm-software/config/types';
|
|
9
|
+
import '@stryke/types/base';
|
|
10
|
+
import '@stryke/types/configuration';
|
|
11
|
+
import '@stryke/types/file';
|
|
12
|
+
import 'vite';
|
|
13
|
+
import '@babel/helper-plugin-utils';
|
|
14
|
+
import '@stryke/env/get-env-paths';
|
|
15
|
+
import '@stryke/types/package-json';
|
|
16
|
+
import 'jiti';
|
|
17
|
+
import 'oxc-parser';
|
|
18
|
+
import 'semver';
|
|
19
|
+
import 'unplugin';
|
|
20
|
+
import '@stryke/types/tsconfig';
|
|
21
|
+
import 'typescript';
|
|
22
|
+
import '@stryke/json/types';
|
|
23
|
+
import 'memfs';
|
|
24
|
+
import 'node:fs';
|
|
25
|
+
import 'unionfs';
|
|
26
|
+
import '@stryke/types/array';
|
|
27
|
+
import '@stryke/env/types';
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-crypto",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.10",
|
|
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": {
|
|
@@ -116,17 +116,17 @@
|
|
|
116
116
|
"files": ["dist/**/*"],
|
|
117
117
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@powerlines/plugin-env": "^0.13.
|
|
120
|
-
"@storm-software/config-tools": "^1.188.
|
|
121
|
-
"@stryke/path": "^0.
|
|
119
|
+
"@powerlines/plugin-env": "^0.13.7",
|
|
120
|
+
"@storm-software/config-tools": "^1.188.19",
|
|
121
|
+
"@stryke/path": "^0.18.5",
|
|
122
122
|
"defu": "^6.1.4",
|
|
123
|
-
"powerlines": "^0.
|
|
123
|
+
"powerlines": "^0.16.0"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@powerlines/nx": "^0.
|
|
127
|
-
"@storm-software/tsup": "^0.2.
|
|
128
|
-
"@types/node": "^22.
|
|
126
|
+
"@powerlines/nx": "^0.10.1",
|
|
127
|
+
"@storm-software/tsup": "^0.2.17",
|
|
128
|
+
"@types/node": "^22.19.0"
|
|
129
129
|
},
|
|
130
130
|
"publishConfig": { "access": "public" },
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "097e9f257b733719a3aead815ef79686f4c46f25"
|
|
132
132
|
}
|