@powerlines/plugin-env 0.16.65 → 0.16.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.
- package/dist/babel/plugin.cjs +83 -11
- package/dist/babel/plugin.mjs +83 -11
- package/dist/babel/plugin.mjs.map +1 -1
- package/dist/components/env-builtin.cjs +1 -1
- package/dist/components/env-builtin.mjs +1 -1
- package/dist/helpers/automd-generator.cjs +14 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +14 -4
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/create-reflection-resource.cjs +8 -0
- package/dist/helpers/create-reflection-resource.mjs +9 -0
- package/dist/helpers/create-reflection-resource.mjs.map +1 -1
- package/dist/helpers/docs-helper.cjs +8 -0
- package/dist/helpers/docs-helper.mjs +8 -0
- package/dist/helpers/docs-helper.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/index.mjs +2 -2
- package/dist/helpers/load.cjs +58 -7
- package/dist/helpers/load.mjs +58 -7
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +108 -1
- package/dist/helpers/persistence.mjs +108 -1
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/reflect.cjs +156 -3
- package/dist/helpers/reflect.mjs +156 -4
- package/dist/helpers/reflect.mjs.map +1 -1
- package/dist/helpers/source-file-env.cjs +34 -4
- package/dist/helpers/source-file-env.mjs +34 -4
- package/dist/helpers/source-file-env.mjs.map +1 -1
- package/dist/helpers/template-helpers.cjs +33 -5
- package/dist/helpers/template-helpers.mjs +33 -5
- package/dist/helpers/template-helpers.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +2 -0
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +4 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +1 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -1
- package/dist/types/index.cjs +11 -0
- package/dist/types/index.mjs +4 -1
- package/dist/types/plugin.cjs +137 -0
- package/dist/types/plugin.d.mts +4 -4
- package/dist/types/plugin.mjs +132 -1
- package/dist/types/plugin.mjs.map +1 -0
- package/dist/types/runtime.cjs +244 -0
- package/dist/types/runtime.mjs +242 -1
- package/dist/types/runtime.mjs.map +1 -0
- package/package.json +9 -9
|
@@ -3,24 +3,54 @@ import { camelCase } from "@stryke/string-format/camel-case";
|
|
|
3
3
|
import { isString } from "@stryke/type-checks/is-string";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/source-file-env.ts
|
|
6
|
+
function __assignType(fn, args) {
|
|
7
|
+
fn.__type = args;
|
|
8
|
+
return fn;
|
|
9
|
+
}
|
|
10
|
+
const __ΩTReturned = [
|
|
11
|
+
"TEnv",
|
|
12
|
+
"TReturned",
|
|
13
|
+
"l2&R!RPe#!&qk#%QRb!Pde\"!p'w\"y"
|
|
14
|
+
];
|
|
6
15
|
function removeEnvPrefix(env) {
|
|
7
16
|
if (isString(env)) {
|
|
8
|
-
let name = ENV_PREFIXES.reduce((ret, prefix) => {
|
|
17
|
+
let name = ENV_PREFIXES.reduce(__assignType((ret, prefix) => {
|
|
9
18
|
if (ret.startsWith(prefix)) ret = ret.slice(prefix.length);
|
|
10
19
|
return ret;
|
|
11
|
-
},
|
|
20
|
+
}, [
|
|
21
|
+
"ret",
|
|
22
|
+
"prefix",
|
|
23
|
+
"",
|
|
24
|
+
"P\"2!\"2\"\"/#"
|
|
25
|
+
]), env.toUpperCase());
|
|
12
26
|
while (name.startsWith("_")) name = name.slice(1);
|
|
13
27
|
return name;
|
|
14
28
|
}
|
|
15
|
-
return Object.keys(env).reduce((ret, key) => {
|
|
29
|
+
return Object.keys(env).reduce(__assignType((ret, key) => {
|
|
16
30
|
const name = removeEnvPrefix(key);
|
|
17
31
|
if (name) ret[name] = env[key];
|
|
18
32
|
return ret;
|
|
19
|
-
},
|
|
33
|
+
}, [
|
|
34
|
+
"ret",
|
|
35
|
+
"key",
|
|
36
|
+
"",
|
|
37
|
+
"P\"2!\"2\"\"/#"
|
|
38
|
+
]), {});
|
|
20
39
|
}
|
|
40
|
+
removeEnvPrefix.__type = [
|
|
41
|
+
"env",
|
|
42
|
+
() => __ΩTReturned,
|
|
43
|
+
"removeEnvPrefix",
|
|
44
|
+
"P\"2!\"o\"\"/#"
|
|
45
|
+
];
|
|
21
46
|
function formatEnvField(key) {
|
|
22
47
|
return camelCase(removeEnvPrefix(key));
|
|
23
48
|
}
|
|
49
|
+
formatEnvField.__type = [
|
|
50
|
+
"key",
|
|
51
|
+
"formatEnvField",
|
|
52
|
+
"P&2!&/\""
|
|
53
|
+
];
|
|
24
54
|
|
|
25
55
|
//#endregion
|
|
26
56
|
export { formatEnvField, removeEnvPrefix };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-file-env.mjs","names":[],"sources":["../../src/helpers/source-file-env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DotenvParseOutput } from \"@stryke/env/types\";\nimport { ENV_PREFIXES } from \"@stryke/env/types\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\n\ntype TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;\n\nexport function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(\n env: TEnv\n): TReturned<TEnv> {\n if (isString(env)) {\n let name: string = ENV_PREFIXES.reduce((ret, prefix) => {\n if (ret.startsWith(prefix)) {\n ret = ret.slice(prefix.length);\n }\n\n return ret;\n }, env.toUpperCase());\n\n while (name.startsWith(\"_\")) {\n name = name.slice(1);\n }\n\n return name as TReturned<TEnv>;\n }\n\n return Object.keys(env).reduce((ret, key) => {\n const name = removeEnvPrefix(key);\n if (name) {\n (ret as DotenvParseOutput)[name] = env[key];\n }\n\n return ret;\n }, {} as TReturned<TEnv>);\n}\n\nexport function formatEnvField(key: string): string {\n return camelCase(removeEnvPrefix(key));\n}\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"source-file-env.mjs","names":[],"sources":["../../src/helpers/source-file-env.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { DotenvParseOutput } from \"@stryke/env/types\";\nimport { ENV_PREFIXES } from \"@stryke/env/types\";\nimport { camelCase } from \"@stryke/string-format/camel-case\";\nimport { isString } from \"@stryke/type-checks/is-string\";\n\ntype TReturned<TEnv> = TEnv extends string ? string : DotenvParseOutput;\n\nexport function removeEnvPrefix<TEnv extends DotenvParseOutput | string>(\n env: TEnv\n): TReturned<TEnv> {\n if (isString(env)) {\n let name: string = ENV_PREFIXES.reduce((ret, prefix) => {\n if (ret.startsWith(prefix)) {\n ret = ret.slice(prefix.length);\n }\n\n return ret;\n }, env.toUpperCase());\n\n while (name.startsWith(\"_\")) {\n name = name.slice(1);\n }\n\n return name as TReturned<TEnv>;\n }\n\n return Object.keys(env).reduce((ret, key) => {\n const name = removeEnvPrefix(key);\n if (name) {\n (ret as DotenvParseOutput)[name] = env[key];\n }\n\n return ret;\n }, {} as TReturned<TEnv>);\n}\n\nexport function formatEnvField(key: string): string {\n return camelCase(removeEnvPrefix(key));\n}\n"],"mappings":";;;;;AAAA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;AAKX,MAAK,eAAe;CAAE;CAAQ;CAAC;CAAoC;;AAElE,KAAO,SAAS,IAAI,EAAE;EACtB,IAAW,OAAO,aAAa,OAAG,cAAiB,KAAA,WAAS;AAC5D,OAAe,IAAI,WAAO,OAAQ,CACnB,OAAM,IAAI,MAAM,OAAG,OAAA;AAE7B,UAAQ;;;;;;;AAEN,SAAO,KAAK,WAAW,IAAI;AAG3B,SAAC;;AAET,QAAS,OAAS,KAAE,IAAO,CAAA,OAAO,cAAe,KAAA,QAAO;;AAEnD,MAAA;AAGE,SAAA;IACJ;EAAA;EAAU;EAAM;EAAA;EAAA,CAAA,EAAA,EAAA,CAAA;;AAEnB,gBAAc,SAAS;CAAA;OAAa;CAAa;CAAW;CAAA;AAC5D,SAAc,eAAiB,KAAG;AAC9B,QAAO,UAAO,gBAAmB,IAAC,CAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
2
|
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
|
+
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
4
|
const require_helpers_persistence = require('./persistence.cjs');
|
|
5
|
+
let _powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
4
6
|
let _stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
5
7
|
|
|
6
8
|
//#region src/helpers/template-helpers.ts
|
|
9
|
+
function __assignType(fn, args) {
|
|
10
|
+
fn.__type = args;
|
|
11
|
+
return fn;
|
|
12
|
+
}
|
|
7
13
|
/**
|
|
8
14
|
* Creates the reflection data used when generating runtime template files.
|
|
9
15
|
*
|
|
@@ -13,8 +19,8 @@ let _stryke_string_format_title_case = require("@stryke/string-format/title-case
|
|
|
13
19
|
*/
|
|
14
20
|
async function createTemplateReflection(context, name) {
|
|
15
21
|
const reflection = await require_helpers_persistence.readEnvTypeReflection(context, name);
|
|
16
|
-
reflection.getProperties().forEach((prop) => {
|
|
17
|
-
prop.getAlias().filter(Boolean).forEach((alias) => {
|
|
22
|
+
reflection.getProperties().forEach(__assignType((prop) => {
|
|
23
|
+
prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
|
|
18
24
|
reflection.addProperty({
|
|
19
25
|
name: alias,
|
|
20
26
|
optional: prop.isOptional() ? true : void 0,
|
|
@@ -27,17 +33,39 @@ async function createTemplateReflection(context, name) {
|
|
|
27
33
|
hidden: prop.isHidden(),
|
|
28
34
|
ignore: prop.isIgnored(),
|
|
29
35
|
internal: prop.isInternal(),
|
|
30
|
-
alias: prop.getAlias().filter((a) => a !== alias
|
|
36
|
+
alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
|
|
37
|
+
"a",
|
|
38
|
+
"",
|
|
39
|
+
"P\"2!\"/\""
|
|
40
|
+
])).concat(prop.name),
|
|
31
41
|
title: prop.getTitle() || (0, _stryke_string_format_title_case.titleCase)(prop.name),
|
|
32
42
|
readonly: prop.isReadonly(),
|
|
33
43
|
permission: prop.getPermission(),
|
|
34
44
|
domain: prop.getDomain()
|
|
35
45
|
}
|
|
36
46
|
});
|
|
37
|
-
}
|
|
38
|
-
|
|
47
|
+
}, [
|
|
48
|
+
"alias",
|
|
49
|
+
"",
|
|
50
|
+
"P\"2!\"/\""
|
|
51
|
+
]));
|
|
52
|
+
}, [
|
|
53
|
+
"prop",
|
|
54
|
+
"",
|
|
55
|
+
"P\"2!\"/\""
|
|
56
|
+
]));
|
|
39
57
|
return reflection;
|
|
40
58
|
}
|
|
59
|
+
createTemplateReflection.__type = [
|
|
60
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
61
|
+
"context",
|
|
62
|
+
() => require_types_plugin.__ΩEnvType,
|
|
63
|
+
"name",
|
|
64
|
+
() => _powerlines_deepkit_vendor_type.ReflectionClass,
|
|
65
|
+
"createTemplateReflection",
|
|
66
|
+
"Creates the reflection data used when generating runtime template files.",
|
|
67
|
+
"Pn!2\"n#2$8P\"7%`/&?'"
|
|
68
|
+
];
|
|
41
69
|
|
|
42
70
|
//#endregion
|
|
43
71
|
exports.createTemplateReflection = createTemplateReflection;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { __ΩEnvPluginContext, __ΩEnvType } from "../types/plugin.mjs";
|
|
1
2
|
import { readEnvTypeReflection } from "./persistence.mjs";
|
|
3
|
+
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
2
4
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
3
5
|
|
|
4
6
|
//#region src/helpers/template-helpers.ts
|
|
7
|
+
function __assignType(fn, args) {
|
|
8
|
+
fn.__type = args;
|
|
9
|
+
return fn;
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* Creates the reflection data used when generating runtime template files.
|
|
7
13
|
*
|
|
@@ -11,8 +17,8 @@ import { titleCase } from "@stryke/string-format/title-case";
|
|
|
11
17
|
*/
|
|
12
18
|
async function createTemplateReflection(context, name) {
|
|
13
19
|
const reflection = await readEnvTypeReflection(context, name);
|
|
14
|
-
reflection.getProperties().forEach((prop) => {
|
|
15
|
-
prop.getAlias().filter(Boolean).forEach((alias) => {
|
|
20
|
+
reflection.getProperties().forEach(__assignType((prop) => {
|
|
21
|
+
prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
|
|
16
22
|
reflection.addProperty({
|
|
17
23
|
name: alias,
|
|
18
24
|
optional: prop.isOptional() ? true : void 0,
|
|
@@ -25,17 +31,39 @@ async function createTemplateReflection(context, name) {
|
|
|
25
31
|
hidden: prop.isHidden(),
|
|
26
32
|
ignore: prop.isIgnored(),
|
|
27
33
|
internal: prop.isInternal(),
|
|
28
|
-
alias: prop.getAlias().filter((a) => a !== alias
|
|
34
|
+
alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
|
|
35
|
+
"a",
|
|
36
|
+
"",
|
|
37
|
+
"P\"2!\"/\""
|
|
38
|
+
])).concat(prop.name),
|
|
29
39
|
title: prop.getTitle() || titleCase(prop.name),
|
|
30
40
|
readonly: prop.isReadonly(),
|
|
31
41
|
permission: prop.getPermission(),
|
|
32
42
|
domain: prop.getDomain()
|
|
33
43
|
}
|
|
34
44
|
});
|
|
35
|
-
}
|
|
36
|
-
|
|
45
|
+
}, [
|
|
46
|
+
"alias",
|
|
47
|
+
"",
|
|
48
|
+
"P\"2!\"/\""
|
|
49
|
+
]));
|
|
50
|
+
}, [
|
|
51
|
+
"prop",
|
|
52
|
+
"",
|
|
53
|
+
"P\"2!\"/\""
|
|
54
|
+
]));
|
|
37
55
|
return reflection;
|
|
38
56
|
}
|
|
57
|
+
createTemplateReflection.__type = [
|
|
58
|
+
() => __ΩEnvPluginContext,
|
|
59
|
+
"context",
|
|
60
|
+
() => __ΩEnvType,
|
|
61
|
+
"name",
|
|
62
|
+
() => ReflectionClass,
|
|
63
|
+
"createTemplateReflection",
|
|
64
|
+
"Creates the reflection data used when generating runtime template files.",
|
|
65
|
+
"Pn!2\"n#2$8P\"7%`/&?'"
|
|
66
|
+
];
|
|
39
67
|
|
|
40
68
|
//#endregion
|
|
41
69
|
export { createTemplateReflection };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":";;;;;;AAIA,SAAM,aAAS,IAAW,MAAM;AAC5B,IAAA,SAAW;AACd,QAAS;;;;;;;;;;CA8BR,MAAA,aAAW,MAAgB,sBAAgB,SAAA,KAAA;AACzC,YAAM,eAAe,CAAA,QAAU,cAAA,SAAA;AAE7B,EADa,KAAS,UAAQ,CACpB,OAAC,QAAY,CAAA,QAAA,cAAA,UAAA;AACjB,cAAO,YAAA;IACH,MAAM;IACN,UAAO,KAAA,YAAoB,GAAE,OAAA;IACrC,UAAkB,KAAA,YAAgB,GAAA,OAAA;IAClC,aAAiB,KAAA,gBAAe;IAC1B,YAAc,KAAA,eAAA;IACZ,MAAM,KAAA,SAAA;IACR,SAAA,KAAA,iBAAA;IACE,MAAM;KACJ,QAAK,KAAU,UAAC;KACd,QAAK,KAAA,WAAY;KACpB,UAAA,KAAA,YAAA;KACJ,OAAS,KACG,UAAM,CACN,OAAK,cAAA,MAAA,MAAA,OAAA;MAAA;MAAA;MAAA;MAAA,CAAA,CAAA,CACR,OAAU,KAAI,KAAA;KAChB,OAAK,KAAA,UAAY,IAAA,UAAA,KAAA,KAAA;KACjB,UAAO,KAAA,YAAe;KACxB,YAAc,KAAC,eAAA;KACzB,QAAA,KAAA,WAAA;KACA;IACF,CAAA;KACF;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;;;;;;AAEF,QAAO"}
|
package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "node:module";
|
|
2
|
+
|
|
1
3
|
//#region ../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs
|
|
2
4
|
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), s = (e, i, o, s) => {
|
|
3
5
|
if (i && typeof i == `object` || typeof i == `function`) for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolldown-runtime.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs"],"sourcesContent":["import\"node:module\";var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{c as n,o as t};"],"x_google_ignoreList":[0],"mappings":"
|
|
1
|
+
{"version":3,"file":"rolldown-runtime.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs"],"sourcesContent":["import\"node:module\";var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));export{c as n,o as t};"],"x_google_ignoreList":[0],"mappings":";;;AAAoB,IAAI,IAAE,OAAO,QAAO,IAAE,OAAO,gBAAe,IAAE,OAAO,0BAAyB,IAAE,OAAO,qBAAoB,IAAE,OAAO,gBAAe,IAAE,OAAO,UAAU,gBAAe,KAAG,GAAE,aAAS,KAAG,GAAG,IAAE,EAAC,SAAQ,EAAE,EAAC,EAAE,SAAQ,EAAE,EAAC,EAAE,UAAS,KAAG,GAAE,GAAE,GAAE,MAAI;AAAC,KAAG,KAAG,OAAO,KAAG,YAAU,OAAO,KAAG,WAAW,MAAI,IAAI,IAAE,EAAE,EAAE,EAAC,IAAE,GAAE,IAAE,EAAE,QAAO,GAAE,IAAE,GAAE,IAAI,KAAE,EAAE,IAAG,CAAC,EAAE,KAAK,GAAE,EAAE,IAAE,MAAI,KAAG,EAAE,GAAE,GAAE;EAAC,OAAK,MAAG,EAAE,IAAI,KAAK,MAAK,EAAE;EAAC,YAAW,EAAE,IAAE,EAAE,GAAE,EAAE,KAAG,EAAE;EAAW,CAAC;AAAC,QAAO;GAAG,KAAG,GAAE,GAAE,OAAK,IAAE,KAAG,OAAK,EAAE,GAAC,EAAE,EAAE,EAAE,CAAC,EAAC,EAAE,KAAG,CAAC,KAAG,CAAC,EAAE,aAAW,EAAE,GAAE,WAAU;CAAC,OAAM;CAAE,YAAW,CAAC;CAAE,CAAC,GAAC,GAAE,EAAE"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { require_proxy } from "../../../../node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs";
|
|
2
2
|
import { downloadTemplate, registryProvider } from "./shared/giget.OCaTp9b-.mjs";
|
|
3
|
+
import "node:fs";
|
|
4
|
+
import "node:os";
|
|
5
|
+
import "node:fs/promises";
|
|
3
6
|
import "defu";
|
|
7
|
+
import "node:child_process";
|
|
4
8
|
|
|
5
9
|
//#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs
|
|
6
10
|
var import_proxy = require_proxy();
|
package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs
CHANGED
|
@@ -15,6 +15,7 @@ import ot, { pipeline } from "node:stream";
|
|
|
15
15
|
import ht from "node:string_decoder";
|
|
16
16
|
import P from "node:buffer";
|
|
17
17
|
import O$2 from "node:zlib";
|
|
18
|
+
import "node:child_process";
|
|
18
19
|
|
|
19
20
|
//#region ../../node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs
|
|
20
21
|
var import_proxy = require_proxy();
|