@storm-software/terraform-tools 0.54.15 → 0.54.16
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 +6 -0
- package/README.md +1 -1
- package/dist/{chunk-QPNUZRK3.mjs → chunk-DX73VV5X.mjs} +1 -1
- package/dist/{chunk-ARUOVAUX.js → chunk-EFR6PXP4.js} +120 -17
- package/dist/{chunk-WBYJW6OP.js → chunk-F4YYSDFN.js} +149 -149
- package/dist/{chunk-5SJJD7T2.js → chunk-FITZEF2D.js} +3 -3
- package/dist/{chunk-RMJZBNHR.mjs → chunk-LFSPDVQC.mjs} +1 -1
- package/dist/{chunk-JSGMKYAJ.mjs → chunk-MQHDDYEZ.mjs} +1 -1
- package/dist/{chunk-L2PJ2IP6.mjs → chunk-NKCDHL2T.mjs} +1 -1
- package/dist/{chunk-IILCY4K6.js → chunk-PTGYSMPV.js} +2 -2
- package/dist/{chunk-XW6C32ZW.mjs → chunk-RWC4LQNP.mjs} +1 -1
- package/dist/{chunk-HVVQCDLX.js → chunk-V2MDU72P.js} +2 -2
- package/dist/{chunk-YF7XYL2D.js → chunk-VLD5ZA2O.js} +2 -2
- package/dist/{chunk-FESDU63B.mjs → chunk-VZ6XA5RO.mjs} +1 -1
- package/dist/{chunk-MZ27JZT5.mjs → chunk-W4HT4RSX.mjs} +125 -22
- package/dist/{chunk-JGEEK7WZ.js → chunk-Y42OHWIS.js} +2 -2
- package/dist/executors.js +6 -6
- package/dist/executors.mjs +6 -6
- package/dist/generators.js +3 -3
- package/dist/generators.mjs +2 -2
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/base/index.js +3 -3
- package/dist/src/base/index.mjs +2 -2
- package/dist/src/base/terraform-executor.js +3 -3
- package/dist/src/base/terraform-executor.mjs +2 -2
- package/dist/src/executors/apply/executor.js +4 -4
- package/dist/src/executors/apply/executor.mjs +3 -3
- package/dist/src/executors/destroy/executor.js +4 -4
- package/dist/src/executors/destroy/executor.mjs +3 -3
- package/dist/src/executors/output/executor.js +4 -4
- package/dist/src/executors/output/executor.mjs +3 -3
- package/dist/src/executors/plan/executor.js +4 -4
- package/dist/src/executors/plan/executor.mjs +3 -3
- package/dist/src/generators/init/init.js +3 -3
- package/dist/src/generators/init/init.mjs +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
|
@@ -226,28 +226,131 @@ var _promises = require('fs/promises');
|
|
|
226
226
|
var _path = require('path');
|
|
227
227
|
|
|
228
228
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
229
|
+
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
230
|
+
function normalizeWindowsPath(input = "") {
|
|
231
|
+
if (!input) {
|
|
232
|
+
return input;
|
|
233
|
+
}
|
|
234
|
+
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
235
|
+
}
|
|
236
|
+
_chunk3GQAWCBQjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
237
|
+
var _UNC_REGEX = /^[/\\]{2}/;
|
|
238
|
+
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
239
|
+
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
240
|
+
var correctPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(path) {
|
|
241
|
+
if (!path || path.length === 0) {
|
|
242
|
+
return ".";
|
|
243
|
+
}
|
|
244
|
+
path = normalizeWindowsPath(path);
|
|
245
|
+
const isUNCPath = path.match(_UNC_REGEX);
|
|
246
|
+
const isPathAbsolute = isAbsolute(path);
|
|
247
|
+
const trailingSeparator = path[path.length - 1] === "/";
|
|
248
|
+
path = normalizeString(path, !isPathAbsolute);
|
|
249
|
+
if (path.length === 0) {
|
|
250
|
+
if (isPathAbsolute) {
|
|
251
|
+
return "/";
|
|
252
|
+
}
|
|
253
|
+
return trailingSeparator ? "./" : ".";
|
|
254
|
+
}
|
|
255
|
+
if (trailingSeparator) {
|
|
256
|
+
path += "/";
|
|
257
|
+
}
|
|
258
|
+
if (_DRIVE_LETTER_RE.test(path)) {
|
|
259
|
+
path += "/";
|
|
260
|
+
}
|
|
261
|
+
if (isUNCPath) {
|
|
262
|
+
if (!isPathAbsolute) {
|
|
263
|
+
return `//./${path}`;
|
|
240
264
|
}
|
|
241
|
-
return path
|
|
265
|
+
return `//${path}`;
|
|
242
266
|
}
|
|
243
|
-
return
|
|
267
|
+
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
244
268
|
}, "correctPaths");
|
|
245
|
-
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, (...
|
|
246
|
-
|
|
247
|
-
|
|
269
|
+
var joinPaths = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(...segments) {
|
|
270
|
+
let path = "";
|
|
271
|
+
for (const seg of segments) {
|
|
272
|
+
if (!seg) {
|
|
273
|
+
continue;
|
|
274
|
+
}
|
|
275
|
+
if (path.length > 0) {
|
|
276
|
+
const pathTrailing = path[path.length - 1] === "/";
|
|
277
|
+
const segLeading = seg[0] === "/";
|
|
278
|
+
const both = pathTrailing && segLeading;
|
|
279
|
+
if (both) {
|
|
280
|
+
path += seg.slice(1);
|
|
281
|
+
} else {
|
|
282
|
+
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
283
|
+
}
|
|
284
|
+
} else {
|
|
285
|
+
path += seg;
|
|
286
|
+
}
|
|
248
287
|
}
|
|
249
|
-
return correctPaths(
|
|
288
|
+
return correctPaths(path);
|
|
250
289
|
}, "joinPaths");
|
|
290
|
+
function normalizeString(path, allowAboveRoot) {
|
|
291
|
+
let res = "";
|
|
292
|
+
let lastSegmentLength = 0;
|
|
293
|
+
let lastSlash = -1;
|
|
294
|
+
let dots = 0;
|
|
295
|
+
let char = null;
|
|
296
|
+
for (let index = 0; index <= path.length; ++index) {
|
|
297
|
+
if (index < path.length) {
|
|
298
|
+
char = path[index];
|
|
299
|
+
} else if (char === "/") {
|
|
300
|
+
break;
|
|
301
|
+
} else {
|
|
302
|
+
char = "/";
|
|
303
|
+
}
|
|
304
|
+
if (char === "/") {
|
|
305
|
+
if (lastSlash === index - 1 || dots === 1) {
|
|
306
|
+
} else if (dots === 2) {
|
|
307
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
308
|
+
if (res.length > 2) {
|
|
309
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
|
310
|
+
if (lastSlashIndex === -1) {
|
|
311
|
+
res = "";
|
|
312
|
+
lastSegmentLength = 0;
|
|
313
|
+
} else {
|
|
314
|
+
res = res.slice(0, lastSlashIndex);
|
|
315
|
+
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
316
|
+
}
|
|
317
|
+
lastSlash = index;
|
|
318
|
+
dots = 0;
|
|
319
|
+
continue;
|
|
320
|
+
} else if (res.length > 0) {
|
|
321
|
+
res = "";
|
|
322
|
+
lastSegmentLength = 0;
|
|
323
|
+
lastSlash = index;
|
|
324
|
+
dots = 0;
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (allowAboveRoot) {
|
|
329
|
+
res += res.length > 0 ? "/.." : "..";
|
|
330
|
+
lastSegmentLength = 2;
|
|
331
|
+
}
|
|
332
|
+
} else {
|
|
333
|
+
if (res.length > 0) {
|
|
334
|
+
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
335
|
+
} else {
|
|
336
|
+
res = path.slice(lastSlash + 1, index);
|
|
337
|
+
}
|
|
338
|
+
lastSegmentLength = index - lastSlash - 1;
|
|
339
|
+
}
|
|
340
|
+
lastSlash = index;
|
|
341
|
+
dots = 0;
|
|
342
|
+
} else if (char === "." && dots !== -1) {
|
|
343
|
+
++dots;
|
|
344
|
+
} else {
|
|
345
|
+
dots = -1;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
return res;
|
|
349
|
+
}
|
|
350
|
+
_chunk3GQAWCBQjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
351
|
+
var isAbsolute = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, function(p) {
|
|
352
|
+
return _IS_ABSOLUTE_RE.test(p);
|
|
353
|
+
}, "isAbsolute");
|
|
251
354
|
|
|
252
355
|
// ../config-tools/src/utilities/find-up.ts
|
|
253
356
|
|