@storm-software/cloudflare-tools 0.71.39 → 0.71.40
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 +7 -0
- package/dist/{chunk-VXBGUJBD.js → chunk-24LHZDRM.js} +41 -11
- package/dist/{chunk-LCOEW472.mjs → chunk-3AVA7WBV.mjs} +2 -2
- package/dist/{chunk-UZODNPP7.js → chunk-52VIMULT.js} +34 -34
- package/dist/{chunk-4UDXVHCG.js → chunk-7UJIMNJJ.js} +18 -18
- package/dist/{chunk-MA3DKCNU.mjs → chunk-EHQFNZDX.mjs} +3 -3
- package/dist/{chunk-I5SWGAWE.js → chunk-GWK4ATXM.js} +5 -5
- package/dist/{chunk-Q5YIARCL.mjs → chunk-JBDAUHY2.mjs} +41 -11
- package/dist/{chunk-7YSJQ3QY.js → chunk-LATQZLNM.js} +3 -3
- package/dist/{chunk-E3ASASDB.mjs → chunk-R5QM35JD.mjs} +3 -3
- package/dist/{chunk-KRWY2PQY.mjs → chunk-R7ZJ4P5G.mjs} +3 -3
- package/dist/{chunk-QR2JEXGR.mjs → chunk-RIOIN7EX.mjs} +1 -1
- package/dist/{chunk-SBZF6GML.js → chunk-T2W5AJQE.js} +165 -165
- package/dist/{chunk-EHGAIWWE.js → chunk-XA3YT5XO.js} +12 -12
- package/dist/{chunk-SNMJDKDN.mjs → chunk-YG2UFXE2.mjs} +1 -1
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +5 -5
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +4 -4
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +3 -3
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +1 -1
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +4 -4
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +2 -2
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
- package/package.json +4 -4
|
@@ -111,9 +111,9 @@ function isUnicodeSupported() {
|
|
|
111
111
|
var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
|
|
112
112
|
var CONSOLE_ICONS = {
|
|
113
113
|
[LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
|
|
114
|
-
[LogLevelLabel.FATAL]: useIcon("\
|
|
114
|
+
[LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
|
|
115
115
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
116
|
-
[LogLevelLabel.INFO]: useIcon("\
|
|
116
|
+
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
117
117
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
118
118
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
119
119
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -188,7 +188,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
188
188
|
return (message) => {
|
|
189
189
|
console.error(
|
|
190
190
|
`
|
|
191
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
191
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
192
|
+
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
193
|
+
)(
|
|
194
|
+
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
195
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
192
196
|
`
|
|
193
197
|
);
|
|
194
198
|
};
|
|
@@ -197,7 +201,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CON
|
|
|
197
201
|
return (message) => {
|
|
198
202
|
console.error(
|
|
199
203
|
`
|
|
200
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
204
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
205
|
+
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
206
|
+
)(
|
|
207
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
208
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
201
209
|
`
|
|
202
210
|
);
|
|
203
211
|
};
|
|
@@ -206,7 +214,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CO
|
|
|
206
214
|
return (message) => {
|
|
207
215
|
console.warn(
|
|
208
216
|
`
|
|
209
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
217
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
218
|
+
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
219
|
+
)(
|
|
220
|
+
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
221
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
210
222
|
`
|
|
211
223
|
);
|
|
212
224
|
};
|
|
@@ -215,7 +227,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_C
|
|
|
215
227
|
return (message) => {
|
|
216
228
|
console.info(
|
|
217
229
|
`
|
|
218
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
230
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
231
|
+
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
232
|
+
)(
|
|
233
|
+
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
234
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
219
235
|
`
|
|
220
236
|
);
|
|
221
237
|
};
|
|
@@ -224,7 +240,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
|
|
|
224
240
|
return (message) => {
|
|
225
241
|
console.info(
|
|
226
242
|
`
|
|
227
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
243
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
244
|
+
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
245
|
+
)(
|
|
246
|
+
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
247
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
228
248
|
`
|
|
229
249
|
);
|
|
230
250
|
};
|
|
@@ -233,7 +253,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
|
|
|
233
253
|
return (message) => {
|
|
234
254
|
console.debug(
|
|
235
255
|
`
|
|
236
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
256
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
257
|
+
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
258
|
+
)(
|
|
259
|
+
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
260
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
237
261
|
`
|
|
238
262
|
);
|
|
239
263
|
};
|
|
@@ -242,7 +266,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
|
|
|
242
266
|
return (message) => {
|
|
243
267
|
console.debug(
|
|
244
268
|
`
|
|
245
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
269
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
270
|
+
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
271
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
246
272
|
`
|
|
247
273
|
);
|
|
248
274
|
};
|
|
@@ -250,7 +276,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
|
|
|
250
276
|
return (message) => {
|
|
251
277
|
console.log(
|
|
252
278
|
`
|
|
253
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
279
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
280
|
+
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
281
|
+
)(
|
|
282
|
+
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
283
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
254
284
|
`
|
|
255
285
|
);
|
|
256
286
|
};
|
|
@@ -274,7 +304,7 @@ var getStopwatch = (name) => {
|
|
|
274
304
|
);
|
|
275
305
|
};
|
|
276
306
|
};
|
|
277
|
-
var MAX_DEPTH =
|
|
307
|
+
var MAX_DEPTH = 6;
|
|
278
308
|
var formatLogMessage = (message, options = {}, depth = 0) => {
|
|
279
309
|
if (depth > MAX_DEPTH) {
|
|
280
310
|
return "<max depth>";
|
|
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.39",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -137,8 +137,8 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
139
|
"@storm-software/config": "1.135.0",
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
140
|
+
"@storm-software/config-tools": "1.188.78",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.24",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7ZJ4P5G.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findWorkspaceRoot,
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YG2UFXE2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
getStopwatch,
|
|
10
10
|
writeDebug,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
writeFatal,
|
|
13
13
|
writeInfo,
|
|
14
14
|
writeTrace
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JBDAUHY2.mjs";
|
|
16
16
|
import {
|
|
17
17
|
__dirname
|
|
18
18
|
} from "./chunk-N5UXWPB6.mjs";
|
|
@@ -7,7 +7,7 @@ var require_package = __commonJS({
|
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.39",
|
|
11
11
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
12
12
|
repository: {
|
|
13
13
|
type: "github",
|
|
@@ -137,8 +137,8 @@ var require_package = __commonJS({
|
|
|
137
137
|
"@nx/node": "catalog:",
|
|
138
138
|
"@nx/web": "catalog:",
|
|
139
139
|
"@storm-software/config": "1.135.0",
|
|
140
|
-
"@storm-software/config-tools": "1.188.
|
|
141
|
-
"@storm-software/workspace-tools": "1.294.
|
|
140
|
+
"@storm-software/config-tools": "1.188.78",
|
|
141
|
+
"@storm-software/workspace-tools": "1.294.24",
|
|
142
142
|
nx: "catalog:",
|
|
143
143
|
tsup: "catalog:",
|
|
144
144
|
wrangler: ">=3.58.0"
|