@storm-software/cloudflare-tools 0.71.128 → 0.71.129

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 CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.128](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.128) (04/14/2026)
6
+
7
+ ### Documentation
8
+
9
+ - **monorepo:** Update workspace's `README.md` files ([7d41882b7](https://github.com/storm-software/storm-ops/commit/7d41882b7))
10
+
11
+ ### Updated Dependencies
12
+
13
+ - Updated **workspace-tools** to **v1.295.54**
14
+
5
15
  ## [0.71.127](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.127) (04/14/2026)
6
16
 
7
17
  ### Miscellaneous
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.126-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.128-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 -->
@@ -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.127",
10
+ version: "0.71.128",
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: [
@@ -158,7 +158,7 @@ var require_package = __commonJS({
158
158
  "@nx/web": "catalog:",
159
159
  "@storm-software/config": "1.137.31",
160
160
  "@storm-software/config-tools": "1.189.77",
161
- "@storm-software/workspace-tools": "1.295.53",
161
+ "@storm-software/workspace-tools": "1.295.54",
162
162
  nx: "catalog:",
163
163
  tsup: "catalog:",
164
164
  wrangler: ">=3.58.0"
@@ -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.127",
10
+ version: "0.71.128",
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: [
@@ -158,7 +158,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
158
158
  "@nx/web": "catalog:",
159
159
  "@storm-software/config": "1.137.31",
160
160
  "@storm-software/config-tools": "1.189.77",
161
- "@storm-software/workspace-tools": "1.295.53",
161
+ "@storm-software/workspace-tools": "1.295.54",
162
162
  nx: "catalog:",
163
163
  tsup: "catalog:",
164
164
  wrangler: ">=3.58.0"
@@ -244,7 +244,9 @@ var buildCargoCommand = (baseCommand, options, context) => {
244
244
  args.push(`+${options.toolchain}`);
245
245
  }
246
246
  args.push(baseCommand);
247
- for (const [key, value] of Object.entries(options)) {
247
+ for (const [key, value] of Object.entries(options).filter(
248
+ ([key2]) => key2 && key2 !== "_"
249
+ )) {
248
250
  if (key === "toolchain" || key === "release" || INVALID_CARGO_ARGS.includes(key)) {
249
251
  continue;
250
252
  }
@@ -254,7 +256,7 @@ var buildCargoCommand = (baseCommand, options, context) => {
254
256
  }
255
257
  } else if (Array.isArray(value)) {
256
258
  for (const item of value) {
257
- args.push(`--${key}`, item);
259
+ args.push(`--${key}`, String(item));
258
260
  }
259
261
  } else {
260
262
  args.push(`--${key}`, String(value));
@@ -303,7 +305,7 @@ function cargoCommandSync(args = "", options) {
303
305
  };
304
306
  } catch (e) {
305
307
  return {
306
- output: e,
308
+ output: e.message,
307
309
  success: false
308
310
  };
309
311
  }
@@ -247,7 +247,9 @@ var buildCargoCommand = (baseCommand, options, context) => {
247
247
  args.push(`+${options.toolchain}`);
248
248
  }
249
249
  args.push(baseCommand);
250
- for (const [key, value] of Object.entries(options)) {
250
+ for (const [key, value] of Object.entries(options).filter(
251
+ ([key2]) => key2 && key2 !== "_"
252
+ )) {
251
253
  if (key === "toolchain" || key === "release" || INVALID_CARGO_ARGS.includes(key)) {
252
254
  continue;
253
255
  }
@@ -257,7 +259,7 @@ var buildCargoCommand = (baseCommand, options, context) => {
257
259
  }
258
260
  } else if (Array.isArray(value)) {
259
261
  for (const item of value) {
260
- args.push(`--${key}`, item);
262
+ args.push(`--${key}`, String(item));
261
263
  }
262
264
  } else {
263
265
  args.push(`--${key}`, String(value));
@@ -306,7 +308,7 @@ function cargoCommandSync(args = "", options) {
306
308
  };
307
309
  } catch (e) {
308
310
  return {
309
- output: e,
311
+ output: e.message,
310
312
  success: false
311
313
  };
312
314
  }
@@ -1,19 +1,19 @@
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 _chunk7BUGSZXFjs = require('./chunk-7BUGSZXF.js');
3
4
 
4
- var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
5
5
 
6
6
 
7
+ var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
7
8
 
8
9
 
9
10
 
10
11
 
11
12
 
12
13
 
13
- var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
14
14
 
15
15
 
16
- var _chunkR4V44O2Fjs = require('./chunk-R4V44O2F.js');
16
+ var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
17
17
 
18
18
  // src/generators/worker/generator.ts
19
19
 
@@ -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 _chunkR4V44O2Fjs.generator_default.call(void 0, tree, {
73
+ await _chunk7BUGSZXFjs.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -1,3 +1,6 @@
1
+ import {
2
+ generator_default
3
+ } from "./chunk-76H47SWR.mjs";
1
4
  import {
2
5
  findWorkspaceRoot,
3
6
  getConfig
@@ -11,9 +14,6 @@ import {
11
14
  writeInfo,
12
15
  writeTrace
13
16
  } from "./chunk-ZDABHOZ2.mjs";
14
- import {
15
- generator_default
16
- } from "./chunk-6ZJP5W4Q.mjs";
17
17
  import {
18
18
  __dirname
19
19
  } from "./chunk-HS6L6NAM.mjs";
package/dist/executors.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
- require('./chunk-FKBCEMBX.js');
3
- require('./chunk-KUGEZPUO.js');
4
- require('./chunk-SIS5VQAU.js');
5
2
  require('./chunk-QBD2OGUY.js');
6
- require('./chunk-VKHDTPKS.js');
3
+ require('./chunk-OZ7D2VVK.js');
4
+ require('./chunk-SIS5VQAU.js');
5
+ require('./chunk-ALA5P6Y4.js');
7
6
  require('./chunk-N7FW365Q.js');
8
7
  require('./chunk-OEP2XBU4.js');
9
8
  require('./chunk-RIBK362W.js');
9
+ require('./chunk-KUGEZPUO.js');
10
10
  require('./chunk-MCKGQKYU.js');
@@ -1,10 +1,10 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-B6RWRHGX.mjs";
3
- import "./chunk-SWYYMID7.mjs";
4
- import "./chunk-M3VAGNJQ.mjs";
5
2
  import "./chunk-R5VXASXL.mjs";
6
- import "./chunk-IH75MSUE.mjs";
3
+ import "./chunk-OHTWRQBA.mjs";
4
+ import "./chunk-M3VAGNJQ.mjs";
5
+ import "./chunk-IHY5UHHO.mjs";
7
6
  import "./chunk-3MAI3FU2.mjs";
8
7
  import "./chunk-5QM4JUN3.mjs";
9
8
  import "./chunk-ZDABHOZ2.mjs";
9
+ import "./chunk-SWYYMID7.mjs";
10
10
  import "./chunk-HS6L6NAM.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAVYOABJJjs = require('./chunk-AVYOABJJ.js');
5
+ var _chunkJHW56Y57js = require('./chunk-JHW56Y57.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkR4V44O2Fjs = require('./chunk-R4V44O2F.js');
9
+ var _chunk7BUGSZXFjs = require('./chunk-7BUGSZXF.js');
10
10
  require('./chunk-OEP2XBU4.js');
11
11
  require('./chunk-RIBK362W.js');
12
12
  require('./chunk-MCKGQKYU.js');
@@ -15,4 +15,4 @@ require('./chunk-MCKGQKYU.js');
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkAVYOABJJjs.applicationGenerator; exports.applicationSchematic = _chunkAVYOABJJjs.applicationSchematic; exports.initGenerator = _chunkR4V44O2Fjs.initGenerator; exports.initSchematic = _chunkR4V44O2Fjs.initSchematic;
18
+ exports.applicationGenerator = _chunkJHW56Y57js.applicationGenerator; exports.applicationSchematic = _chunkJHW56Y57js.applicationSchematic; exports.initGenerator = _chunk7BUGSZXFjs.initGenerator; exports.initSchematic = _chunk7BUGSZXFjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-FBBHHRSC.mjs";
5
+ } from "./chunk-YIDEGEJ2.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-6ZJP5W4Q.mjs";
9
+ } from "./chunk-76H47SWR.mjs";
10
10
  import "./chunk-5QM4JUN3.mjs";
11
11
  import "./chunk-ZDABHOZ2.mjs";
12
12
  import "./chunk-HS6L6NAM.mjs";
package/dist/index.js CHANGED
@@ -1,30 +1,30 @@
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-FKBCEMBX.js');
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }require('./chunk-CVGPWUNP.js');
2
+ require('./chunk-XO66D74Z.js');
3
3
  require('./chunk-DHBG5ASJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkAVYOABJJjs = require('./chunk-AVYOABJJ.js');
7
+ var _chunkJHW56Y57js = require('./chunk-JHW56Y57.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkR4V44O2Fjs = require('./chunk-R4V44O2F.js');
12
- require('./chunk-KUGEZPUO.js');
13
- require('./chunk-CVGPWUNP.js');
11
+ var _chunk7BUGSZXFjs = require('./chunk-7BUGSZXF.js');
12
+ require('./chunk-QBD2OGUY.js');
13
+ require('./chunk-OZ7D2VVK.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
19
  var _chunkSIS5VQAUjs = require('./chunk-SIS5VQAU.js');
20
- require('./chunk-QBD2OGUY.js');
21
- require('./chunk-VKHDTPKS.js');
20
+ require('./chunk-ALA5P6Y4.js');
22
21
 
23
22
 
24
23
 
25
24
  var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
26
25
  require('./chunk-OEP2XBU4.js');
27
26
  require('./chunk-RIBK362W.js');
27
+ require('./chunk-KUGEZPUO.js');
28
28
  require('./chunk-MCKGQKYU.js');
29
29
 
30
30
  // src/plugins/index.ts
@@ -160,4 +160,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
160
160
 
161
161
 
162
162
 
163
- exports.applicationGenerator = _chunkAVYOABJJjs.applicationGenerator; exports.applicationSchematic = _chunkAVYOABJJjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getEncoding = _chunkSIS5VQAUjs.getEncoding; exports.getInternalDependencies = _chunkSIS5VQAUjs.getInternalDependencies; exports.initGenerator = _chunkR4V44O2Fjs.initGenerator; exports.initSchematic = _chunkR4V44O2Fjs.initSchematic; exports.isTextFile = _chunkSIS5VQAUjs.isTextFile; exports.name = name; exports.uploadFile = _chunkSIS5VQAUjs.uploadFile;
163
+ exports.applicationGenerator = _chunkJHW56Y57js.applicationGenerator; exports.applicationSchematic = _chunkJHW56Y57js.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getEncoding = _chunkSIS5VQAUjs.getEncoding; exports.getInternalDependencies = _chunkSIS5VQAUjs.getInternalDependencies; exports.initGenerator = _chunk7BUGSZXFjs.initGenerator; exports.initSchematic = _chunk7BUGSZXFjs.initSchematic; exports.isTextFile = _chunkSIS5VQAUjs.isTextFile; exports.name = name; exports.uploadFile = _chunkSIS5VQAUjs.uploadFile;
package/dist/index.mjs CHANGED
@@ -1,30 +1,30 @@
1
+ import "./chunk-7Z5PILRU.mjs";
1
2
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-B6RWRHGX.mjs";
3
3
  import "./chunk-3J7KBHMJ.mjs";
4
4
  import {
5
5
  applicationGenerator,
6
6
  applicationSchematic
7
- } from "./chunk-FBBHHRSC.mjs";
7
+ } from "./chunk-YIDEGEJ2.mjs";
8
8
  import {
9
9
  initGenerator,
10
10
  initSchematic
11
- } from "./chunk-6ZJP5W4Q.mjs";
12
- import "./chunk-SWYYMID7.mjs";
13
- import "./chunk-7Z5PILRU.mjs";
11
+ } from "./chunk-76H47SWR.mjs";
12
+ import "./chunk-R5VXASXL.mjs";
13
+ import "./chunk-OHTWRQBA.mjs";
14
14
  import {
15
15
  getEncoding,
16
16
  getInternalDependencies,
17
17
  isTextFile,
18
18
  uploadFile
19
19
  } from "./chunk-M3VAGNJQ.mjs";
20
- import "./chunk-R5VXASXL.mjs";
21
- import "./chunk-IH75MSUE.mjs";
20
+ import "./chunk-IHY5UHHO.mjs";
22
21
  import {
23
22
  ProjectTagConstants,
24
23
  addProjectTag
25
24
  } from "./chunk-3MAI3FU2.mjs";
26
25
  import "./chunk-5QM4JUN3.mjs";
27
26
  import "./chunk-ZDABHOZ2.mjs";
27
+ import "./chunk-SWYYMID7.mjs";
28
28
  import "./chunk-HS6L6NAM.mjs";
29
29
 
30
30
  // src/plugins/index.ts
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkQBD2OGUYjs = require('../../../chunk-QBD2OGUY.js');
4
- require('../../../chunk-VKHDTPKS.js');
4
+ require('../../../chunk-ALA5P6Y4.js');
5
5
  require('../../../chunk-N7FW365Q.js');
6
6
  require('../../../chunk-OEP2XBU4.js');
7
7
  require('../../../chunk-RIBK362W.js');
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-R5VXASXL.mjs";
4
- import "../../../chunk-IH75MSUE.mjs";
4
+ import "../../../chunk-IHY5UHHO.mjs";
5
5
  import "../../../chunk-3MAI3FU2.mjs";
6
6
  import "../../../chunk-5QM4JUN3.mjs";
7
7
  import "../../../chunk-ZDABHOZ2.mjs";
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkFKBCEMBXjs = require('../../../chunk-FKBCEMBX.js');
4
- require('../../../chunk-KUGEZPUO.js');
3
+ var _chunkOZ7D2VVKjs = require('../../../chunk-OZ7D2VVK.js');
5
4
  require('../../../chunk-SIS5VQAU.js');
6
5
  require('../../../chunk-N7FW365Q.js');
7
6
  require('../../../chunk-OEP2XBU4.js');
8
7
  require('../../../chunk-RIBK362W.js');
8
+ require('../../../chunk-KUGEZPUO.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
10
10
 
11
11
 
12
- exports.default = _chunkFKBCEMBXjs.runExecutor;
12
+ exports.default = _chunkOZ7D2VVKjs.runExecutor;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-B6RWRHGX.mjs";
4
- import "../../../chunk-SWYYMID7.mjs";
3
+ } from "../../../chunk-OHTWRQBA.mjs";
5
4
  import "../../../chunk-M3VAGNJQ.mjs";
6
5
  import "../../../chunk-3MAI3FU2.mjs";
7
6
  import "../../../chunk-5QM4JUN3.mjs";
8
7
  import "../../../chunk-ZDABHOZ2.mjs";
8
+ import "../../../chunk-SWYYMID7.mjs";
9
9
  import "../../../chunk-HS6L6NAM.mjs";
10
10
  export {
11
11
  runExecutor as default
@@ -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 _chunkVKHDTPKSjs = require('../../../chunk-VKHDTPKS.js');
3
+ var _chunkALA5P6Y4js = require('../../../chunk-ALA5P6Y4.js');
4
4
 
5
5
 
6
6
  var _chunkN7FW365Qjs = require('../../../chunk-N7FW365Q.js');
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context) {
55
55
  success: true
56
56
  };
57
57
  }
58
- var executor_default = _chunkVKHDTPKSjs.withRunExecutor.call(void 0,
58
+ var executor_default = _chunkALA5P6Y4js.withRunExecutor.call(void 0,
59
59
  "Cloudflare Serve executor",
60
60
  serveExecutor,
61
61
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-IH75MSUE.mjs";
3
+ } from "../../../chunk-IHY5UHHO.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-3MAI3FU2.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkR4V44O2Fjs = require('../../../chunk-R4V44O2F.js');
5
+ var _chunk7BUGSZXFjs = require('../../../chunk-7BUGSZXF.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkR4V44O2Fjs.generator_default; exports.initGenerator = _chunkR4V44O2Fjs.initGenerator; exports.initSchematic = _chunkR4V44O2Fjs.initSchematic;
11
+ exports.default = _chunk7BUGSZXFjs.generator_default; exports.initGenerator = _chunk7BUGSZXFjs.initGenerator; exports.initSchematic = _chunk7BUGSZXFjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-6ZJP5W4Q.mjs";
5
+ } from "../../../chunk-76H47SWR.mjs";
6
6
  import "../../../chunk-HS6L6NAM.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkAVYOABJJjs = require('../../../chunk-AVYOABJJ.js');
6
- require('../../../chunk-R4V44O2F.js');
5
+ var _chunkJHW56Y57js = require('../../../chunk-JHW56Y57.js');
6
+ require('../../../chunk-7BUGSZXF.js');
7
7
  require('../../../chunk-OEP2XBU4.js');
8
8
  require('../../../chunk-RIBK362W.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
@@ -11,4 +11,4 @@ require('../../../chunk-MCKGQKYU.js');
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkAVYOABJJjs.applicationGenerator; exports.applicationSchematic = _chunkAVYOABJJjs.applicationSchematic; exports.default = _chunkAVYOABJJjs.generator_default;
14
+ exports.applicationGenerator = _chunkJHW56Y57js.applicationGenerator; exports.applicationSchematic = _chunkJHW56Y57js.applicationSchematic; exports.default = _chunkJHW56Y57js.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-FBBHHRSC.mjs";
6
- import "../../../chunk-6ZJP5W4Q.mjs";
5
+ } from "../../../chunk-YIDEGEJ2.mjs";
6
+ import "../../../chunk-76H47SWR.mjs";
7
7
  import "../../../chunk-5QM4JUN3.mjs";
8
8
  import "../../../chunk-ZDABHOZ2.mjs";
9
9
  import "../../../chunk-HS6L6NAM.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.128",
3
+ "version": "0.71.129",
4
4
  "private": false,
5
5
  "description": "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
6
6
  "keywords": [
@@ -139,7 +139,7 @@
139
139
  "@nx/web": "22.5.1",
140
140
  "@storm-software/config": "1.137.31",
141
141
  "@storm-software/config-tools": "1.189.77",
142
- "@storm-software/workspace-tools": "1.295.53",
142
+ "@storm-software/workspace-tools": "1.295.54",
143
143
  "nx": "22.6.0",
144
144
  "tsup": "8.4.0",
145
145
  "wrangler": ">=3.58.0"
@@ -155,5 +155,5 @@
155
155
  "publishConfig": { "access": "public" },
156
156
  "executors": "./executors.json",
157
157
  "generators": "./generators.json",
158
- "gitHead": "7369ee9b0807eea8d57a8c7f2a4d797c3cbd711c"
158
+ "gitHead": "e41ccf3321407c1ccb6c1a16c4aff7f6172d8b0c"
159
159
  }
@@ -1,266 +0,0 @@
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
-
3
- var _chunkR4V44O2Fjs = require('./chunk-R4V44O2F.js');
4
-
5
-
6
-
7
- var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
- var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
17
-
18
- // src/generators/worker/generator.ts
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
- var _devkit = require('@nx/devkit');
31
- var _projectnameandrootutils = require('@nx/devkit/src/generators/project-name-and-root-utils');
32
- var _node = require('@nx/node');
33
- var _versions = require('@nx/node/src/utils/versions');
34
- var _path = require('path');
35
-
36
- // src/generators/worker/libs/get-account-id.ts
37
- function getAccountId(accountId) {
38
- return `account_id = "${accountId}"`;
39
- }
40
-
41
- // src/generators/worker/libs/vitest-imports.ts
42
- var vitestImports = `import { describe, expect, it, beforeAll, afterAll } from 'vitest';`;
43
-
44
- // src/generators/worker/libs/vitest-script.ts
45
- var vitestScript = `"test": "vitest run"`;
46
-
47
- // src/generators/worker/generator.ts
48
- async function applicationGenerator(tree, schema) {
49
- const stopwatch = _chunkRIBK362Wjs.getStopwatch.call(void 0, "Storm Worker generator");
50
- let config;
51
- try {
52
- const workspaceRoot = _chunkOEP2XBU4js.findWorkspaceRoot.call(void 0, );
53
- config = await _chunkOEP2XBU4js.getConfig.call(void 0, workspaceRoot);
54
- _chunkRIBK362Wjs.writeInfo.call(void 0,
55
- `${_chunkRIBK362Wjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
56
-
57
- `,
58
- config
59
- );
60
- _chunkRIBK362Wjs.writeDebug.call(void 0,
61
- `Loading the Storm Config from environment variables and storm.json file...
62
- - workspaceRoot: ${workspaceRoot}`,
63
- config
64
- );
65
- _chunkRIBK362Wjs.writeTrace.call(void 0,
66
- `Loaded Storm config into env:
67
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
68
- config
69
- );
70
- const options = await normalizeOptions(tree, schema, config);
71
- const tasks = [];
72
- tasks.push(
73
- await _chunkR4V44O2Fjs.generator_default.call(void 0, tree, {
74
- ...options,
75
- skipFormat: true
76
- })
77
- );
78
- tasks.push(
79
- await _node.applicationGenerator.call(void 0, tree, {
80
- ...options,
81
- framework: "none",
82
- skipFormat: true,
83
- unitTestRunner: options.unitTestRunner == "vitest" ? "none" : options.unitTestRunner,
84
- e2eTestRunner: "none",
85
- name: schema.name
86
- })
87
- );
88
- if (options.unitTestRunner === "vitest") {
89
- const { vitestGenerator, createOrEditViteConfig } = _devkit.ensurePackage.call(void 0,
90
- "@nx/vite",
91
- _versions.nxVersion
92
- );
93
- const vitestTask = await vitestGenerator(tree, {
94
- project: options.name,
95
- uiFramework: "none",
96
- coverageProvider: "v8",
97
- skipFormat: true,
98
- testEnvironment: "node"
99
- });
100
- tasks.push(vitestTask);
101
- createOrEditViteConfig(
102
- tree,
103
- {
104
- project: options.name,
105
- includeLib: false,
106
- includeVitest: true,
107
- testEnvironment: "node"
108
- },
109
- true
110
- );
111
- }
112
- addCloudflareFiles(tree, options);
113
- updateTsAppConfig(tree, options);
114
- addTargets(tree, options);
115
- if (options.unitTestRunner === "none") {
116
- removeTestFiles(tree, options);
117
- }
118
- if (!options.skipFormat) {
119
- await _devkit.formatFiles.call(void 0, tree);
120
- }
121
- if (options.template === "hono") {
122
- tasks.push(() => {
123
- const packageJsonPath = _devkit.joinPathFragments.call(void 0,
124
- _nullishCoalesce(options.directory, () => ( "")),
125
- "package.json"
126
- );
127
- if (tree.exists(packageJsonPath)) {
128
- _devkit.updateJson.call(void 0, tree, packageJsonPath, (json) => ({
129
- ...json,
130
- dependencies: {
131
- hono: "4.4.0",
132
- ..._optionalChain([json, 'optionalAccess', _ => _.dependencies])
133
- }
134
- }));
135
- }
136
- });
137
- }
138
- return _devkit.runTasksInSerial.call(void 0, ...tasks);
139
- } catch (error) {
140
- return () => {
141
- _chunkRIBK362Wjs.writeFatal.call(void 0,
142
- "A fatal error occurred while running the generator - the process was forced to terminate",
143
- config
144
- );
145
- _chunkRIBK362Wjs.writeError.call(void 0,
146
- `An exception was thrown in the generator's process
147
- - Details: ${error.message}
148
- - Stacktrace: ${error.stack}`,
149
- config
150
- );
151
- };
152
- } finally {
153
- stopwatch();
154
- }
155
- }
156
- function updateTsAppConfig(tree, options) {
157
- _devkit.updateJson.call(void 0, tree, _path.join.call(void 0, options.appProjectRoot, "tsconfig.app.json"), (json) => {
158
- json.compilerOptions = {
159
- ...json.compilerOptions,
160
- esModuleInterop: true,
161
- target: "es2021",
162
- lib: ["es2021"],
163
- module: "es2022",
164
- moduleResolution: "node",
165
- resolveJsonModule: true,
166
- allowJs: true,
167
- checkJs: false,
168
- noEmit: true,
169
- isolatedModules: true,
170
- allowSyntheticDefaultImports: true,
171
- forceConsistentCasingInFileNames: true,
172
- strict: true,
173
- skipLibCheck: true
174
- };
175
- json.compilerOptions.types = [
176
- ...json.compilerOptions.types,
177
- "@cloudflare/workers-types"
178
- ];
179
- return json;
180
- });
181
- }
182
- function addCloudflareFiles(tree, options) {
183
- tree.delete(_path.join.call(void 0, options.appProjectRoot, "src/main.ts"));
184
- _devkit.generateFiles.call(void 0,
185
- tree,
186
- _path.join.call(void 0, __dirname, "./files/common"),
187
- options.appProjectRoot,
188
- {
189
- ...options,
190
- tmpl: "",
191
- name: options.name,
192
- accountId: options.accountId ? getAccountId(options.accountId) : "",
193
- vitestScript: options.unitTestRunner === "vitest" ? vitestScript : ""
194
- }
195
- );
196
- if (options.template && options.template !== "none") {
197
- _devkit.generateFiles.call(void 0,
198
- tree,
199
- _path.join.call(void 0, __dirname, `./files/${options.template}`),
200
- _path.join.call(void 0, options.appProjectRoot, "src"),
201
- {
202
- ...options,
203
- tmpl: "",
204
- name: options.name,
205
- accountId: options.accountId ? getAccountId(options.accountId) : "",
206
- vitestScript: options.unitTestRunner === "vitest" ? vitestScript : "",
207
- vitestImports: options.unitTestRunner === "vitest" ? vitestImports : ""
208
- }
209
- );
210
- }
211
- }
212
- function addTargets(tree, options) {
213
- try {
214
- const projectConfiguration = _devkit.readProjectConfiguration.call(void 0, tree, options.name);
215
- projectConfiguration.targets = {
216
- ..._nullishCoalesce(projectConfiguration.targets, () => ( {})),
217
- serve: {
218
- executor: "@storm-software/cloudflare-tools:serve",
219
- options: {
220
- port: options.port
221
- }
222
- },
223
- "nx-release-publish": {
224
- executor: "@storm-software/cloudflare-tools:cloudflare-publish"
225
- }
226
- };
227
- if (projectConfiguration.targets.build) {
228
- delete projectConfiguration.targets.build;
229
- }
230
- _devkit.updateProjectConfiguration.call(void 0, tree, options.name, projectConfiguration);
231
- } catch (e) {
232
- console.error(e);
233
- }
234
- }
235
- function removeTestFiles(tree, options) {
236
- tree.delete(_path.join.call(void 0, options.appProjectRoot, "src", "index.test.ts"));
237
- }
238
- async function normalizeOptions(host, options, config) {
239
- const { projectName: appProjectName, projectRoot: appProjectRoot } = await _projectnameandrootutils.determineProjectNameAndRootOptions.call(void 0, host, {
240
- name: options.name,
241
- projectType: "application",
242
- directory: options.directory,
243
- rootProject: options.rootProject
244
- });
245
- options.rootProject = appProjectRoot === ".";
246
- return {
247
- addPlugin: process.env.NX_ADD_PLUGINS !== "false",
248
- accountId: process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
249
- ...options,
250
- name: _devkit.names.call(void 0, appProjectName).fileName,
251
- frontendProject: options.frontendProject ? _devkit.names.call(void 0, options.frontendProject).fileName : void 0,
252
- appProjectRoot,
253
- unitTestRunner: _nullishCoalesce(options.unitTestRunner, () => ( "vitest")),
254
- rootProject: _nullishCoalesce(options.rootProject, () => ( false)),
255
- template: _nullishCoalesce(options.template, () => ( "fetch-handler")),
256
- port: _nullishCoalesce(options.port, () => ( 3e3))
257
- };
258
- }
259
- var generator_default2 = applicationGenerator;
260
- var applicationSchematic = _devkit.convertNxGenerator.call(void 0, applicationGenerator);
261
-
262
-
263
-
264
-
265
-
266
- exports.applicationGenerator = applicationGenerator; exports.generator_default = generator_default2; exports.applicationSchematic = applicationSchematic;
@@ -1,269 +0,0 @@
1
- import {
2
- generator_default
3
- } from "./chunk-6ZJP5W4Q.mjs";
4
- import {
5
- findWorkspaceRoot,
6
- getConfig
7
- } from "./chunk-5QM4JUN3.mjs";
8
- import {
9
- brandIcon,
10
- getStopwatch,
11
- writeDebug,
12
- writeError,
13
- writeFatal,
14
- writeInfo,
15
- writeTrace
16
- } from "./chunk-ZDABHOZ2.mjs";
17
- import {
18
- __dirname
19
- } from "./chunk-HS6L6NAM.mjs";
20
-
21
- // src/generators/worker/generator.ts
22
- import {
23
- convertNxGenerator,
24
- ensurePackage,
25
- formatFiles,
26
- generateFiles,
27
- joinPathFragments,
28
- names,
29
- readProjectConfiguration,
30
- runTasksInSerial,
31
- updateJson,
32
- updateProjectConfiguration
33
- } from "@nx/devkit";
34
- import { determineProjectNameAndRootOptions } from "@nx/devkit/src/generators/project-name-and-root-utils";
35
- import { applicationGenerator as nodeApplicationGenerator } from "@nx/node";
36
- import { nxVersion } from "@nx/node/src/utils/versions";
37
- import { join } from "path";
38
-
39
- // src/generators/worker/libs/get-account-id.ts
40
- function getAccountId(accountId) {
41
- return `account_id = "${accountId}"`;
42
- }
43
-
44
- // src/generators/worker/libs/vitest-imports.ts
45
- var vitestImports = `import { describe, expect, it, beforeAll, afterAll } from 'vitest';`;
46
-
47
- // src/generators/worker/libs/vitest-script.ts
48
- var vitestScript = `"test": "vitest run"`;
49
-
50
- // src/generators/worker/generator.ts
51
- async function applicationGenerator(tree, schema) {
52
- const stopwatch = getStopwatch("Storm Worker generator");
53
- let config;
54
- try {
55
- const workspaceRoot = findWorkspaceRoot();
56
- config = await getConfig(workspaceRoot);
57
- writeInfo(
58
- `${brandIcon(config)} Running the Storm Worker generator...
59
-
60
- `,
61
- config
62
- );
63
- writeDebug(
64
- `Loading the Storm Config from environment variables and storm.json file...
65
- - workspaceRoot: ${workspaceRoot}`,
66
- config
67
- );
68
- writeTrace(
69
- `Loaded Storm config into env:
70
- ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
71
- config
72
- );
73
- const options = await normalizeOptions(tree, schema, config);
74
- const tasks = [];
75
- tasks.push(
76
- await generator_default(tree, {
77
- ...options,
78
- skipFormat: true
79
- })
80
- );
81
- tasks.push(
82
- await nodeApplicationGenerator(tree, {
83
- ...options,
84
- framework: "none",
85
- skipFormat: true,
86
- unitTestRunner: options.unitTestRunner == "vitest" ? "none" : options.unitTestRunner,
87
- e2eTestRunner: "none",
88
- name: schema.name
89
- })
90
- );
91
- if (options.unitTestRunner === "vitest") {
92
- const { vitestGenerator, createOrEditViteConfig } = ensurePackage(
93
- "@nx/vite",
94
- nxVersion
95
- );
96
- const vitestTask = await vitestGenerator(tree, {
97
- project: options.name,
98
- uiFramework: "none",
99
- coverageProvider: "v8",
100
- skipFormat: true,
101
- testEnvironment: "node"
102
- });
103
- tasks.push(vitestTask);
104
- createOrEditViteConfig(
105
- tree,
106
- {
107
- project: options.name,
108
- includeLib: false,
109
- includeVitest: true,
110
- testEnvironment: "node"
111
- },
112
- true
113
- );
114
- }
115
- addCloudflareFiles(tree, options);
116
- updateTsAppConfig(tree, options);
117
- addTargets(tree, options);
118
- if (options.unitTestRunner === "none") {
119
- removeTestFiles(tree, options);
120
- }
121
- if (!options.skipFormat) {
122
- await formatFiles(tree);
123
- }
124
- if (options.template === "hono") {
125
- tasks.push(() => {
126
- const packageJsonPath = joinPathFragments(
127
- options.directory ?? "",
128
- "package.json"
129
- );
130
- if (tree.exists(packageJsonPath)) {
131
- updateJson(tree, packageJsonPath, (json) => ({
132
- ...json,
133
- dependencies: {
134
- hono: "4.4.0",
135
- ...json?.dependencies
136
- }
137
- }));
138
- }
139
- });
140
- }
141
- return runTasksInSerial(...tasks);
142
- } catch (error) {
143
- return () => {
144
- writeFatal(
145
- "A fatal error occurred while running the generator - the process was forced to terminate",
146
- config
147
- );
148
- writeError(
149
- `An exception was thrown in the generator's process
150
- - Details: ${error.message}
151
- - Stacktrace: ${error.stack}`,
152
- config
153
- );
154
- };
155
- } finally {
156
- stopwatch();
157
- }
158
- }
159
- function updateTsAppConfig(tree, options) {
160
- updateJson(tree, join(options.appProjectRoot, "tsconfig.app.json"), (json) => {
161
- json.compilerOptions = {
162
- ...json.compilerOptions,
163
- esModuleInterop: true,
164
- target: "es2021",
165
- lib: ["es2021"],
166
- module: "es2022",
167
- moduleResolution: "node",
168
- resolveJsonModule: true,
169
- allowJs: true,
170
- checkJs: false,
171
- noEmit: true,
172
- isolatedModules: true,
173
- allowSyntheticDefaultImports: true,
174
- forceConsistentCasingInFileNames: true,
175
- strict: true,
176
- skipLibCheck: true
177
- };
178
- json.compilerOptions.types = [
179
- ...json.compilerOptions.types,
180
- "@cloudflare/workers-types"
181
- ];
182
- return json;
183
- });
184
- }
185
- function addCloudflareFiles(tree, options) {
186
- tree.delete(join(options.appProjectRoot, "src/main.ts"));
187
- generateFiles(
188
- tree,
189
- join(__dirname, "./files/common"),
190
- options.appProjectRoot,
191
- {
192
- ...options,
193
- tmpl: "",
194
- name: options.name,
195
- accountId: options.accountId ? getAccountId(options.accountId) : "",
196
- vitestScript: options.unitTestRunner === "vitest" ? vitestScript : ""
197
- }
198
- );
199
- if (options.template && options.template !== "none") {
200
- generateFiles(
201
- tree,
202
- join(__dirname, `./files/${options.template}`),
203
- join(options.appProjectRoot, "src"),
204
- {
205
- ...options,
206
- tmpl: "",
207
- name: options.name,
208
- accountId: options.accountId ? getAccountId(options.accountId) : "",
209
- vitestScript: options.unitTestRunner === "vitest" ? vitestScript : "",
210
- vitestImports: options.unitTestRunner === "vitest" ? vitestImports : ""
211
- }
212
- );
213
- }
214
- }
215
- function addTargets(tree, options) {
216
- try {
217
- const projectConfiguration = readProjectConfiguration(tree, options.name);
218
- projectConfiguration.targets = {
219
- ...projectConfiguration.targets ?? {},
220
- serve: {
221
- executor: "@storm-software/cloudflare-tools:serve",
222
- options: {
223
- port: options.port
224
- }
225
- },
226
- "nx-release-publish": {
227
- executor: "@storm-software/cloudflare-tools:cloudflare-publish"
228
- }
229
- };
230
- if (projectConfiguration.targets.build) {
231
- delete projectConfiguration.targets.build;
232
- }
233
- updateProjectConfiguration(tree, options.name, projectConfiguration);
234
- } catch (e) {
235
- console.error(e);
236
- }
237
- }
238
- function removeTestFiles(tree, options) {
239
- tree.delete(join(options.appProjectRoot, "src", "index.test.ts"));
240
- }
241
- async function normalizeOptions(host, options, config) {
242
- const { projectName: appProjectName, projectRoot: appProjectRoot } = await determineProjectNameAndRootOptions(host, {
243
- name: options.name,
244
- projectType: "application",
245
- directory: options.directory,
246
- rootProject: options.rootProject
247
- });
248
- options.rootProject = appProjectRoot === ".";
249
- return {
250
- addPlugin: process.env.NX_ADD_PLUGINS !== "false",
251
- accountId: process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
252
- ...options,
253
- name: names(appProjectName).fileName,
254
- frontendProject: options.frontendProject ? names(options.frontendProject).fileName : void 0,
255
- appProjectRoot,
256
- unitTestRunner: options.unitTestRunner ?? "vitest",
257
- rootProject: options.rootProject ?? false,
258
- template: options.template ?? "fetch-handler",
259
- port: options.port ?? 3e3
260
- };
261
- }
262
- var generator_default2 = applicationGenerator;
263
- var applicationSchematic = convertNxGenerator(applicationGenerator);
264
-
265
- export {
266
- applicationGenerator,
267
- generator_default2 as generator_default,
268
- applicationSchematic
269
- };
@@ -1,3 +1,8 @@
1
+ import {
2
+ getEncoding,
3
+ getInternalDependencies,
4
+ uploadFile
5
+ } from "./chunk-M3VAGNJQ.mjs";
1
6
  import {
2
7
  createCliOptions,
3
8
  getPackageInfo
@@ -6,14 +11,6 @@ import {
6
11
  findWorkspaceRoot,
7
12
  getConfig
8
13
  } from "./chunk-5QM4JUN3.mjs";
9
- import {
10
- createHttpHandler
11
- } from "./chunk-SWYYMID7.mjs";
12
- import {
13
- getEncoding,
14
- getInternalDependencies,
15
- uploadFile
16
- } from "./chunk-M3VAGNJQ.mjs";
17
14
  import {
18
15
  correctPaths,
19
16
  joinPaths,
@@ -22,6 +19,9 @@ import {
22
19
  writeTrace,
23
20
  writeWarning
24
21
  } from "./chunk-ZDABHOZ2.mjs";
22
+ import {
23
+ createHttpHandler
24
+ } from "./chunk-SWYYMID7.mjs";
25
25
 
26
26
  // src/executors/r2-upload-publish/executor.ts
27
27
  import {
@@ -1,27 +1,27 @@
1
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; }
2
2
 
3
3
 
4
- var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
5
4
 
5
+ var _chunkSIS5VQAUjs = require('./chunk-SIS5VQAU.js');
6
6
 
7
7
 
8
- var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
9
8
 
9
+ var _chunkN7FW365Qjs = require('./chunk-N7FW365Q.js');
10
10
 
11
- var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
12
11
 
13
12
 
13
+ var _chunkOEP2XBU4js = require('./chunk-OEP2XBU4.js');
14
14
 
15
15
 
16
- var _chunkSIS5VQAUjs = require('./chunk-SIS5VQAU.js');
17
16
 
18
17
 
19
18
 
20
19
 
21
20
 
21
+ var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
22
22
 
23
23
 
24
- var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
24
+ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
25
25
 
26
26
  // src/executors/r2-upload-publish/executor.ts
27
27