@storm-software/cloudflare-tools 0.63.55 → 0.63.62

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +1 -2
  3. package/dist/chunk-2CDSXWFA.js +311 -0
  4. package/dist/{chunk-Q5XL7K7Z.mjs → chunk-47LTDAIV.mjs} +4 -4
  5. package/dist/{chunk-MB54NXKO.mjs → chunk-7ZAYEHFL.mjs} +11 -9
  6. package/dist/{chunk-AOAXSMD4.js → chunk-FULKT5FT.js} +121 -119
  7. package/dist/{chunk-TOB7OQN4.js → chunk-FVFZRRXE.js} +1 -1
  8. package/dist/{chunk-BRPTGDS4.mjs → chunk-IANDAPQS.mjs} +1 -1
  9. package/dist/{chunk-ADVG6LVE.mjs → chunk-LJBM3BJ3.mjs} +650 -14
  10. package/dist/chunk-MHMPOWJN.js +1370 -0
  11. package/dist/{chunk-57WTY3UY.js → chunk-NCQM44P3.js} +3 -3
  12. package/dist/{chunk-HSHWXMVT.mjs → chunk-OULGED23.mjs} +4 -4
  13. package/dist/{chunk-P45GT4VW.js → chunk-Q5A6EYKA.js} +12 -12
  14. package/dist/{chunk-X2ML265T.js → chunk-R6LCC4LT.js} +16 -16
  15. package/dist/{chunk-5GUQUTLT.mjs → chunk-TGT6YRXK.mjs} +1 -1
  16. package/dist/chunk-V44DYGWX.mjs +311 -0
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +2 -2
  38. package/dist/chunk-AZSS2TUS.mjs +0 -879
  39. package/dist/chunk-KDRIR55G.js +0 -879
  40. package/dist/chunk-UOEUE2GI.js +0 -734
package/CHANGELOG.md CHANGED
@@ -2,6 +2,62 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.63.61](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.61) (2025-08-03)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Updates to package dependencies
10
+ ([d3178b9fe](https://github.com/storm-software/storm-ops/commit/d3178b9fe))
11
+
12
+ ## [0.63.60](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.60) (2025-08-03)
13
+
14
+ ### Miscellaneous
15
+
16
+ - **monorepo:** Updates to README and dependencies
17
+ ([d5fa740ba](https://github.com/storm-software/storm-ops/commit/d5fa740ba))
18
+
19
+ ## [0.63.59](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.59) (2025-08-03)
20
+
21
+ ### Miscellaneous
22
+
23
+ - **monorepo:** Update workspace dependency links for packages
24
+ ([e311f77ef](https://github.com/storm-software/storm-ops/commit/e311f77ef))
25
+
26
+ ## [0.63.58](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.58) (2025-08-03)
27
+
28
+ ### Miscellaneous
29
+
30
+ - **monorepo:** Update README and package dependency versions
31
+ ([cf2786e59](https://github.com/storm-software/storm-ops/commit/cf2786e59))
32
+
33
+ ## [0.63.57](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.57) (2025-08-03)
34
+
35
+ ### Miscellaneous
36
+
37
+ - **monorepo:** Update workspace package dependencies
38
+ ([a51e7f3f5](https://github.com/storm-software/storm-ops/commit/a51e7f3f5))
39
+ - **monorepo:** Regenerate README markdown files
40
+ ([bfce1b325](https://github.com/storm-software/storm-ops/commit/bfce1b325))
41
+
42
+ ## [0.63.56](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.56) (2025-08-03)
43
+
44
+ ### Miscellaneous
45
+
46
+ - **monorepo:** Update workspace package dependencies
47
+ ([c6fbbda93](https://github.com/storm-software/storm-ops/commit/c6fbbda93))
48
+
49
+ ## [0.63.55](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.55) (2025-08-02)
50
+
51
+ ### Bug Fixes
52
+
53
+ - **git-tools:** Resolve issue with missing external dependencies
54
+ ([d47adff14](https://github.com/storm-software/storm-ops/commit/d47adff14))
55
+
56
+ ### Miscellaneous
57
+
58
+ - **monorepo:** Regenerate README markdown files
59
+ ([b867380ec](https://github.com/storm-software/storm-ops/commit/b867380ec))
60
+
5
61
  ## [0.63.54](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.63.54) (2025-08-01)
6
62
 
7
63
  ### Bug Fixes
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
- [![Version](https://img.shields.io/badge/version-0.63.53-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.63.60-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
@@ -40,7 +40,6 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
-
44
43
  ## Table of Contents
45
44
 
46
45
  - [Storm Cloudflare Tools](#storm-cloudflare-tools)
@@ -0,0 +1,311 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/types.ts
2
+ var LogLevel = {
3
+ SILENT: 0,
4
+ FATAL: 10,
5
+ ERROR: 20,
6
+ WARN: 30,
7
+ SUCCESS: 35,
8
+ INFO: 40,
9
+ DEBUG: 60,
10
+ TRACE: 70,
11
+ ALL: 100
12
+ };
13
+ var LogLevelLabel = {
14
+ SILENT: "silent",
15
+ FATAL: "fatal",
16
+ ERROR: "error",
17
+ WARN: "warn",
18
+ SUCCESS: "success",
19
+ INFO: "info",
20
+ DEBUG: "debug",
21
+ TRACE: "trace",
22
+ ALL: "all"
23
+ };
24
+
25
+ // ../config-tools/src/utilities/colors.ts
26
+ var DEFAULT_COLOR_CONFIG = {
27
+ light: {
28
+ background: "#fafafa",
29
+ foreground: "#1d1e22",
30
+ brand: "#1fb2a6",
31
+ alternate: "#db2777",
32
+ help: "#5C4EE5",
33
+ success: "#087f5b",
34
+ info: "#0550ae",
35
+ warning: "#e3b341",
36
+ danger: "#D8314A",
37
+ fatal: "#51070f",
38
+ link: "#3fa6ff",
39
+ positive: "#22c55e",
40
+ negative: "#dc2626",
41
+ gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
42
+ },
43
+ dark: {
44
+ background: "#1d1e22",
45
+ foreground: "#cbd5e1",
46
+ brand: "#2dd4bf",
47
+ alternate: "#db2777",
48
+ help: "#818cf8",
49
+ success: "#10b981",
50
+ info: "#58a6ff",
51
+ warning: "#f3d371",
52
+ danger: "#D8314A",
53
+ fatal: "#a40e26",
54
+ link: "#3fa6ff",
55
+ positive: "#22c55e",
56
+ negative: "#dc2626",
57
+ gradient: ["#1fb2a6", "#db2777", "#818cf8"]
58
+ }
59
+ };
60
+
61
+ // ../config-tools/src/logger/chalk.ts
62
+ var _chalk2 = require('chalk'); var _chalk3 = _interopRequireDefault(_chalk2);
63
+ var chalkDefault = {
64
+ hex: (_) => (message) => message,
65
+ bgHex: (_) => ({
66
+ whiteBright: (message) => message,
67
+ white: (message) => message
68
+ }),
69
+ white: (message) => message,
70
+ whiteBright: (message) => message,
71
+ gray: (message) => message,
72
+ bold: {
73
+ hex: (_) => (message) => message,
74
+ bgHex: (_) => ({
75
+ whiteBright: (message) => message,
76
+ white: (message) => message
77
+ }),
78
+ whiteBright: (message) => message,
79
+ white: (message) => message
80
+ },
81
+ dim: {
82
+ hex: (_) => (message) => message,
83
+ gray: (message) => message
84
+ }
85
+ };
86
+ var getChalk = () => {
87
+ let _chalk = _chalk3.default;
88
+ if (!_optionalChain([_chalk, 'optionalAccess', _2 => _2.hex]) || !_optionalChain([_chalk, 'optionalAccess', _3 => _3.bold, 'optionalAccess', _4 => _4.hex]) || !_optionalChain([_chalk, 'optionalAccess', _5 => _5.bgHex]) || !_optionalChain([_chalk, 'optionalAccess', _6 => _6.whiteBright]) || !_optionalChain([_chalk, 'optionalAccess', _7 => _7.white])) {
89
+ _chalk = chalkDefault;
90
+ }
91
+ return _chalk;
92
+ };
93
+
94
+ // ../config-tools/src/logger/is-unicode-supported.ts
95
+ function isUnicodeSupported() {
96
+ if (process.platform !== "win32") {
97
+ return process.env.TERM !== "linux";
98
+ }
99
+ return Boolean(process.env.WT_SESSION) || // Windows Terminal
100
+ Boolean(process.env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
101
+ process.env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
102
+ process.env.TERM_PROGRAM === "Terminus-Sublime" || process.env.TERM_PROGRAM === "vscode" || process.env.TERM === "xterm-256color" || process.env.TERM === "alacritty" || process.env.TERM === "rxvt-unicode" || process.env.TERM === "rxvt-unicode-256color" || process.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
103
+ }
104
+
105
+ // ../config-tools/src/logger/console-icons.ts
106
+ var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
107
+ var CONSOLE_ICONS = {
108
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
109
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
110
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
111
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
112
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
113
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
114
+ [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
115
+ [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
116
+ };
117
+
118
+ // ../config-tools/src/logger/format-timestamp.ts
119
+ var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
120
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
121
+ };
122
+
123
+ // ../config-tools/src/logger/get-log-level.ts
124
+ var getLogLevel = (label) => {
125
+ switch (label) {
126
+ case "all":
127
+ return LogLevel.ALL;
128
+ case "trace":
129
+ return LogLevel.TRACE;
130
+ case "debug":
131
+ return LogLevel.DEBUG;
132
+ case "info":
133
+ return LogLevel.INFO;
134
+ case "warn":
135
+ return LogLevel.WARN;
136
+ case "error":
137
+ return LogLevel.ERROR;
138
+ case "fatal":
139
+ return LogLevel.FATAL;
140
+ case "silent":
141
+ return LogLevel.SILENT;
142
+ default:
143
+ return LogLevel.INFO;
144
+ }
145
+ };
146
+ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
147
+ if (logLevel >= LogLevel.ALL) {
148
+ return LogLevelLabel.ALL;
149
+ }
150
+ if (logLevel >= LogLevel.TRACE) {
151
+ return LogLevelLabel.TRACE;
152
+ }
153
+ if (logLevel >= LogLevel.DEBUG) {
154
+ return LogLevelLabel.DEBUG;
155
+ }
156
+ if (logLevel >= LogLevel.INFO) {
157
+ return LogLevelLabel.INFO;
158
+ }
159
+ if (logLevel >= LogLevel.WARN) {
160
+ return LogLevelLabel.WARN;
161
+ }
162
+ if (logLevel >= LogLevel.ERROR) {
163
+ return LogLevelLabel.ERROR;
164
+ }
165
+ if (logLevel >= LogLevel.FATAL) {
166
+ return LogLevelLabel.FATAL;
167
+ }
168
+ if (logLevel <= LogLevel.SILENT) {
169
+ return LogLevelLabel.SILENT;
170
+ }
171
+ return LogLevelLabel.INFO;
172
+ };
173
+
174
+ // ../config-tools/src/logger/console.ts
175
+ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
176
+ const colors = !_optionalChain([config, 'access', _8 => _8.colors, 'optionalAccess', _9 => _9.dark]) && !_optionalChain([config, 'access', _10 => _10.colors, 'optionalAccess', _11 => _11["base"]]) && !_optionalChain([config, 'access', _12 => _12.colors, 'optionalAccess', _13 => _13["base"], 'optionalAccess', _14 => _14.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _15 => _15.colors, 'optionalAccess', _16 => _16.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _17 => _17.colors, 'optionalAccess', _18 => _18["base"], 'optionalAccess', _19 => _19.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _20 => _20.colors, 'optionalAccess', _21 => _21["base"]]) ? _optionalChain([config, 'access', _22 => _22.colors, 'optionalAccess', _23 => _23["base"]]) : DEFAULT_COLOR_CONFIG;
177
+ const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
178
+ if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
179
+ return (_) => {
180
+ };
181
+ }
182
+ if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel) {
183
+ return (message) => {
184
+ console.error(
185
+ `
186
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( DEFAULT_COLOR_CONFIG.dark.fatal)))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
187
+ `
188
+ );
189
+ };
190
+ }
191
+ if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel) {
192
+ return (message) => {
193
+ console.error(
194
+ `
195
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( DEFAULT_COLOR_CONFIG.dark.danger)))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
196
+ `
197
+ );
198
+ };
199
+ }
200
+ if (typeof logLevel === "number" && LogLevel.WARN >= logLevel) {
201
+ return (message) => {
202
+ console.warn(
203
+ `
204
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( DEFAULT_COLOR_CONFIG.dark.warning)))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
205
+ `
206
+ );
207
+ };
208
+ }
209
+ if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel) {
210
+ return (message) => {
211
+ console.info(
212
+ `
213
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( DEFAULT_COLOR_CONFIG.dark.success)))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
214
+ `
215
+ );
216
+ };
217
+ }
218
+ if (typeof logLevel === "number" && LogLevel.INFO >= logLevel) {
219
+ return (message) => {
220
+ console.info(
221
+ `
222
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
223
+ `
224
+ );
225
+ };
226
+ }
227
+ if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel) {
228
+ return (message) => {
229
+ console.debug(
230
+ `
231
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
232
+ `
233
+ );
234
+ };
235
+ }
236
+ if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel) {
237
+ return (message) => {
238
+ console.debug(
239
+ `
240
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( DEFAULT_COLOR_CONFIG.dark.info)))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
241
+ `
242
+ );
243
+ };
244
+ }
245
+ return (message) => {
246
+ console.log(
247
+ `
248
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( DEFAULT_COLOR_CONFIG.dark.brand)))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
249
+ `
250
+ );
251
+ };
252
+ };
253
+ var writeFatal = (message, config) => getLogFn(LogLevel.FATAL, config)(message);
254
+ var writeError = (message, config) => getLogFn(LogLevel.ERROR, config)(message);
255
+ var writeWarning = (message, config) => getLogFn(LogLevel.WARN, config)(message);
256
+ var writeInfo = (message, config) => getLogFn(LogLevel.INFO, config)(message);
257
+ var writeSuccess = (message, config) => getLogFn(LogLevel.SUCCESS, config)(message);
258
+ var writeDebug = (message, config) => getLogFn(LogLevel.DEBUG, config)(message);
259
+ var writeTrace = (message, config) => getLogFn(LogLevel.TRACE, config)(message);
260
+ var getStopwatch = (name) => {
261
+ const start = process.hrtime();
262
+ return () => {
263
+ const end = process.hrtime(start);
264
+ console.info(
265
+ `
266
+ > \u23F1\uFE0F The${name ? ` ${name}` : ""} process took ${Math.round(
267
+ end[0] * 1e3 + end[1] / 1e6
268
+ )}ms to complete
269
+ `
270
+ );
271
+ };
272
+ };
273
+ var MAX_DEPTH = 4;
274
+ var formatLogMessage = (message, options = {}, depth = 0) => {
275
+ if (depth > MAX_DEPTH) {
276
+ return "<max depth>";
277
+ }
278
+ const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
279
+ const skip = _nullishCoalesce(options.skip, () => ( []));
280
+ return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
281
+ ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
282
+ ${Object.keys(message).filter((key) => !skip.includes(key)).map(
283
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
284
+ message[key],
285
+ { prefix: `${prefix}-`, skip },
286
+ depth + 1
287
+ ) : message[key]}`
288
+ ).join("\n")}` : message;
289
+ };
290
+ var _isFunction = (value) => {
291
+ try {
292
+ return value instanceof Function || typeof value === "function" || !!(_optionalChain([value, 'optionalAccess', _24 => _24.constructor]) && _optionalChain([value, 'optionalAccess', _25 => _25.call]) && _optionalChain([value, 'optionalAccess', _26 => _26.apply]));
293
+ } catch (e) {
294
+ return false;
295
+ }
296
+ };
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+ exports.LogLevel = LogLevel; exports.getLogLevel = getLogLevel; exports.getLogLevelLabel = getLogLevelLabel; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.writeTrace = writeTrace; exports.getStopwatch = getStopwatch; exports.formatLogMessage = formatLogMessage;
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-BRPTGDS4.mjs";
4
+ } from "./chunk-IANDAPQS.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-PH3DHY4Q.mjs";
9
9
  import {
10
+ findWorkspaceRoot,
10
11
  getConfig
11
- } from "./chunk-ADVG6LVE.mjs";
12
+ } from "./chunk-LJBM3BJ3.mjs";
12
13
  import {
13
- findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-AZSS2TUS.mjs";
18
+ } from "./chunk-V44DYGWX.mjs";
19
19
 
20
20
  // src/executors/r2-upload-publish/executor.ts
21
21
  import { S3 } from "@aws-sdk/client-s3";
@@ -3,15 +3,15 @@ import {
3
3
  addProjectTag
4
4
  } from "./chunk-PH3DHY4Q.mjs";
5
5
  import {
6
+ findWorkspaceRoot,
6
7
  getConfig,
7
- getWorkspaceConfig
8
- } from "./chunk-ADVG6LVE.mjs";
8
+ getWorkspaceConfig,
9
+ joinPaths,
10
+ stormWorkspaceConfigSchema
11
+ } from "./chunk-LJBM3BJ3.mjs";
9
12
  import {
10
- findWorkspaceRoot,
11
13
  formatLogMessage,
12
14
  getStopwatch,
13
- joinPaths,
14
- stormWorkspaceConfigSchema,
15
15
  writeDebug,
16
16
  writeError,
17
17
  writeFatal,
@@ -19,7 +19,7 @@ import {
19
19
  writeSuccess,
20
20
  writeTrace,
21
21
  writeWarning
22
- } from "./chunk-AZSS2TUS.mjs";
22
+ } from "./chunk-V44DYGWX.mjs";
23
23
  import {
24
24
  __dirname,
25
25
  __require
@@ -1284,7 +1284,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1284
1284
  "The Size-Limit process failed because the context is not valid. Please run this command from a workspace."
1285
1285
  );
1286
1286
  }
1287
- writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1287
+ writeInfo(`\u{1F4CF} Running Size-Limit on ${context.projectName}`, config);
1288
1288
  sizeLimit([filePlugin, esBuildPlugin, esBuildWhyPlugin], {
1289
1289
  checks: options.entry ?? context.projectsConfigurations.projects[context.projectName]?.sourceRoot ?? joinPathFragments3(
1290
1290
  context.projectsConfigurations.projects[context.projectName]?.root ?? "./",
@@ -1292,7 +1292,7 @@ async function sizeLimitExecutorFn(options, context, config) {
1292
1292
  )
1293
1293
  }).then((result) => {
1294
1294
  writeInfo(
1295
- `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1295
+ `\u{1F4CF} ${context.projectName} Size-Limit result: ${JSON.stringify(result)}`,
1296
1296
  config
1297
1297
  );
1298
1298
  });
@@ -2970,7 +2970,9 @@ var NPM_LOCK_PATH = join2(workspaceRoot2, NPM_LOCK_FILE);
2970
2970
  var PNPM_LOCK_PATH = join2(workspaceRoot2, PNPM_LOCK_FILE);
2971
2971
 
2972
2972
  // ../workspace-tools/src/utils/plugin-helpers.ts
2973
- import { readJsonFile as readJsonFile2 } from "@nx/devkit";
2973
+ import {
2974
+ readJsonFile as readJsonFile2
2975
+ } from "@nx/devkit";
2974
2976
  import defu4 from "defu";
2975
2977
  import { existsSync as existsSync7 } from "node:fs";
2976
2978
  import { dirname, join as join3 } from "node:path";