@powerlines/plugin-crypto 0.10.115 → 0.10.117
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/components/crypto.cjs +3 -2
- package/dist/components/crypto.mjs +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.mjs +3 -3
- package/dist/plugin-alloy/src/types/components.d.mts +1 -2
- package/dist/plugin-env/src/types/plugin.d.mts +1 -1
- package/dist/powerlines/src/types/build.d.mts +6 -6
- package/dist/powerlines/src/types/config.d.mts +1 -2
- package/dist/powerlines/src/types/tsconfig.d.mts +1 -1
- package/package.json +6 -6
- package/dist/deepkit/schemas/reflection.cjs +0 -3998
- package/dist/deepkit/schemas/reflection.mjs +0 -3996
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -913
- package/dist/deepkit/src/capnp.mjs +0 -911
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -47
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -46
- package/dist/deepkit/src/reflect-type.cjs +0 -22
- package/dist/deepkit/src/reflect-type.mjs +0 -20
- package/dist/deepkit/src/resolve-reflections.cjs +0 -16
- package/dist/deepkit/src/resolve-reflections.mjs +0 -15
- package/dist/deepkit/src/transformer.cjs +0 -52
- package/dist/deepkit/src/transformer.mjs +0 -49
- package/dist/deepkit/src/transpile.cjs +0 -29
- package/dist/deepkit/src/transpile.mjs +0 -27
- package/dist/deepkit/src/utilities.cjs +0 -66
- package/dist/deepkit/src/utilities.mjs +0 -65
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -38
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -37
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -20
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -19
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -60
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -58
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -60
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -54
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -46
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -42
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -16
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -15
- package/dist/plugin-alloy/src/index.cjs +0 -103
- package/dist/plugin-alloy/src/index.mjs +0 -101
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -7
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -9
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -5
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -7
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -17
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -17
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -47
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -46
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -75
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -73
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -359
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -350
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -153
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -150
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -53
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -94
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -93
- package/dist/plugin-automd/src/index.cjs +0 -101
- package/dist/plugin-automd/src/index.mjs +0 -98
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -10
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -9
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -41
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -39
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -23
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -21
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -38
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -35
- package/dist/plugin-babel/src/helpers/options.cjs +0 -50
- package/dist/plugin-babel/src/helpers/options.mjs +0 -47
- package/dist/plugin-babel/src/index.cjs +0 -91
- package/dist/plugin-babel/src/index.mjs +0 -89
- package/dist/plugin-env/src/babel/index.cjs +0 -1
- package/dist/plugin-env/src/babel/index.mjs +0 -3
- package/dist/plugin-env/src/babel/plugin.cjs +0 -121
- package/dist/plugin-env/src/babel/plugin.mjs +0 -119
- package/dist/plugin-env/src/components/docs.cjs +0 -9
- package/dist/plugin-env/src/components/docs.mjs +0 -11
- package/dist/plugin-env/src/components/env.cjs +0 -487
- package/dist/plugin-env/src/components/env.mjs +0 -484
- package/dist/plugin-env/src/components/index.cjs +0 -2
- package/dist/plugin-env/src/components/index.mjs +0 -4
- package/dist/plugin-env/src/helpers/automd-generator.cjs +0 -22
- package/dist/plugin-env/src/helpers/automd-generator.mjs +0 -21
- package/dist/plugin-env/src/helpers/create-reflection-resource.cjs +0 -55
- package/dist/plugin-env/src/helpers/create-reflection-resource.mjs +0 -54
- package/dist/plugin-env/src/helpers/index.cjs +0 -6
- package/dist/plugin-env/src/helpers/index.mjs +0 -8
- package/dist/plugin-env/src/helpers/load.cjs +0 -83
- package/dist/plugin-env/src/helpers/load.mjs +0 -80
- package/dist/plugin-env/src/helpers/persistence.cjs +0 -201
- package/dist/plugin-env/src/helpers/persistence.mjs +0 -190
- package/dist/plugin-env/src/helpers/reflect.cjs +0 -125
- package/dist/plugin-env/src/helpers/reflect.mjs +0 -117
- package/dist/plugin-env/src/helpers/source-file-env.cjs +0 -24
- package/dist/plugin-env/src/helpers/source-file-env.mjs +0 -23
- package/dist/plugin-env/src/helpers/template-helpers.cjs +0 -2
- package/dist/plugin-env/src/helpers/template-helpers.mjs +0 -4
- package/dist/plugin-env/src/index.cjs +0 -172
- package/dist/plugin-env/src/index.mjs +0 -170
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -102
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -100
- package/dist/powerlines/src/lib/entry.cjs +0 -12
- package/dist/powerlines/src/lib/entry.mjs +0 -14
- package/dist/powerlines/src/lib/logger.cjs +0 -41
- package/dist/powerlines/src/lib/logger.mjs +0 -39
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -35
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -34
- package/dist/powerlines/src/lib/utilities/file-header.cjs +0 -22
- package/dist/powerlines/src/lib/utilities/file-header.mjs +0 -21
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -30
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -29
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -1
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -3
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let powerlines_lib_utilities_file_header = require("powerlines/lib/utilities/file-header");
|
|
2
3
|
|
|
3
4
|
//#region src/components/crypto.ts
|
|
4
5
|
/**
|
|
@@ -15,7 +16,7 @@ function cryptoModule(context) {
|
|
|
15
16
|
* @module ${context.config.output.builtinPrefix}:crypto
|
|
16
17
|
*/
|
|
17
18
|
|
|
18
|
-
${
|
|
19
|
+
${(0, powerlines_lib_utilities_file_header.getFileHeader)(context)}
|
|
19
20
|
|
|
20
21
|
import { xchacha20poly1305, chacha20poly1305 } from "@noble/ciphers/chacha.js";
|
|
21
22
|
import { randomBytes, managedNonce, hexToBytes } from "@noble/ciphers/utils.js";
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
2
|
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
-
const require_index = require('./plugin-env/src/index.cjs');
|
|
4
3
|
const require_crypto = require('./components/crypto.cjs');
|
|
5
4
|
require('./components/index.cjs');
|
|
6
5
|
let __noble_ciphers_utils_js = require("@noble/ciphers/utils.js");
|
|
6
|
+
let __powerlines_plugin_env = require("@powerlines/plugin-env");
|
|
7
|
+
__powerlines_plugin_env = require_rolldown_runtime.__toESM(__powerlines_plugin_env);
|
|
8
|
+
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
7
9
|
let defu = require("defu");
|
|
8
10
|
defu = require_rolldown_runtime.__toESM(defu);
|
|
9
|
-
let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
|
|
10
11
|
|
|
11
12
|
//#region src/index.ts
|
|
12
13
|
/**
|
|
13
14
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
14
15
|
*/
|
|
15
16
|
function plugin(options = {}) {
|
|
16
|
-
return [
|
|
17
|
+
return [(0, __powerlines_plugin_env.default)(options.env), {
|
|
17
18
|
name: "crypto",
|
|
18
19
|
config() {
|
|
19
20
|
return { crypto: (0, defu.default)(options, { salt: `${(this.config.name ?? this.workspaceConfig?.name) || this.packageJson?.name}-application` }) };
|
package/dist/index.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import src_default$1 from "./plugin-env/src/index.mjs";
|
|
2
1
|
import { cryptoModule } from "./components/crypto.mjs";
|
|
3
2
|
import "./components/index.mjs";
|
|
4
3
|
import { bytesToHex, randomBytes } from "@noble/ciphers/utils.js";
|
|
5
|
-
import
|
|
4
|
+
import env from "@powerlines/plugin-env";
|
|
6
5
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
6
|
+
import defu from "defu";
|
|
7
7
|
|
|
8
8
|
//#region src/index.ts
|
|
9
9
|
/**
|
|
10
10
|
* A Powerlines plugin to assist in developing other Powerlines plugins.
|
|
11
11
|
*/
|
|
12
12
|
function plugin(options = {}) {
|
|
13
|
-
return [
|
|
13
|
+
return [env(options.env), {
|
|
14
14
|
name: "crypto",
|
|
15
15
|
config() {
|
|
16
16
|
return { crypto: defu(options, { salt: `${(this.config.name ?? this.workspaceConfig?.name) || this.packageJson?.name}-application` }) };
|
|
@@ -5,9 +5,9 @@ import { AutoMDPluginOptions } from "../../../plugin-automd/src/types/plugin.mjs
|
|
|
5
5
|
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../../../plugin-babel/src/types/plugin.mjs";
|
|
6
6
|
import "../../../plugin-babel/src/types/index.mjs";
|
|
7
7
|
import { EnvInterface, SecretsInterface } from "./runtime.mjs";
|
|
8
|
-
import { DotenvParseOutput } from "@stryke/env/types";
|
|
9
8
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
10
9
|
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
10
|
+
import { DotenvParseOutput } from "@stryke/env/types";
|
|
11
11
|
|
|
12
12
|
//#region ../plugin-env/src/types/plugin.d.ts
|
|
13
13
|
type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BuildOptions } from "esbuild";
|
|
2
1
|
import { OutputOptions, RollupOptions } from "rollup";
|
|
3
2
|
import { UserConfig } from "@farmfe/core";
|
|
4
3
|
import { Configuration } from "@rspack/core";
|
|
5
|
-
import { BuildOptions
|
|
4
|
+
import { BuildOptions } from "@storm-software/tsup/types";
|
|
6
5
|
import { UnbuildOptions } from "@storm-software/unbuild/types";
|
|
6
|
+
import { BuildOptions as BuildOptions$1 } from "esbuild";
|
|
7
7
|
import { RolldownOptions } from "rolldown";
|
|
8
8
|
import { UserConfig as UserConfig$1 } from "tsdown";
|
|
9
9
|
import { DepOptimizationOptions, UserConfig as UserConfig$2 } from "vite";
|
|
@@ -153,8 +153,8 @@ interface BuildConfig {
|
|
|
153
153
|
override?: Record<string, any>;
|
|
154
154
|
}
|
|
155
155
|
type BuildResolvedConfig = Omit<BuildConfig, "override">;
|
|
156
|
-
type ESBuildBuildConfig = Omit<BuildOptions, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
-
type ESBuildResolvedBuildConfig = Omit<BuildOptions, "inject"> & BuildResolvedConfig;
|
|
156
|
+
type ESBuildBuildConfig = Omit<BuildOptions$1, "entryPoints" | "sourceRoot" | "platform" | "outdir" | "env" | "assets" | "external" | "inject" | "tsconfig" | "tsconfigRaw" | "logLevel"> & BuildConfig;
|
|
157
|
+
type ESBuildResolvedBuildConfig = Omit<BuildOptions$1, "inject"> & BuildResolvedConfig;
|
|
158
158
|
type ViteBuildConfig = Omit<UserConfig$2, "entry" | "entryPoints" | "tsconfig" | "tsconfigRaw" | "environments" | "output"> & BuildConfig & {
|
|
159
159
|
/**
|
|
160
160
|
* Optimize deps config
|
|
@@ -173,8 +173,8 @@ type RollupBuildConfig = Omit<RollupOptions, "entry" | "external" | "input" | "o
|
|
|
173
173
|
type RollupResolvedBuildConfig = RollupOptions & BuildResolvedConfig;
|
|
174
174
|
type RolldownBuildConfig = Omit<RolldownOptions, "input" | "external" | "tsconfig" | "logLevel" | "output"> & BuildConfig;
|
|
175
175
|
type RolldownResolvedBuildConfig = RolldownOptions & BuildResolvedConfig;
|
|
176
|
-
type TsupBuildConfig = Partial<Omit<BuildOptions
|
|
177
|
-
type TsupResolvedBuildConfig = BuildOptions
|
|
176
|
+
type TsupBuildConfig = Partial<Omit<BuildOptions, "userOptions" | "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "clean" | "env" | "entry" | "entryPoints" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
177
|
+
type TsupResolvedBuildConfig = BuildOptions & BuildResolvedConfig;
|
|
178
178
|
type TsdownBuildConfig = Partial<Omit<UserConfig$1, "name" | "outDir" | "clean" | "cwd" | "tsconfig" | "publicDir" | "copy" | "alias" | "format" | "platform" | "env" | "define" | "entry" | "external" | "noExternal" | "skipNodeModulesBundle">> & BuildConfig;
|
|
179
179
|
type TsdownResolvedBuildConfig = UserConfig$1 & BuildResolvedConfig;
|
|
180
180
|
type UnbuildBuildConfig = Partial<Omit<UnbuildOptions, "tsconfig" | "tsconfigRaw" | "assets" | "outputPath" | "mode" | "format" | "platform" | "projectRoot" | "env" | "entry" | "entryPoints">> & BuildConfig;
|
|
@@ -4,11 +4,10 @@ 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 "c12";
|
|
8
|
-
import { transformAsync } from "@babel/core";
|
|
9
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
10
8
|
import { MaybePromise } from "@stryke/types/base";
|
|
11
9
|
import { PreviewOptions } from "vite";
|
|
10
|
+
import { transformAsync } from "@babel/core";
|
|
12
11
|
import { Format } from "@storm-software/build-tools/types";
|
|
13
12
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
14
13
|
import { TypeDefinitionParameter } from "@stryke/types/configuration";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-crypto",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.117",
|
|
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
|
-
"@
|
|
131
|
+
"@noble/ciphers": "^2.1.1",
|
|
132
|
+
"@powerlines/plugin-env": "^0.15.14",
|
|
132
133
|
"@storm-software/config-tools": "^1.188.75",
|
|
133
134
|
"@stryke/path": "^0.24.1",
|
|
134
135
|
"defu": "^6.1.4",
|
|
135
|
-
"powerlines": "^0.37.
|
|
136
|
-
"@noble/ciphers": "^2.1.1"
|
|
136
|
+
"powerlines": "^0.37.3"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
|
-
"@powerlines/
|
|
139
|
+
"@powerlines/plugin-plugin": "^0.12.81",
|
|
140
140
|
"@types/node": "^24.10.4"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "ae9a5afaa497538477b63988242f433b60974623"
|
|
144
144
|
}
|