@storm-software/cloudflare-tools 0.71.130 → 0.71.132
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 +24 -0
- package/README.md +1 -1
- package/dist/{chunk-EF5HODET.mjs → chunk-3ALYECD7.mjs} +1 -1
- package/dist/{chunk-ZDABHOZ2.mjs → chunk-76TM4A24.mjs} +17 -28
- package/dist/{chunk-AUZL2N67.mjs → chunk-AIE6CJKD.mjs} +3 -3
- package/dist/{chunk-FKBCEMBX.js → chunk-C45TN2ET.js} +18 -18
- package/dist/{chunk-TDK6ZA5N.js → chunk-GDM2SN2N.js} +13 -13
- package/dist/{chunk-5HMCQMIT.mjs → chunk-HLWLTR63.mjs} +8 -8
- package/dist/{chunk-NA7AQLQH.mjs → chunk-LYG5KMUA.mjs} +1 -1
- package/dist/{chunk-OEP2XBU4.js → chunk-M67NVAFN.js} +34 -34
- package/dist/{chunk-5QM4JUN3.mjs → chunk-NDCCQODD.mjs} +1 -1
- package/dist/{chunk-B6RWRHGX.mjs → chunk-NORE3RH3.mjs} +3 -3
- package/dist/{chunk-WKNE5PIR.js → chunk-NWIDJAAD.js} +168 -168
- package/dist/{chunk-SIS5VQAU.js → chunk-RFTWAZAH.js} +5 -5
- package/dist/{chunk-VJ7YMMMW.mjs → chunk-RRWFLQSB.mjs} +4 -4
- package/dist/{chunk-M3VAGNJQ.mjs → chunk-RV2PLDCF.mjs} +1 -1
- package/dist/{chunk-NPNZ7YFK.js → chunk-SCUJQAQO.js} +7 -7
- package/dist/{chunk-RIBK362W.js → chunk-X4EH7JKI.js} +17 -28
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +5 -5
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +5 -5
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/http-handler.mjs +1 -1
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.131](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.131) (04/28/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update workspace packages' dependencies ([ab3958717](https://github.com/storm-software/storm-ops/commit/ab3958717))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **workspace-tools** to **v1.295.57**
|
|
14
|
+
- Updated **config-tools** to **v1.190.0**
|
|
15
|
+
- Updated **config** to **v1.137.33**
|
|
16
|
+
|
|
17
|
+
## [0.71.130](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.130) (04/26/2026)
|
|
18
|
+
|
|
19
|
+
### Miscellaneous
|
|
20
|
+
|
|
21
|
+
- **monorepo:** Update workspace packages' dependencies ([7bb1aaaf6](https://github.com/storm-software/storm-ops/commit/7bb1aaaf6))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated **workspace-tools** to **v1.295.56**
|
|
26
|
+
- Updated **config-tools** to **v1.189.78**
|
|
27
|
+
- Updated **config** to **v1.137.32**
|
|
28
|
+
|
|
5
29
|
## [0.71.129](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.129) (04/15/2026)
|
|
6
30
|
|
|
7
31
|
### Documentation
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -155,8 +155,8 @@ var CONSOLE_ICONS = {
|
|
|
155
155
|
};
|
|
156
156
|
|
|
157
157
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
158
|
-
var formatTimestamp = (date = /* @__PURE__ */ new Date()) => {
|
|
159
|
-
return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
|
|
158
|
+
var formatTimestamp = (fullDateTime = false, date = /* @__PURE__ */ new Date()) => {
|
|
159
|
+
return fullDateTime ? `${date.toLocaleDateString()} ${date.toLocaleTimeString()}` : `${date.toLocaleTimeString()}`;
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -216,7 +216,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
216
216
|
};
|
|
217
217
|
|
|
218
218
|
// ../config-tools/src/logger/console.ts
|
|
219
|
-
var getLogFn = (logLevel = LogLevel.INFO, config = {},
|
|
219
|
+
var getLogFn = (logLevel = LogLevel.INFO, config = {}, options = {}) => {
|
|
220
|
+
const {
|
|
221
|
+
chalk: _chalk = getChalk(),
|
|
222
|
+
fullDateTime = false,
|
|
223
|
+
hideDateTime = false
|
|
224
|
+
} = options;
|
|
220
225
|
const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
221
226
|
const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
222
227
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -227,9 +232,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
|
|
|
227
232
|
return (message) => {
|
|
228
233
|
console.error(
|
|
229
234
|
`
|
|
230
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
231
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
232
|
-
)(
|
|
235
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
233
236
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
234
237
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
235
238
|
`
|
|
@@ -240,9 +243,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
240
243
|
return (message) => {
|
|
241
244
|
console.error(
|
|
242
245
|
`
|
|
243
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
244
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
245
|
-
)(
|
|
246
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
246
247
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
247
248
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
248
249
|
`
|
|
@@ -253,9 +254,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
253
254
|
return (message) => {
|
|
254
255
|
console.warn(
|
|
255
256
|
`
|
|
256
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
257
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
258
|
-
)(
|
|
257
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
259
258
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
260
259
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
261
260
|
`
|
|
@@ -266,9 +265,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
266
265
|
return (message) => {
|
|
267
266
|
console.info(
|
|
268
267
|
`
|
|
269
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
270
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
271
|
-
)(
|
|
268
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
272
269
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
273
270
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
274
271
|
`
|
|
@@ -279,9 +276,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
279
276
|
return (message) => {
|
|
280
277
|
console.info(
|
|
281
278
|
`
|
|
282
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
283
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
284
|
-
)(
|
|
279
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
285
280
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
286
281
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
287
282
|
`
|
|
@@ -292,9 +287,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
292
287
|
return (message) => {
|
|
293
288
|
console.debug(
|
|
294
289
|
`
|
|
295
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
296
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
297
|
-
)(
|
|
290
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
298
291
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
299
292
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
300
293
|
`
|
|
@@ -305,9 +298,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
305
298
|
return (message) => {
|
|
306
299
|
console.debug(
|
|
307
300
|
`
|
|
308
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
309
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
310
|
-
)(
|
|
301
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
311
302
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
312
303
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
313
304
|
`
|
|
@@ -318,7 +309,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
318
309
|
return (message) => {
|
|
319
310
|
console.debug(
|
|
320
311
|
`
|
|
321
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
312
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
322
313
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
323
314
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
324
315
|
`
|
|
@@ -328,9 +319,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
328
319
|
return (message) => {
|
|
329
320
|
console.log(
|
|
330
321
|
`
|
|
331
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
332
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
333
|
-
)(
|
|
322
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
334
323
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
335
324
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
336
325
|
`
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getWorkspaceConfig,
|
|
9
9
|
schemaRegistry,
|
|
10
10
|
workspaceConfigSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NDCCQODD.mjs";
|
|
12
12
|
import {
|
|
13
13
|
brandIcon,
|
|
14
14
|
correctPaths,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeTrace,
|
|
26
26
|
writeWarning
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-76TM4A24.mjs";
|
|
28
28
|
import {
|
|
29
29
|
__dirname
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-LYG5KMUA.mjs";
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
33
33
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRFTWAZAHjs = require('./chunk-RFTWAZAH.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkX4EH7JKIjs = require('./chunk-X4EH7JKI.js');
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
|
|
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
|
|
|
53
53
|
throw new Error("The executor requires projectsConfigurations.");
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
|
-
const workspaceRoot =
|
|
57
|
-
const config = await
|
|
56
|
+
const workspaceRoot = _chunkM67NVAFNjs.findWorkspaceRoot.call(void 0, );
|
|
57
|
+
const config = await _chunkM67NVAFNjs.getConfig.call(void 0, workspaceRoot);
|
|
58
58
|
const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
|
|
59
59
|
const projectDetails = _chunkN7FW365Qjs.getPackageInfo.call(void 0,
|
|
60
60
|
context.projectsConfigurations.projects[context.projectName]
|
|
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
|
|
|
92
92
|
"The executor failed because the project graph is not available. Please run the build command again."
|
|
93
93
|
);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
_chunkX4EH7JKIjs.writeDebug.call(void 0,
|
|
96
96
|
`Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
|
|
97
97
|
);
|
|
98
98
|
const client = new (0, _clients3.S3Client)({
|
|
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
|
|
|
108
108
|
});
|
|
109
109
|
const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
|
|
110
110
|
if (version) {
|
|
111
|
-
|
|
111
|
+
_chunkX4EH7JKIjs.writeDebug.call(void 0, `Starting upload version ${version}`);
|
|
112
112
|
}
|
|
113
113
|
const basePath = options.path;
|
|
114
|
-
const files = await _glob.glob.call(void 0,
|
|
114
|
+
const files = await _glob.glob.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, basePath, "**/*"), {
|
|
115
115
|
ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
|
|
116
116
|
});
|
|
117
|
-
const internalDependencies = await
|
|
117
|
+
const internalDependencies = await _chunkRFTWAZAHjs.getInternalDependencies.call(void 0,
|
|
118
118
|
context.projectName,
|
|
119
119
|
projectGraph
|
|
120
120
|
);
|
|
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
|
|
|
128
128
|
}, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
|
|
129
129
|
const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
|
|
130
130
|
if (options.clean === true) {
|
|
131
|
-
|
|
131
|
+
_chunkX4EH7JKIjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
|
|
132
132
|
if (!isDryRun) {
|
|
133
133
|
const response = await client.send(
|
|
134
134
|
new (0, _clients3.ListObjectsCommand)({
|
|
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
|
|
|
137
137
|
})
|
|
138
138
|
);
|
|
139
139
|
if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
|
|
140
|
-
|
|
140
|
+
_chunkX4EH7JKIjs.writeTrace.call(void 0,
|
|
141
141
|
`Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
|
|
142
142
|
);
|
|
143
143
|
await client.send(
|
|
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
|
|
|
152
152
|
})
|
|
153
153
|
);
|
|
154
154
|
} else {
|
|
155
|
-
|
|
155
|
+
_chunkX4EH7JKIjs.writeDebug.call(void 0,
|
|
156
156
|
`No existing items to delete in the R2 bucket path ${bucketPath}`
|
|
157
157
|
);
|
|
158
158
|
}
|
|
159
159
|
} else {
|
|
160
|
-
|
|
160
|
+
_chunkX4EH7JKIjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
if (options.writeMetaJson === true) {
|
|
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
|
|
|
178
178
|
if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
|
|
179
179
|
meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
|
|
180
180
|
}
|
|
181
|
-
await
|
|
181
|
+
await _chunkRFTWAZAHjs.uploadFile.call(void 0,
|
|
182
182
|
client,
|
|
183
183
|
bucketId,
|
|
184
184
|
bucketPath,
|
|
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
|
|
|
194
194
|
if (_optionalChain([_fs.statSync.call(void 0, file, {
|
|
195
195
|
throwIfNoEntry: false
|
|
196
196
|
}), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
|
|
197
|
-
const name =
|
|
197
|
+
const name = _chunkX4EH7JKIjs.correctPaths.call(void 0, file).replace(_chunkX4EH7JKIjs.correctPaths.call(void 0, basePath), "");
|
|
198
198
|
const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
|
|
199
|
-
await
|
|
199
|
+
await _chunkRFTWAZAHjs.uploadFile.call(void 0,
|
|
200
200
|
client,
|
|
201
201
|
bucketId,
|
|
202
202
|
bucketPath,
|
|
203
203
|
name,
|
|
204
204
|
version,
|
|
205
|
-
await _promises.readFile.call(void 0, file,
|
|
205
|
+
await _promises.readFile.call(void 0, file, _chunkRFTWAZAHjs.getEncoding.call(void 0, type)),
|
|
206
206
|
type,
|
|
207
207
|
isDryRun
|
|
208
208
|
);
|
|
209
209
|
}
|
|
210
210
|
})
|
|
211
211
|
);
|
|
212
|
-
|
|
212
|
+
_chunkX4EH7JKIjs.writeSuccess.call(void 0,
|
|
213
213
|
`Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
|
|
214
214
|
config
|
|
215
215
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSCUJQAQOjs = require('./chunk-SCUJQAQO.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkX4EH7JKIjs = require('./chunk-X4EH7JKI.js');
|
|
17
17
|
|
|
18
18
|
// src/generators/worker/generator.ts
|
|
19
19
|
|
|
@@ -46,23 +46,23 @@ var vitestScript = `"test": "vitest run"`;
|
|
|
46
46
|
|
|
47
47
|
// src/generators/worker/generator.ts
|
|
48
48
|
async function applicationGenerator(tree, schema) {
|
|
49
|
-
const stopwatch =
|
|
49
|
+
const stopwatch = _chunkX4EH7JKIjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
50
50
|
let config;
|
|
51
51
|
try {
|
|
52
|
-
const workspaceRoot =
|
|
53
|
-
config = await
|
|
54
|
-
|
|
55
|
-
`${
|
|
52
|
+
const workspaceRoot = _chunkM67NVAFNjs.findWorkspaceRoot.call(void 0, );
|
|
53
|
+
config = await _chunkM67NVAFNjs.getConfig.call(void 0, workspaceRoot);
|
|
54
|
+
_chunkX4EH7JKIjs.writeInfo.call(void 0,
|
|
55
|
+
`${_chunkX4EH7JKIjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
|
|
56
56
|
|
|
57
57
|
`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
_chunkX4EH7JKIjs.writeDebug.call(void 0,
|
|
61
61
|
`Loading the Storm Config from environment variables and storm.json file...
|
|
62
62
|
- workspaceRoot: ${workspaceRoot}`,
|
|
63
63
|
config
|
|
64
64
|
);
|
|
65
|
-
|
|
65
|
+
_chunkX4EH7JKIjs.writeTrace.call(void 0,
|
|
66
66
|
`Loaded Storm config into env:
|
|
67
67
|
${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
|
|
68
68
|
config
|
|
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
70
70
|
const options = await normalizeOptions(tree, schema, config);
|
|
71
71
|
const tasks = [];
|
|
72
72
|
tasks.push(
|
|
73
|
-
await
|
|
73
|
+
await _chunkSCUJQAQOjs.generator_default.call(void 0, tree, {
|
|
74
74
|
...options,
|
|
75
75
|
skipFormat: true
|
|
76
76
|
})
|
|
@@ -138,11 +138,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
|
|
|
138
138
|
return _devkit.runTasksInSerial.call(void 0, ...tasks);
|
|
139
139
|
} catch (error) {
|
|
140
140
|
return () => {
|
|
141
|
-
|
|
141
|
+
_chunkX4EH7JKIjs.writeFatal.call(void 0,
|
|
142
142
|
"A fatal error occurred while running the generator - the process was forced to terminate",
|
|
143
143
|
config
|
|
144
144
|
);
|
|
145
|
-
|
|
145
|
+
_chunkX4EH7JKIjs.writeError.call(void 0,
|
|
146
146
|
`An exception was thrown in the generator's process
|
|
147
147
|
- Details: ${error.message}
|
|
148
148
|
- Stacktrace: ${error.stack}`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LYG5KMUA.mjs";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
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.131",
|
|
11
11
|
private: false,
|
|
12
12
|
description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
|
|
13
13
|
keywords: [
|
|
@@ -132,8 +132,8 @@ var require_package = __commonJS({
|
|
|
132
132
|
module: "dist/index.mjs",
|
|
133
133
|
typings: "dist/index.d.ts",
|
|
134
134
|
dependencies: {
|
|
135
|
-
"@aws-sdk/client-s3": "^3.
|
|
136
|
-
"@aws-sdk/lib-storage": "^3.
|
|
135
|
+
"@aws-sdk/client-s3": "^3.1038.0",
|
|
136
|
+
"@aws-sdk/lib-storage": "^3.1038.0",
|
|
137
137
|
"@smithy/node-http-handler": "^4.6.1",
|
|
138
138
|
defu: "catalog:",
|
|
139
139
|
glob: "catalog:",
|
|
@@ -149,16 +149,16 @@ var require_package = __commonJS({
|
|
|
149
149
|
nx: "catalog:",
|
|
150
150
|
tsup: "catalog:",
|
|
151
151
|
untyped: "catalog:",
|
|
152
|
-
wrangler: "^4.
|
|
152
|
+
wrangler: "^4.86.0"
|
|
153
153
|
},
|
|
154
154
|
peerDependencies: {
|
|
155
155
|
"@nx/devkit": "catalog:",
|
|
156
156
|
"@nx/js": "catalog:",
|
|
157
157
|
"@nx/node": "catalog:",
|
|
158
158
|
"@nx/web": "catalog:",
|
|
159
|
-
"@storm-software/config": "1.137.
|
|
160
|
-
"@storm-software/config-tools": "1.
|
|
161
|
-
"@storm-software/workspace-tools": "1.295.
|
|
159
|
+
"@storm-software/config": "1.137.33",
|
|
160
|
+
"@storm-software/config-tools": "1.190.0",
|
|
161
|
+
"@storm-software/workspace-tools": "1.295.57",
|
|
162
162
|
nx: "catalog:",
|
|
163
163
|
tsup: "catalog:",
|
|
164
164
|
wrangler: ">=3.58.0"
|
|
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
12
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename = () => fileURLToPath(import.meta.url);
|