@storm-software/cloudflare-tools 0.71.15 → 0.71.17

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 (36) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-MSPE2JA2.js → chunk-2A2OE6L4.js} +6 -3
  4. package/dist/{chunk-C6PTZNDK.mjs → chunk-73RSHCRP.mjs} +2 -2
  5. package/dist/{chunk-UGR2XH36.mjs → chunk-BWV37GOJ.mjs} +7 -7
  6. package/dist/{chunk-742YXRS7.mjs → chunk-GMB6XFTP.mjs} +12 -22
  7. package/dist/{chunk-2F6WSJSH.js → chunk-GVXVF7SH.js} +15 -25
  8. package/dist/{chunk-3UGLZEZF.mjs → chunk-M2N5CL5V.mjs} +5 -2
  9. package/dist/{chunk-FWIGE74R.mjs → chunk-NFW7NCBF.mjs} +1 -1
  10. package/dist/{chunk-TYYFTZLS.mjs → chunk-PALWHFOL.mjs} +1 -1
  11. package/dist/{chunk-4YJ7HOGJ.js → chunk-S35AG7YC.js} +6 -6
  12. package/dist/{chunk-F6FHDDUJ.mjs → chunk-WFPKBGV3.mjs} +1 -1
  13. package/dist/{chunk-EZAVSRW6.js → chunk-XXRW4LKE.js} +2 -2
  14. package/dist/executors.js +2 -2
  15. package/dist/executors.mjs +5 -5
  16. package/dist/generators.js +3 -3
  17. package/dist/generators.mjs +3 -3
  18. package/dist/index.js +5 -5
  19. package/dist/index.mjs +7 -7
  20. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  21. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  22. package/dist/src/executors/r2-upload-publish/executor.mjs +3 -3
  23. package/dist/src/executors/serve/executor.mjs +2 -2
  24. package/dist/src/generators/init/generator.js +2 -2
  25. package/dist/src/generators/init/generator.mjs +2 -2
  26. package/dist/src/generators/worker/generator.js +3 -3
  27. package/dist/src/generators/worker/generator.mjs +3 -3
  28. package/dist/src/utils/http-handler.mjs +1 -1
  29. package/dist/src/utils/index.js +2 -2
  30. package/dist/src/utils/index.mjs +2 -2
  31. package/dist/src/utils/r2-bucket-helpers.d.mts +1 -1
  32. package/dist/src/utils/r2-bucket-helpers.d.ts +1 -1
  33. package/dist/src/utils/r2-bucket-helpers.js +2 -2
  34. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  35. package/dist/tsup.config.mjs +1 -1
  36. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -2,6 +2,38 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.16](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.16) (12/08/2025)
6
+
7
+ ### Miscellaneous
8
+
9
+ - **monorepo:** Update workspace packages' dependencies
10
+ ([ead0df9f4](https://github.com/storm-software/storm-ops/commit/ead0df9f4))
11
+
12
+ ### Bug Fixes
13
+
14
+ - **cloudflare-tools:** Resolve issue with uploading invalid bucket paths
15
+ ([665243769](https://github.com/storm-software/storm-ops/commit/665243769))
16
+
17
+ ### Updated Dependencies
18
+
19
+ - Updated **workspace-tools** to **v1.294.9**
20
+ - Updated **config-tools** to **v1.188.65**
21
+ - Updated **config** to **v1.134.65**
22
+
23
+ ## [0.71.15](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.15) (12/08/2025)
24
+
25
+ ### Bug Fixes
26
+
27
+ - **cloudflare-tools:** Increase `sessionTimeout` parameter to avoid timeout
28
+ error
29
+ ([bb919ac8d](https://github.com/storm-software/storm-ops/commit/bb919ac8d))
30
+
31
+ ### Updated Dependencies
32
+
33
+ - Updated **workspace-tools** to **v1.294.8**
34
+ - Updated **config-tools** to **v1.188.64**
35
+ - Updated **config** to **v1.134.64**
36
+
5
37
  ## [0.71.14](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.14) (12/08/2025)
6
38
 
7
39
  ### Bug Fixes
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
- [![Version](https://img.shields.io/badge/version-0.71.6-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)
30
+ [![Version](https://img.shields.io/badge/version-0.71.15-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
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
3
 
4
4
 
@@ -7,11 +7,14 @@ var _chunkZ2WQB55Rjs = require('./chunk-Z2WQB55R.js');
7
7
  // src/utils/r2-bucket-helpers.ts
8
8
  var _crypto = require('crypto');
9
9
  async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
10
- _chunkZ2WQB55Rjs.writeDebug.call(void 0, `Uploading file: ${_chunkZ2WQB55Rjs.joinPaths.call(void 0, bucketPath, fileName)}`);
10
+ const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName : _chunkZ2WQB55Rjs.joinPaths.call(void 0, bucketPath.trim(), fileName)), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/^\/+/g, "")]) || "";
11
+ _chunkZ2WQB55Rjs.writeDebug.call(void 0,
12
+ `Uploading ${key} (content-type: ${contentType}) to the ${bucketName} R2 bucket`
13
+ );
11
14
  if (!isDryRun) {
12
15
  await client.putObject({
13
16
  Bucket: bucketName,
14
- Key: _chunkZ2WQB55Rjs.joinPaths.call(void 0, bucketPath, fileName),
17
+ Key: key,
15
18
  Body: fileContent,
16
19
  ContentType: contentType,
17
20
  Metadata: {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-UGR2XH36.mjs";
3
+ } from "./chunk-BWV37GOJ.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-TPNHSNNZ.mjs";
16
16
  import {
17
17
  __dirname
18
- } from "./chunk-TYYFTZLS.mjs";
18
+ } from "./chunk-PALWHFOL.mjs";
19
19
 
20
20
  // src/generators/worker/generator.ts
21
21
  import {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  __commonJS
3
- } from "./chunk-TYYFTZLS.mjs";
3
+ } from "./chunk-PALWHFOL.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.14",
10
+ version: "0.71.16",
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",
@@ -136,9 +136,9 @@ var require_package = __commonJS({
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.63",
140
- "@storm-software/config-tools": "1.188.63",
141
- "@storm-software/workspace-tools": "1.294.7",
139
+ "@storm-software/config": "1.134.65",
140
+ "@storm-software/config-tools": "1.188.65",
141
+ "@storm-software/workspace-tools": "1.294.9",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -164,7 +164,7 @@ var require_package = __commonJS({
164
164
  }
165
165
  },
166
166
  dependencies: {
167
- "@aws-sdk/client-s3": "^3.946.0",
167
+ "@aws-sdk/client-s3": "^3.948.0",
168
168
  "@smithy/node-http-handler": "^4.4.5",
169
169
  defu: "catalog:",
170
170
  glob: "catalog:",
@@ -178,7 +178,7 @@ var require_package = __commonJS({
178
178
  nx: "catalog:",
179
179
  tsup: "catalog:",
180
180
  untyped: "catalog:",
181
- wrangler: "^4.53.0"
181
+ wrangler: "^4.54.0"
182
182
  },
183
183
  publishConfig: {
184
184
  access: "public"
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getInternalDependencies,
6
6
  uploadFile
7
- } from "./chunk-3UGLZEZF.mjs";
7
+ } from "./chunk-M2N5CL5V.mjs";
8
8
  import {
9
9
  createCliOptions,
10
10
  getPackageInfo
@@ -127,27 +127,21 @@ async function runExecutor(options, context) {
127
127
  if (!isDryRun) {
128
128
  const response = await client.listObjects({
129
129
  Bucket: bucketId,
130
- Prefix: bucketPath
130
+ Prefix: !bucketPath || bucketPath === "/" ? void 0 : bucketPath
131
131
  });
132
132
  if (response?.Contents && response.Contents.length > 0) {
133
133
  writeTrace(
134
134
  `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
135
135
  );
136
- await Promise.all(
137
- response.Contents.map(
138
- (item) => client.deleteObjects({
139
- Bucket: bucketId,
140
- Delete: {
141
- Objects: [
142
- {
143
- Key: item.Key
144
- }
145
- ],
146
- Quiet: false
147
- }
148
- })
149
- )
150
- );
136
+ await client.deleteObjects({
137
+ Bucket: bucketId,
138
+ Delete: {
139
+ Objects: response.Contents.map((item) => ({
140
+ Key: item.Key
141
+ })),
142
+ Quiet: false
143
+ }
144
+ });
151
145
  } else {
152
146
  writeDebug(
153
147
  `No existing items to delete in the R2 bucket path ${bucketPath}`
@@ -175,16 +169,13 @@ async function runExecutor(options, context) {
175
169
  if (projectDetails?.type === "package.json") {
176
170
  meta.devDependencies = projectDetails?.content?.devDependencies;
177
171
  }
178
- const metaJson = JSON.stringify(meta);
179
- writeTrace(`Generating meta.json file:
180
- ${metaJson}`);
181
172
  await uploadFile(
182
173
  client,
183
174
  bucketId,
184
175
  bucketPath,
185
176
  "meta.json",
186
177
  version,
187
- metaJson,
178
+ JSON.stringify(meta),
188
179
  "application/json",
189
180
  isDryRun
190
181
  );
@@ -196,7 +187,6 @@ ${metaJson}`);
196
187
  })?.isFile()) {
197
188
  const name = correctPaths(file).replace(correctPaths(basePath), "");
198
189
  const type = mime.lookup(name) || "application/octet-stream";
199
- writeTrace(`Uploading file: ${name} (content-type: ${type})`);
200
190
  await uploadFile(
201
191
  client,
202
192
  bucketId,
@@ -4,7 +4,7 @@ var _chunkI5PY5AIWjs = require('./chunk-I5PY5AIW.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkMSPE2JA2js = require('./chunk-MSPE2JA2.js');
7
+ var _chunk2A2OE6L4js = require('./chunk-2A2OE6L4.js');
8
8
 
9
9
 
10
10
 
@@ -109,7 +109,7 @@ async function runExecutor(options, context) {
109
109
  const files = await _glob.glob.call(void 0, _chunkZ2WQB55Rjs.joinPaths.call(void 0, basePath, "**/*"), {
110
110
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
111
111
  });
112
- const internalDependencies = await _chunkMSPE2JA2js.getInternalDependencies.call(void 0,
112
+ const internalDependencies = await _chunk2A2OE6L4js.getInternalDependencies.call(void 0,
113
113
  context.projectName,
114
114
  projectGraph
115
115
  );
@@ -127,27 +127,21 @@ async function runExecutor(options, context) {
127
127
  if (!isDryRun) {
128
128
  const response = await client.listObjects({
129
129
  Bucket: bucketId,
130
- Prefix: bucketPath
130
+ Prefix: !bucketPath || bucketPath === "/" ? void 0 : bucketPath
131
131
  });
132
132
  if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
133
133
  _chunkZ2WQB55Rjs.writeTrace.call(void 0,
134
134
  `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
135
135
  );
136
- await Promise.all(
137
- response.Contents.map(
138
- (item) => client.deleteObjects({
139
- Bucket: bucketId,
140
- Delete: {
141
- Objects: [
142
- {
143
- Key: item.Key
144
- }
145
- ],
146
- Quiet: false
147
- }
148
- })
149
- )
150
- );
136
+ await client.deleteObjects({
137
+ Bucket: bucketId,
138
+ Delete: {
139
+ Objects: response.Contents.map((item) => ({
140
+ Key: item.Key
141
+ })),
142
+ Quiet: false
143
+ }
144
+ });
151
145
  } else {
152
146
  _chunkZ2WQB55Rjs.writeDebug.call(void 0,
153
147
  `No existing items to delete in the R2 bucket path ${bucketPath}`
@@ -175,16 +169,13 @@ async function runExecutor(options, context) {
175
169
  if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
176
170
  meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
177
171
  }
178
- const metaJson = JSON.stringify(meta);
179
- _chunkZ2WQB55Rjs.writeTrace.call(void 0, `Generating meta.json file:
180
- ${metaJson}`);
181
- await _chunkMSPE2JA2js.uploadFile.call(void 0,
172
+ await _chunk2A2OE6L4js.uploadFile.call(void 0,
182
173
  client,
183
174
  bucketId,
184
175
  bucketPath,
185
176
  "meta.json",
186
177
  version,
187
- metaJson,
178
+ JSON.stringify(meta),
188
179
  "application/json",
189
180
  isDryRun
190
181
  );
@@ -196,8 +187,7 @@ ${metaJson}`);
196
187
  }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
197
188
  const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
198
189
  const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
199
- _chunkZ2WQB55Rjs.writeTrace.call(void 0, `Uploading file: ${name} (content-type: ${type})`);
200
- await _chunkMSPE2JA2js.uploadFile.call(void 0,
190
+ await _chunk2A2OE6L4js.uploadFile.call(void 0,
201
191
  client,
202
192
  bucketId,
203
193
  bucketPath,
@@ -7,11 +7,14 @@ import {
7
7
  // src/utils/r2-bucket-helpers.ts
8
8
  import { createHash } from "node:crypto";
9
9
  async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
10
- writeDebug(`Uploading file: ${joinPaths(bucketPath, fileName)}`);
10
+ const key = (!bucketPath?.trim() || bucketPath?.trim() === "/" ? fileName : joinPaths(bucketPath.trim(), fileName))?.replace(/^\/+/g, "") || "";
11
+ writeDebug(
12
+ `Uploading ${key} (content-type: ${contentType}) to the ${bucketName} R2 bucket`
13
+ );
11
14
  if (!isDryRun) {
12
15
  await client.putObject({
13
16
  Bucket: bucketName,
14
- Key: joinPaths(bucketPath, fileName),
17
+ Key: key,
15
18
  Body: fileContent,
16
19
  ContentType: contentType,
17
20
  Metadata: {
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-TPNHSNNZ.mjs";
27
27
  import {
28
28
  __dirname
29
- } from "./chunk-TYYFTZLS.mjs";
29
+ } from "./chunk-PALWHFOL.mjs";
30
30
 
31
31
  // ../config-tools/src/utilities/apply-workspace-tokens.ts
32
32
  var applyWorkspaceBaseTokens = async (option, tokenParams) => {
@@ -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=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__c3e4998479ad18f48a2d876d2ab799a7/node_modules/tsup/assets/esm_shims.js
12
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__56d110d00b2e8775897b04a523ea3892/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);
@@ -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.14",
10
+ version: "0.71.16",
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",
@@ -136,9 +136,9 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
136
136
  "@nx/js": "catalog:",
137
137
  "@nx/node": "catalog:",
138
138
  "@nx/web": "catalog:",
139
- "@storm-software/config": "1.134.63",
140
- "@storm-software/config-tools": "1.188.63",
141
- "@storm-software/workspace-tools": "1.294.7",
139
+ "@storm-software/config": "1.134.65",
140
+ "@storm-software/config-tools": "1.188.65",
141
+ "@storm-software/workspace-tools": "1.294.9",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -164,7 +164,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
164
164
  }
165
165
  },
166
166
  dependencies: {
167
- "@aws-sdk/client-s3": "^3.946.0",
167
+ "@aws-sdk/client-s3": "^3.948.0",
168
168
  "@smithy/node-http-handler": "^4.4.5",
169
169
  defu: "catalog:",
170
170
  glob: "catalog:",
@@ -178,7 +178,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
178
178
  nx: "catalog:",
179
179
  tsup: "catalog:",
180
180
  untyped: "catalog:",
181
- wrangler: "^4.53.0"
181
+ wrangler: "^4.54.0"
182
182
  },
183
183
  publishConfig: {
184
184
  access: "public"
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-3MAI3FU2.mjs";
4
4
  import {
5
5
  __require
6
- } from "./chunk-TYYFTZLS.mjs";
6
+ } from "./chunk-PALWHFOL.mjs";
7
7
 
8
8
  // src/executors/cloudflare-publish/executor.ts
9
9
  import { joinPathFragments } from "@nx/devkit";
@@ -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(); } } 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 _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
3
+ var _chunkS35AG7YCjs = require('./chunk-S35AG7YC.js');
4
4
 
5
5
 
6
6
 
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
66
66
  const options = await normalizeOptions(tree, schema, config);
67
67
  const tasks = [];
68
68
  tasks.push(
69
- await _chunk4YJ7HOGJjs.generator_default.call(void 0, tree, {
69
+ await _chunkS35AG7YCjs.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
package/dist/executors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
- require('./chunk-2F6WSJSH.js');
2
+ require('./chunk-GVXVF7SH.js');
3
3
  require('./chunk-I5PY5AIW.js');
4
- require('./chunk-MSPE2JA2.js');
4
+ require('./chunk-2A2OE6L4.js');
5
5
  require('./chunk-QBD2OGUY.js');
6
6
  require('./chunk-J5JJZJO5.js');
7
7
  require('./chunk-N7FW365Q.js');
@@ -1,10 +1,10 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-742YXRS7.mjs";
2
+ import "./chunk-GMB6XFTP.mjs";
3
3
  import "./chunk-4DD7MPRF.mjs";
4
- import "./chunk-3UGLZEZF.mjs";
5
- import "./chunk-F6FHDDUJ.mjs";
6
- import "./chunk-FWIGE74R.mjs";
4
+ import "./chunk-M2N5CL5V.mjs";
5
+ import "./chunk-WFPKBGV3.mjs";
6
+ import "./chunk-NFW7NCBF.mjs";
7
7
  import "./chunk-3MAI3FU2.mjs";
8
8
  import "./chunk-SGTAZO2Q.mjs";
9
9
  import "./chunk-TPNHSNNZ.mjs";
10
- import "./chunk-TYYFTZLS.mjs";
10
+ import "./chunk-PALWHFOL.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEZAVSRW6js = require('./chunk-EZAVSRW6.js');
5
+ var _chunkXXRW4LKEjs = require('./chunk-XXRW4LKE.js');
6
6
 
7
7
 
8
8
 
9
- var _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
9
+ var _chunkS35AG7YCjs = require('./chunk-S35AG7YC.js');
10
10
  require('./chunk-VKMAYBQX.js');
11
11
  require('./chunk-Z2WQB55R.js');
12
12
  require('./chunk-MCKGQKYU.js');
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic;
18
+ exports.applicationGenerator = _chunkXXRW4LKEjs.applicationGenerator; exports.applicationSchematic = _chunkXXRW4LKEjs.applicationSchematic; exports.initGenerator = _chunkS35AG7YCjs.initGenerator; exports.initSchematic = _chunkS35AG7YCjs.initSchematic;
@@ -2,14 +2,14 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-C6PTZNDK.mjs";
5
+ } from "./chunk-73RSHCRP.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-UGR2XH36.mjs";
9
+ } from "./chunk-BWV37GOJ.mjs";
10
10
  import "./chunk-SGTAZO2Q.mjs";
11
11
  import "./chunk-TPNHSNNZ.mjs";
12
- import "./chunk-TYYFTZLS.mjs";
12
+ import "./chunk-PALWHFOL.mjs";
13
13
  export {
14
14
  applicationGenerator,
15
15
  applicationSchematic,
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-XO66D74Z.js');
2
- require('./chunk-2F6WSJSH.js');
2
+ require('./chunk-GVXVF7SH.js');
3
3
  require('./chunk-DHBG5ASJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkEZAVSRW6js = require('./chunk-EZAVSRW6.js');
7
+ var _chunkXXRW4LKEjs = require('./chunk-XXRW4LKE.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk4YJ7HOGJjs = require('./chunk-4YJ7HOGJ.js');
11
+ var _chunkS35AG7YCjs = require('./chunk-S35AG7YC.js');
12
12
  require('./chunk-I5PY5AIW.js');
13
13
  require('./chunk-CVGPWUNP.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkMSPE2JA2js = require('./chunk-MSPE2JA2.js');
17
+ var _chunk2A2OE6L4js = require('./chunk-2A2OE6L4.js');
18
18
  require('./chunk-QBD2OGUY.js');
19
19
  require('./chunk-J5JJZJO5.js');
20
20
 
@@ -156,4 +156,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
156
156
 
157
157
 
158
158
 
159
- exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic; exports.name = name; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
159
+ exports.applicationGenerator = _chunkXXRW4LKEjs.applicationGenerator; exports.applicationSchematic = _chunkXXRW4LKEjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunk2A2OE6L4js.getInternalDependencies; exports.initGenerator = _chunkS35AG7YCjs.initGenerator; exports.initSchematic = _chunkS35AG7YCjs.initSchematic; exports.name = name; exports.uploadFile = _chunk2A2OE6L4js.uploadFile;
package/dist/index.mjs CHANGED
@@ -1,29 +1,29 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-742YXRS7.mjs";
2
+ import "./chunk-GMB6XFTP.mjs";
3
3
  import "./chunk-3J7KBHMJ.mjs";
4
4
  import {
5
5
  applicationGenerator,
6
6
  applicationSchematic
7
- } from "./chunk-C6PTZNDK.mjs";
7
+ } from "./chunk-73RSHCRP.mjs";
8
8
  import {
9
9
  initGenerator,
10
10
  initSchematic
11
- } from "./chunk-UGR2XH36.mjs";
11
+ } from "./chunk-BWV37GOJ.mjs";
12
12
  import "./chunk-4DD7MPRF.mjs";
13
13
  import "./chunk-7Z5PILRU.mjs";
14
14
  import {
15
15
  getInternalDependencies,
16
16
  uploadFile
17
- } from "./chunk-3UGLZEZF.mjs";
18
- import "./chunk-F6FHDDUJ.mjs";
19
- import "./chunk-FWIGE74R.mjs";
17
+ } from "./chunk-M2N5CL5V.mjs";
18
+ import "./chunk-WFPKBGV3.mjs";
19
+ import "./chunk-NFW7NCBF.mjs";
20
20
  import {
21
21
  ProjectTagConstants,
22
22
  addProjectTag
23
23
  } from "./chunk-3MAI3FU2.mjs";
24
24
  import "./chunk-SGTAZO2Q.mjs";
25
25
  import "./chunk-TPNHSNNZ.mjs";
26
- import "./chunk-TYYFTZLS.mjs";
26
+ import "./chunk-PALWHFOL.mjs";
27
27
 
28
28
  // src/plugins/index.ts
29
29
  import {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-F6FHDDUJ.mjs";
4
- import "../../../chunk-FWIGE74R.mjs";
3
+ } from "../../../chunk-WFPKBGV3.mjs";
4
+ import "../../../chunk-NFW7NCBF.mjs";
5
5
  import "../../../chunk-3MAI3FU2.mjs";
6
6
  import "../../../chunk-SGTAZO2Q.mjs";
7
7
  import "../../../chunk-TPNHSNNZ.mjs";
8
- import "../../../chunk-TYYFTZLS.mjs";
8
+ import "../../../chunk-PALWHFOL.mjs";
9
9
  export {
10
10
  runExecutor as default
11
11
  };
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2F6WSJSHjs = require('../../../chunk-2F6WSJSH.js');
3
+ var _chunkGVXVF7SHjs = require('../../../chunk-GVXVF7SH.js');
4
4
  require('../../../chunk-I5PY5AIW.js');
5
- require('../../../chunk-MSPE2JA2.js');
5
+ require('../../../chunk-2A2OE6L4.js');
6
6
  require('../../../chunk-N7FW365Q.js');
7
7
  require('../../../chunk-VKMAYBQX.js');
8
8
  require('../../../chunk-Z2WQB55R.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
10
10
 
11
11
 
12
- exports.default = _chunk2F6WSJSHjs.runExecutor;
12
+ exports.default = _chunkGVXVF7SHjs.runExecutor;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-742YXRS7.mjs";
3
+ } from "../../../chunk-GMB6XFTP.mjs";
4
4
  import "../../../chunk-4DD7MPRF.mjs";
5
- import "../../../chunk-3UGLZEZF.mjs";
5
+ import "../../../chunk-M2N5CL5V.mjs";
6
6
  import "../../../chunk-3MAI3FU2.mjs";
7
7
  import "../../../chunk-SGTAZO2Q.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
9
- import "../../../chunk-TYYFTZLS.mjs";
9
+ import "../../../chunk-PALWHFOL.mjs";
10
10
  export {
11
11
  runExecutor as default
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-FWIGE74R.mjs";
3
+ } from "../../../chunk-NFW7NCBF.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-3MAI3FU2.mjs";
@@ -8,7 +8,7 @@ import "../../../chunk-SGTAZO2Q.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
9
9
  import {
10
10
  __require
11
- } from "../../../chunk-TYYFTZLS.mjs";
11
+ } from "../../../chunk-PALWHFOL.mjs";
12
12
 
13
13
  // src/executors/serve/executor.ts
14
14
  import { createAsyncIterable } from "@nx/devkit/src/utils/async-iterable";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4YJ7HOGJjs = require('../../../chunk-4YJ7HOGJ.js');
5
+ var _chunkS35AG7YCjs = require('../../../chunk-S35AG7YC.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunk4YJ7HOGJjs.generator_default; exports.initGenerator = _chunk4YJ7HOGJjs.initGenerator; exports.initSchematic = _chunk4YJ7HOGJjs.initSchematic;
11
+ exports.default = _chunkS35AG7YCjs.generator_default; exports.initGenerator = _chunkS35AG7YCjs.initGenerator; exports.initSchematic = _chunkS35AG7YCjs.initSchematic;
@@ -2,8 +2,8 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-UGR2XH36.mjs";
6
- import "../../../chunk-TYYFTZLS.mjs";
5
+ } from "../../../chunk-BWV37GOJ.mjs";
6
+ import "../../../chunk-PALWHFOL.mjs";
7
7
  export {
8
8
  generator_default as default,
9
9
  initGenerator,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEZAVSRW6js = require('../../../chunk-EZAVSRW6.js');
6
- require('../../../chunk-4YJ7HOGJ.js');
5
+ var _chunkXXRW4LKEjs = require('../../../chunk-XXRW4LKE.js');
6
+ require('../../../chunk-S35AG7YC.js');
7
7
  require('../../../chunk-VKMAYBQX.js');
8
8
  require('../../../chunk-Z2WQB55R.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkEZAVSRW6js.applicationGenerator; exports.applicationSchematic = _chunkEZAVSRW6js.applicationSchematic; exports.default = _chunkEZAVSRW6js.generator_default;
14
+ exports.applicationGenerator = _chunkXXRW4LKEjs.applicationGenerator; exports.applicationSchematic = _chunkXXRW4LKEjs.applicationSchematic; exports.default = _chunkXXRW4LKEjs.generator_default;
@@ -2,11 +2,11 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-C6PTZNDK.mjs";
6
- import "../../../chunk-UGR2XH36.mjs";
5
+ } from "../../../chunk-73RSHCRP.mjs";
6
+ import "../../../chunk-BWV37GOJ.mjs";
7
7
  import "../../../chunk-SGTAZO2Q.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
9
- import "../../../chunk-TYYFTZLS.mjs";
9
+ import "../../../chunk-PALWHFOL.mjs";
10
10
  export {
11
11
  applicationGenerator,
12
12
  applicationSchematic,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createHttpHandler
3
3
  } from "../../chunk-4DD7MPRF.mjs";
4
- import "../../chunk-TYYFTZLS.mjs";
4
+ import "../../chunk-PALWHFOL.mjs";
5
5
  export {
6
6
  createHttpHandler
7
7
  };
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMSPE2JA2js = require('../../chunk-MSPE2JA2.js');
5
+ var _chunk2A2OE6L4js = require('../../chunk-2A2OE6L4.js');
6
6
  require('../../chunk-Z2WQB55R.js');
7
7
  require('../../chunk-MCKGQKYU.js');
8
8
 
9
9
 
10
10
 
11
- exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
11
+ exports.getInternalDependencies = _chunk2A2OE6L4js.getInternalDependencies; exports.uploadFile = _chunk2A2OE6L4js.uploadFile;
@@ -2,9 +2,9 @@ import "../../chunk-7Z5PILRU.mjs";
2
2
  import {
3
3
  getInternalDependencies,
4
4
  uploadFile
5
- } from "../../chunk-3UGLZEZF.mjs";
5
+ } from "../../chunk-M2N5CL5V.mjs";
6
6
  import "../../chunk-TPNHSNNZ.mjs";
7
- import "../../chunk-TYYFTZLS.mjs";
7
+ import "../../chunk-PALWHFOL.mjs";
8
8
  export {
9
9
  getInternalDependencies,
10
10
  uploadFile
@@ -13,7 +13,7 @@ import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
13
13
  * @param contentType - The MIME type of the file content
14
14
  * @param isDryRun - Whether to perform a dry run without actual upload
15
15
  */
16
- declare function uploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
16
+ declare function uploadFile(client: S3, bucketName: string, bucketPath: string | undefined, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
17
17
  /**
18
18
  * Get internal dependencies of a project from the project graph
19
19
  *
@@ -13,7 +13,7 @@ import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
13
13
  * @param contentType - The MIME type of the file content
14
14
  * @param isDryRun - Whether to perform a dry run without actual upload
15
15
  */
16
- declare function uploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
16
+ declare function uploadFile(client: S3, bucketName: string, bucketPath: string | undefined, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
17
17
  /**
18
18
  * Get internal dependencies of a project from the project graph
19
19
  *
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMSPE2JA2js = require('../../chunk-MSPE2JA2.js');
4
+ var _chunk2A2OE6L4js = require('../../chunk-2A2OE6L4.js');
5
5
  require('../../chunk-Z2WQB55R.js');
6
6
  require('../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
- exports.getInternalDependencies = _chunkMSPE2JA2js.getInternalDependencies; exports.uploadFile = _chunkMSPE2JA2js.uploadFile;
10
+ exports.getInternalDependencies = _chunk2A2OE6L4js.getInternalDependencies; exports.uploadFile = _chunk2A2OE6L4js.uploadFile;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  uploadFile
4
- } from "../../chunk-3UGLZEZF.mjs";
4
+ } from "../../chunk-M2N5CL5V.mjs";
5
5
  import "../../chunk-TPNHSNNZ.mjs";
6
- import "../../chunk-TYYFTZLS.mjs";
6
+ import "../../chunk-PALWHFOL.mjs";
7
7
  export {
8
8
  getInternalDependencies,
9
9
  uploadFile
@@ -1,4 +1,4 @@
1
- import "./chunk-TYYFTZLS.mjs";
1
+ import "./chunk-PALWHFOL.mjs";
2
2
 
3
3
  // tsup.config.ts
4
4
  import { defineConfig } from "tsup";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.15",
3
+ "version": "0.71.17",
4
4
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -113,14 +113,14 @@
113
113
  "sullivanpj"
114
114
  ],
115
115
  "peerDependencies": {
116
- "@nx/devkit": "^22.1.3",
117
- "@nx/js": "^22.1.3",
118
- "@nx/node": "^22.1.3",
119
- "@nx/web": "^22.1.3",
120
- "@storm-software/config": "1.134.63",
121
- "@storm-software/config-tools": "1.188.63",
122
- "@storm-software/workspace-tools": "1.294.7",
123
- "nx": "^22.1.3",
116
+ "@nx/devkit": "^22.2.3",
117
+ "@nx/js": "^22.2.3",
118
+ "@nx/node": "^22.2.3",
119
+ "@nx/web": "^22.2.3",
120
+ "@storm-software/config": "1.134.65",
121
+ "@storm-software/config-tools": "1.188.65",
122
+ "@storm-software/workspace-tools": "1.294.9",
123
+ "nx": "^22.2.3",
124
124
  "tsup": "8.4.0",
125
125
  "wrangler": ">=3.58.0"
126
126
  },
@@ -133,24 +133,24 @@
133
133
  "wrangler": { "optional": false }
134
134
  },
135
135
  "dependencies": {
136
- "@aws-sdk/client-s3": "^3.946.0",
136
+ "@aws-sdk/client-s3": "^3.948.0",
137
137
  "@smithy/node-http-handler": "^4.4.5",
138
138
  "defu": "6.1.4",
139
139
  "glob": "^11.1.0",
140
140
  "mime-types": "^3.0.2"
141
141
  },
142
142
  "devDependencies": {
143
- "@nx/devkit": "^22.1.3",
144
- "@nx/node": "^22.1.3",
145
- "@nx/web": "^22.1.3",
146
- "@nx/webpack": "^22.1.3",
147
- "nx": "^22.1.3",
143
+ "@nx/devkit": "^22.2.3",
144
+ "@nx/node": "^22.2.3",
145
+ "@nx/web": "^22.2.3",
146
+ "@nx/webpack": "^22.2.3",
147
+ "nx": "^22.2.3",
148
148
  "tsup": "8.4.0",
149
149
  "untyped": "^2.0.0",
150
- "wrangler": "^4.53.0"
150
+ "wrangler": "^4.54.0"
151
151
  },
152
152
  "publishConfig": { "access": "public" },
153
153
  "executors": "./executors.json",
154
154
  "generators": "./generators.json",
155
- "gitHead": "ecf92fdae5fd9ab519c263e6289345824e7dd61a"
155
+ "gitHead": "e40e62c092215dbefadac700330498bb7ed1f9fd"
156
156
  }