@storm-software/terraform-tools 0.60.43 → 0.60.46
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/CHANGELOG.md +47 -0
- package/README.md +1 -1
- package/dist/{chunk-CWAP7FTU.js → chunk-4XQVFURC.js} +107 -107
- package/dist/{chunk-AUI62RE2.js → chunk-6H4WUAF5.js} +2 -2
- package/dist/{chunk-PX3356DK.js → chunk-E5YWLZPX.js} +2 -2
- package/dist/{chunk-PLGVNCON.js → chunk-EL5G3CJW.js} +2 -2
- package/dist/{chunk-HLIU6B3G.js → chunk-HMVRBTCN.js} +31 -27
- package/dist/{chunk-PIH57EDW.mjs → chunk-JS7SUCFM.mjs} +1 -1
- package/dist/{chunk-P7GPCCVQ.mjs → chunk-KM4V4EWR.mjs} +1 -1
- package/dist/{chunk-HX7OWI6F.js → chunk-KNOJATJN.js} +2 -2
- package/dist/{chunk-HQYMFPVJ.js → chunk-QJKY2EXM.js} +2 -2
- package/dist/{chunk-ACCVWIOF.mjs → chunk-UG757LXR.mjs} +1 -1
- package/dist/{chunk-2LDLNN6E.mjs → chunk-WRGWX7A4.mjs} +1 -1
- package/dist/{chunk-JUXMJBB6.mjs → chunk-YYCFKHSS.mjs} +1 -1
- package/dist/{chunk-DF36KLR2.mjs → chunk-ZGB4X6IY.mjs} +8 -4
- package/dist/{chunk-D6U4QQTB.mjs → chunk-ZLW4FURC.mjs} +1 -1
- package/dist/{chunk-UTBYHDKY.mjs → chunk-ZVFF2H6H.mjs} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +3 -3
- package/dist/index.js +8 -8
- package/dist/index.mjs +8 -8
- package/dist/src/base/base-terraform-executor.untyped.mjs +1 -1
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +3 -3
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +3 -3
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +4 -4
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +4 -4
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +4 -4
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +4 -4
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKNOJATJNjs = require('./chunk-KNOJATJN.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/apply/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkKNOJATJNjs.withTerraformExecutor.call(void 0, "apply");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKNOJATJNjs = require('./chunk-KNOJATJN.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/output/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkKNOJATJNjs.withTerraformExecutor.call(void 0, "output");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKNOJATJNjs = require('./chunk-KNOJATJN.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/destroy/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkKNOJATJNjs.withTerraformExecutor.call(void 0, "destroy");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -627,16 +627,20 @@ var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
|
|
|
627
627
|
var chalkDefault = {
|
|
628
628
|
hex: (_) => (message) => message,
|
|
629
629
|
bgHex: (_) => ({
|
|
630
|
-
whiteBright: (message) => message
|
|
630
|
+
whiteBright: (message) => message,
|
|
631
|
+
white: (message) => message
|
|
631
632
|
}),
|
|
633
|
+
white: (message) => message,
|
|
632
634
|
whiteBright: (message) => message,
|
|
633
635
|
gray: (message) => message,
|
|
634
636
|
bold: {
|
|
635
637
|
hex: (_) => (message) => message,
|
|
636
638
|
bgHex: (_) => ({
|
|
637
|
-
whiteBright: (message) => message
|
|
639
|
+
whiteBright: (message) => message,
|
|
640
|
+
white: (message) => message
|
|
638
641
|
}),
|
|
639
|
-
whiteBright: (message) => message
|
|
642
|
+
whiteBright: (message) => message,
|
|
643
|
+
white: (message) => message
|
|
640
644
|
},
|
|
641
645
|
dim: {
|
|
642
646
|
hex: (_) => (message) => message,
|
|
@@ -645,7 +649,7 @@ var chalkDefault = {
|
|
|
645
649
|
};
|
|
646
650
|
var getChalk = () => {
|
|
647
651
|
let _chalk = _chalk3.default;
|
|
648
|
-
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright])) {
|
|
652
|
+
if (!_optionalChain([_chalk, 'optionalAccess', _6 => _6.hex]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.bold, 'optionalAccess', _8 => _8.hex]) || !_optionalChain([_chalk, 'optionalAccess', _9 => _9.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _10 => _10.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _11 => _11.white])) {
|
|
649
653
|
_chalk = chalkDefault;
|
|
650
654
|
}
|
|
651
655
|
return _chalk;
|
|
@@ -733,7 +737,7 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
733
737
|
|
|
734
738
|
// ../config-tools/src/logger/console.ts
|
|
735
739
|
var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
736
|
-
const colors = !_optionalChain([config, 'access',
|
|
740
|
+
const colors = !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13.dark]) && !_optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15["base"]]) && !_optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"], 'optionalAccess', _23 => _23.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _24 => _24.colors, 'optionalAccess', _25 => _25["base"]]) ? _optionalChain([config, 'access', _26 => _26.colors, 'optionalAccess', _27 => _27["base"]]) : DEFAULT_COLOR_CONFIG;
|
|
737
741
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
738
742
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
739
743
|
return (_) => {
|
|
@@ -849,7 +853,7 @@ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
|
|
|
849
853
|
};
|
|
850
854
|
var _isFunction = (value) => {
|
|
851
855
|
try {
|
|
852
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
856
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _28 => _28.constructor]) && _optionalChain([value, 'optionalAccess', _29 => _29.call]) && _optionalChain([value, 'optionalAccess', _30 => _30.apply]));
|
|
853
857
|
} catch (e) {
|
|
854
858
|
return false;
|
|
855
859
|
}
|
|
@@ -868,7 +872,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
868
872
|
if (result.includes(`{${optionKey}}`)) {
|
|
869
873
|
result = result.replaceAll(
|
|
870
874
|
`{${optionKey}}`,
|
|
871
|
-
_optionalChain([tokenParams, 'optionalAccess',
|
|
875
|
+
_optionalChain([tokenParams, 'optionalAccess', _31 => _31[optionKey]]) || ""
|
|
872
876
|
);
|
|
873
877
|
}
|
|
874
878
|
}
|
|
@@ -890,7 +894,7 @@ var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
|
890
894
|
if (result.includes("{workspaceRoot}")) {
|
|
891
895
|
result = result.replaceAll(
|
|
892
896
|
"{workspaceRoot}",
|
|
893
|
-
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access',
|
|
897
|
+
_nullishCoalesce(_nullishCoalesce(tokenParams.workspaceRoot, () => ( _optionalChain([tokenParams, 'access', _32 => _32.config, 'optionalAccess', _33 => _33.workspaceRoot]))), () => ( findWorkspaceRoot()))
|
|
894
898
|
);
|
|
895
899
|
}
|
|
896
900
|
return result;
|
|
@@ -935,7 +939,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
935
939
|
cwd: workspacePath,
|
|
936
940
|
packageJson: true,
|
|
937
941
|
name: fileName,
|
|
938
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
942
|
+
envName: _optionalChain([fileName, 'optionalAccess', _34 => _34.toUpperCase, 'call', _35 => _35()]),
|
|
939
943
|
jitiOptions: {
|
|
940
944
|
debug: false,
|
|
941
945
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -949,7 +953,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
949
953
|
cwd: workspacePath,
|
|
950
954
|
packageJson: true,
|
|
951
955
|
name: fileName,
|
|
952
|
-
envName: _optionalChain([fileName, 'optionalAccess',
|
|
956
|
+
envName: _optionalChain([fileName, 'optionalAccess', _36 => _36.toUpperCase, 'call', _37 => _37()]),
|
|
953
957
|
jitiOptions: {
|
|
954
958
|
debug: false,
|
|
955
959
|
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(
|
|
@@ -983,7 +987,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
983
987
|
)
|
|
984
988
|
);
|
|
985
989
|
for (const result2 of results) {
|
|
986
|
-
if (_optionalChain([result2, 'optionalAccess',
|
|
990
|
+
if (_optionalChain([result2, 'optionalAccess', _38 => _38.config]) && _optionalChain([result2, 'optionalAccess', _39 => _39.configFile]) && Object.keys(result2.config).length > 0) {
|
|
987
991
|
if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
988
992
|
writeTrace(
|
|
989
993
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
@@ -1192,16 +1196,16 @@ var getBaseThemeColorConfigEnv = (prefix) => {
|
|
|
1192
1196
|
var setExtensionEnv = (extensionName, extension) => {
|
|
1193
1197
|
for (const key of Object.keys(_nullishCoalesce(extension, () => ( {})))) {
|
|
1194
1198
|
if (extension[key]) {
|
|
1195
|
-
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess',
|
|
1199
|
+
const result = _nullishCoalesce(_optionalChain([key, 'optionalAccess', _40 => _40.replace, 'call', _41 => _41(
|
|
1196
1200
|
/([A-Z])+/g,
|
|
1197
|
-
(input) => input ? _optionalChain([input, 'access',
|
|
1198
|
-
), 'access',
|
|
1201
|
+
(input) => input ? _optionalChain([input, 'access', _42 => _42[0], 'optionalAccess', _43 => _43.toUpperCase, 'call', _44 => _44()]) + input.slice(1) : ""
|
|
1202
|
+
), 'access', _45 => _45.split, 'call', _46 => _46(/(?=[A-Z])|[.\-\s_]/), 'access', _47 => _47.map, 'call', _48 => _48((x) => x.toLowerCase())]), () => ( []));
|
|
1199
1203
|
let extensionKey;
|
|
1200
1204
|
if (result.length === 0) {
|
|
1201
1205
|
return;
|
|
1202
1206
|
}
|
|
1203
1207
|
if (result.length === 1) {
|
|
1204
|
-
extensionKey = _nullishCoalesce(_optionalChain([result, 'access',
|
|
1208
|
+
extensionKey = _nullishCoalesce(_optionalChain([result, 'access', _49 => _49[0], 'optionalAccess', _50 => _50.toUpperCase, 'call', _51 => _51()]), () => ( ""));
|
|
1205
1209
|
} else {
|
|
1206
1210
|
extensionKey = result.reduce((ret, part) => {
|
|
1207
1211
|
return `${ret}_${part.toLowerCase()}`;
|
|
@@ -1374,7 +1378,7 @@ var setConfigEnv = (config) => {
|
|
|
1374
1378
|
process.env.NODE_ENV = config.mode;
|
|
1375
1379
|
process.env.ENVIRONMENT = config.mode;
|
|
1376
1380
|
}
|
|
1377
|
-
if (_optionalChain([config, 'access',
|
|
1381
|
+
if (_optionalChain([config, 'access', _52 => _52.colors, 'optionalAccess', _53 => _53.base, 'optionalAccess', _54 => _54.light]) || _optionalChain([config, 'access', _55 => _55.colors, 'optionalAccess', _56 => _56.base, 'optionalAccess', _57 => _57.dark])) {
|
|
1378
1382
|
for (const key of Object.keys(config.colors)) {
|
|
1379
1383
|
setThemeColorConfigEnv(`${prefix}COLOR_${key}_`, config.colors[key]);
|
|
1380
1384
|
}
|
|
@@ -1435,7 +1439,7 @@ var setConfigEnv = (config) => {
|
|
|
1435
1439
|
}
|
|
1436
1440
|
};
|
|
1437
1441
|
var setThemeColorConfigEnv = (prefix, config) => {
|
|
1438
|
-
return _optionalChain([config, 'optionalAccess',
|
|
1442
|
+
return _optionalChain([config, 'optionalAccess', _58 => _58.light, 'optionalAccess', _59 => _59.brand]) || _optionalChain([config, 'optionalAccess', _60 => _60.dark, 'optionalAccess', _61 => _61.brand]) ? setMultiThemeColorConfigEnv(prefix, config) : setSingleThemeColorConfigEnv(prefix, config);
|
|
1439
1443
|
};
|
|
1440
1444
|
var setSingleThemeColorConfigEnv = (prefix, config) => {
|
|
1441
1445
|
if (config.dark) {
|
|
@@ -1537,7 +1541,7 @@ var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
|
1537
1541
|
var _static_cache = void 0;
|
|
1538
1542
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
1539
1543
|
let result;
|
|
1540
|
-
if (!_optionalChain([_static_cache, 'optionalAccess',
|
|
1544
|
+
if (!_optionalChain([_static_cache, 'optionalAccess', _62 => _62.data]) || !_optionalChain([_static_cache, 'optionalAccess', _63 => _63.timestamp]) || _static_cache.timestamp < Date.now() - 8e3) {
|
|
1541
1545
|
let _workspaceRoot = workspaceRoot;
|
|
1542
1546
|
if (!_workspaceRoot) {
|
|
1543
1547
|
_workspaceRoot = findWorkspaceRoot();
|
|
@@ -1568,7 +1572,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1568
1572
|
result.workspaceRoot ??= _workspaceRoot;
|
|
1569
1573
|
} catch (error) {
|
|
1570
1574
|
throw new Error(
|
|
1571
|
-
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess',
|
|
1575
|
+
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _64 => _64.message]) ? `: ${error.message}` : ""}
|
|
1572
1576
|
|
|
1573
1577
|
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
|
|
1574
1578
|
configInput
|
|
@@ -1643,7 +1647,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1643
1647
|
let options = _options;
|
|
1644
1648
|
let config = {};
|
|
1645
1649
|
try {
|
|
1646
|
-
if (!_optionalChain([context, 'access',
|
|
1650
|
+
if (!_optionalChain([context, 'access', _65 => _65.projectsConfigurations, 'optionalAccess', _66 => _66.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
1647
1651
|
throw new Error(
|
|
1648
1652
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
1649
1653
|
);
|
|
@@ -1666,7 +1670,7 @@ var withRunExecutor = (name, executorFn, executorOptions = {}) => async (_option
|
|
|
1666
1670
|
);
|
|
1667
1671
|
config = await getConfig(workspaceRoot);
|
|
1668
1672
|
}
|
|
1669
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1673
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _67 => _67.hooks, 'optionalAccess', _68 => _68.applyDefaultOptions])) {
|
|
1670
1674
|
writeDebug("Running the applyDefaultOptions hook...", config);
|
|
1671
1675
|
options = await Promise.resolve(
|
|
1672
1676
|
executorOptions.hooks.applyDefaultOptions(options, config)
|
|
@@ -1694,7 +1698,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1694
1698
|
`,
|
|
1695
1699
|
config
|
|
1696
1700
|
);
|
|
1697
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1701
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _69 => _69.hooks, 'optionalAccess', _70 => _70.preProcess])) {
|
|
1698
1702
|
writeDebug("Running the preProcess hook...", config);
|
|
1699
1703
|
await Promise.resolve(
|
|
1700
1704
|
executorOptions.hooks.preProcess(tokenized, config)
|
|
@@ -1702,7 +1706,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1702
1706
|
writeDebug("Completed the preProcess hook", config);
|
|
1703
1707
|
}
|
|
1704
1708
|
const ret = executorFn(tokenized, context, config);
|
|
1705
|
-
if (_isFunction2(_optionalChain([ret, 'optionalAccess',
|
|
1709
|
+
if (_isFunction2(_optionalChain([ret, 'optionalAccess', _71 => _71.next]))) {
|
|
1706
1710
|
const asyncGen = ret;
|
|
1707
1711
|
for await (const iter of asyncGen) {
|
|
1708
1712
|
void iter;
|
|
@@ -1711,7 +1715,7 @@ ${formatLogMessage(tokenized)}
|
|
|
1711
1715
|
const result = await Promise.resolve(
|
|
1712
1716
|
ret
|
|
1713
1717
|
);
|
|
1714
|
-
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess',
|
|
1718
|
+
if (result && (!result.success || result.error && _optionalChain([result, 'optionalAccess', _72 => _72.error, 'optionalAccess', _73 => _73.message]) && typeof _optionalChain([result, 'optionalAccess', _74 => _74.error, 'optionalAccess', _75 => _75.message]) === "string" && _optionalChain([result, 'optionalAccess', _76 => _76.error, 'optionalAccess', _77 => _77.name]) && typeof _optionalChain([result, 'optionalAccess', _78 => _78.error, 'optionalAccess', _79 => _79.name]) === "string")) {
|
|
1715
1719
|
writeTrace(
|
|
1716
1720
|
`Failure determined by the ${name} executor
|
|
1717
1721
|
${formatLogMessage(result)}`,
|
|
@@ -1719,10 +1723,10 @@ ${formatLogMessage(result)}`,
|
|
|
1719
1723
|
);
|
|
1720
1724
|
console.error(result);
|
|
1721
1725
|
throw new Error(`The ${name} executor failed to run`, {
|
|
1722
|
-
cause: _optionalChain([result, 'optionalAccess',
|
|
1726
|
+
cause: _optionalChain([result, 'optionalAccess', _80 => _80.error])
|
|
1723
1727
|
});
|
|
1724
1728
|
}
|
|
1725
|
-
if (_optionalChain([executorOptions, 'optionalAccess',
|
|
1729
|
+
if (_optionalChain([executorOptions, 'optionalAccess', _81 => _81.hooks, 'optionalAccess', _82 => _82.postProcess])) {
|
|
1726
1730
|
writeDebug("Running the postProcess hook...", config);
|
|
1727
1731
|
await Promise.resolve(executorOptions.hooks.postProcess(config));
|
|
1728
1732
|
writeDebug("Completed the postProcess hook", config);
|
|
@@ -1752,7 +1756,7 @@ ${formatLogMessage(result)}`,
|
|
|
1752
1756
|
};
|
|
1753
1757
|
var _isFunction2 = (value) => {
|
|
1754
1758
|
try {
|
|
1755
|
-
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess',
|
|
1759
|
+
return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _83 => _83.constructor]) && _optionalChain([value, 'optionalAccess', _84 => _84.call]) && _optionalChain([value, 'optionalAccess', _85 => _85.apply]));
|
|
1756
1760
|
} catch (e) {
|
|
1757
1761
|
return false;
|
|
1758
1762
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHMVRBTCNjs = require('./chunk-HMVRBTCN.js');
|
|
4
4
|
|
|
5
5
|
// ../config-tools/src/utilities/run.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -24,7 +24,7 @@ var run = (config, command, cwd = _nullishCoalesce(config.workspaceRoot, () => (
|
|
|
24
24
|
// src/base/terraform-executor.ts
|
|
25
25
|
var _shelljs = require('shelljs');
|
|
26
26
|
var withTerraformExecutor = (command, executorOptions = {}) => async (_options, context) => {
|
|
27
|
-
return
|
|
27
|
+
return _chunkHMVRBTCNjs.withRunExecutor.call(void 0,
|
|
28
28
|
`Terraform \`${command}\` Command Executor`,
|
|
29
29
|
async (options, context2, config) => {
|
|
30
30
|
if (!_shelljs.which.call(void 0, "tofu") || !_shelljs.which.call(void 0, "terraform")) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkKNOJATJNjs = require('./chunk-KNOJATJN.js');
|
|
4
4
|
|
|
5
5
|
// src/executors/plan/executor.ts
|
|
6
|
-
var executor_default =
|
|
6
|
+
var executor_default = _chunkKNOJATJNjs.withTerraformExecutor.call(void 0, "plan");
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -5,7 +5,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
5
5
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
8
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__5124c89d5ddc703660a0f3c7db432ab1/node_modules/tsup/assets/esm_shims.js
|
|
9
9
|
import { fileURLToPath } from "url";
|
|
10
10
|
import path from "path";
|
|
11
11
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -627,16 +627,20 @@ import chalk from "chalk";
|
|
|
627
627
|
var chalkDefault = {
|
|
628
628
|
hex: (_) => (message) => message,
|
|
629
629
|
bgHex: (_) => ({
|
|
630
|
-
whiteBright: (message) => message
|
|
630
|
+
whiteBright: (message) => message,
|
|
631
|
+
white: (message) => message
|
|
631
632
|
}),
|
|
633
|
+
white: (message) => message,
|
|
632
634
|
whiteBright: (message) => message,
|
|
633
635
|
gray: (message) => message,
|
|
634
636
|
bold: {
|
|
635
637
|
hex: (_) => (message) => message,
|
|
636
638
|
bgHex: (_) => ({
|
|
637
|
-
whiteBright: (message) => message
|
|
639
|
+
whiteBright: (message) => message,
|
|
640
|
+
white: (message) => message
|
|
638
641
|
}),
|
|
639
|
-
whiteBright: (message) => message
|
|
642
|
+
whiteBright: (message) => message,
|
|
643
|
+
white: (message) => message
|
|
640
644
|
},
|
|
641
645
|
dim: {
|
|
642
646
|
hex: (_) => (message) => message,
|
|
@@ -645,7 +649,7 @@ var chalkDefault = {
|
|
|
645
649
|
};
|
|
646
650
|
var getChalk = () => {
|
|
647
651
|
let _chalk = chalk;
|
|
648
|
-
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright) {
|
|
652
|
+
if (!_chalk?.hex || !_chalk?.bold?.hex || !_chalk?.bgHex || !_chalk?.whiteBright || !_chalk?.white) {
|
|
649
653
|
_chalk = chalkDefault;
|
|
650
654
|
}
|
|
651
655
|
return _chalk;
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
writeSuccess,
|
|
17
17
|
writeTrace,
|
|
18
18
|
writeWarning
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZGB4X6IY.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__dirname,
|
|
22
22
|
__require
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UG757LXR.mjs";
|
|
24
24
|
|
|
25
25
|
// src/generators/init/init.ts
|
|
26
26
|
import { formatFiles as formatFiles9 } from "@nx/devkit";
|
package/dist/executors.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";require('./chunk-E7SPQEPH.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-EL5G3CJW.js');
|
|
3
|
+
require('./chunk-E5YWLZPX.js');
|
|
4
|
+
require('./chunk-QJKY2EXM.js');
|
|
5
|
+
require('./chunk-6H4WUAF5.js');
|
|
6
|
+
require('./chunk-KNOJATJN.js');
|
|
7
|
+
require('./chunk-HMVRBTCN.js');
|
|
8
8
|
require('./chunk-3RG5ZIWI.js');
|
package/dist/executors.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-HYHKZPRR.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-YYCFKHSS.mjs";
|
|
3
|
+
import "./chunk-WRGWX7A4.mjs";
|
|
4
|
+
import "./chunk-ZLW4FURC.mjs";
|
|
5
|
+
import "./chunk-KM4V4EWR.mjs";
|
|
6
|
+
import "./chunk-JS7SUCFM.mjs";
|
|
7
|
+
import "./chunk-ZGB4X6IY.mjs";
|
|
8
|
+
import "./chunk-UG757LXR.mjs";
|
package/dist/generators.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-N2YKXZ5R.js');
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk4XQVFURCjs = require('./chunk-4XQVFURC.js');
|
|
5
|
+
require('./chunk-HMVRBTCN.js');
|
|
6
6
|
require('./chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.initGenerator =
|
|
9
|
+
exports.initGenerator = _chunk4XQVFURCjs.initGenerator;
|
package/dist/generators.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-23KFTIT2.mjs";
|
|
2
2
|
import {
|
|
3
3
|
initGenerator
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-ZVFF2H6H.mjs";
|
|
5
|
+
import "./chunk-ZGB4X6IY.mjs";
|
|
6
|
+
import "./chunk-UG757LXR.mjs";
|
|
7
7
|
export {
|
|
8
8
|
initGenerator
|
|
9
9
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-E7SPQEPH.js');
|
|
2
|
-
require('./chunk-
|
|
3
|
-
require('./chunk-
|
|
4
|
-
require('./chunk-
|
|
2
|
+
require('./chunk-EL5G3CJW.js');
|
|
3
|
+
require('./chunk-E5YWLZPX.js');
|
|
4
|
+
require('./chunk-QJKY2EXM.js');
|
|
5
5
|
require('./chunk-N2YKXZ5R.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4XQVFURCjs = require('./chunk-4XQVFURC.js');
|
|
9
9
|
require('./chunk-GUQOEBFW.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkILC773N2js = require('./chunk-ILC773N2.js');
|
|
13
|
-
require('./chunk-
|
|
13
|
+
require('./chunk-6H4WUAF5.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
17
|
-
require('./chunk-
|
|
16
|
+
var _chunkKNOJATJNjs = require('./chunk-KNOJATJN.js');
|
|
17
|
+
require('./chunk-HMVRBTCN.js');
|
|
18
18
|
require('./chunk-3RG5ZIWI.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator =
|
|
23
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.initGenerator = _chunk4XQVFURCjs.initGenerator; exports.withTerraformExecutor = _chunkKNOJATJNjs.withTerraformExecutor;
|
package/dist/index.mjs
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import "./chunk-HYHKZPRR.mjs";
|
|
2
|
-
import "./chunk-
|
|
3
|
-
import "./chunk-
|
|
4
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-YYCFKHSS.mjs";
|
|
3
|
+
import "./chunk-WRGWX7A4.mjs";
|
|
4
|
+
import "./chunk-ZLW4FURC.mjs";
|
|
5
5
|
import "./chunk-23KFTIT2.mjs";
|
|
6
6
|
import {
|
|
7
7
|
initGenerator
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZVFF2H6H.mjs";
|
|
9
9
|
import "./chunk-CA7S5MOH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
base_terraform_executor_untyped_default
|
|
12
12
|
} from "./chunk-EL25IDXP.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-KM4V4EWR.mjs";
|
|
14
14
|
import {
|
|
15
15
|
withTerraformExecutor
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-JS7SUCFM.mjs";
|
|
17
|
+
import "./chunk-ZGB4X6IY.mjs";
|
|
18
|
+
import "./chunk-UG757LXR.mjs";
|
|
19
19
|
export {
|
|
20
20
|
base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
|
|
21
21
|
initGenerator,
|
package/dist/src/base/index.js
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
var _chunkILC773N2js = require('../../chunk-ILC773N2.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-
|
|
7
|
+
var _chunkKNOJATJNjs = require('../../chunk-KNOJATJN.js');
|
|
8
|
+
require('../../chunk-HMVRBTCN.js');
|
|
9
9
|
require('../../chunk-3RG5ZIWI.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.withTerraformExecutor =
|
|
13
|
+
exports.baseTerraformExecutorSchema = _chunkILC773N2js.base_terraform_executor_untyped_default; exports.withTerraformExecutor = _chunkKNOJATJNjs.withTerraformExecutor;
|
package/dist/src/base/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "../../chunk-EL25IDXP.mjs";
|
|
5
5
|
import {
|
|
6
6
|
withTerraformExecutor
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-JS7SUCFM.mjs";
|
|
8
|
+
import "../../chunk-ZGB4X6IY.mjs";
|
|
9
|
+
import "../../chunk-UG757LXR.mjs";
|
|
10
10
|
export {
|
|
11
11
|
base_terraform_executor_untyped_default as baseTerraformExecutorSchema,
|
|
12
12
|
withTerraformExecutor
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var _chunkKNOJATJNjs = require('../../chunk-KNOJATJN.js');
|
|
4
|
+
require('../../chunk-HMVRBTCN.js');
|
|
5
5
|
require('../../chunk-3RG5ZIWI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.withTerraformExecutor =
|
|
8
|
+
exports.withTerraformExecutor = _chunkKNOJATJNjs.withTerraformExecutor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
withTerraformExecutor
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-JS7SUCFM.mjs";
|
|
4
|
+
import "../../chunk-ZGB4X6IY.mjs";
|
|
5
|
+
import "../../chunk-UG757LXR.mjs";
|
|
6
6
|
export {
|
|
7
7
|
withTerraformExecutor
|
|
8
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
3
|
+
var _chunk6H4WUAF5js = require('../../../chunk-6H4WUAF5.js');
|
|
4
|
+
require('../../../chunk-KNOJATJN.js');
|
|
5
|
+
require('../../../chunk-HMVRBTCN.js');
|
|
6
6
|
require('../../../chunk-3RG5ZIWI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.default =
|
|
9
|
+
exports.default = _chunk6H4WUAF5js.executor_default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executor_default
|
|
3
|
-
} from "../../../chunk-
|
|
4
|
-
import "../../../chunk-
|
|
5
|
-
import "../../../chunk-
|
|
6
|
-
import "../../../chunk-
|
|
3
|
+
} from "../../../chunk-KM4V4EWR.mjs";
|
|
4
|
+
import "../../../chunk-JS7SUCFM.mjs";
|
|
5
|
+
import "../../../chunk-ZGB4X6IY.mjs";
|
|
6
|
+
import "../../../chunk-UG757LXR.mjs";
|
|
7
7
|
export {
|
|
8
8
|
executor_default as default
|
|
9
9
|
};
|