@storm-software/cloudflare-tools 0.71.2 → 0.71.3

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 (50) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{chunk-7ESZB4KW.mjs → chunk-4EEXR4IG.mjs} +10 -11
  3. package/dist/chunk-5CMG7SUH.mjs +43 -0
  4. package/dist/{chunk-TUJUSMGX.mjs → chunk-AOKOPGTD.mjs} +4 -4
  5. package/dist/{chunk-VHMJXOF4.js → chunk-BAINZIOH.js} +24 -25
  6. package/dist/{chunk-W5IPHIXB.js → chunk-EKIV24FH.js} +165 -165
  7. package/dist/{chunk-NEODNLL5.js → chunk-GPR55JRG.js} +4 -4
  8. package/dist/{chunk-HQWL5NAU.js → chunk-I7SRDPE3.js} +12 -12
  9. package/dist/{chunk-C6B32MBV.mjs → chunk-NYGOCQMG.mjs} +6 -6
  10. package/dist/{chunk-PTTJW7MW.mjs → chunk-SGTAZO2Q.mjs} +3 -171
  11. package/dist/{chunk-6MATO2MJ.mjs → chunk-TPNHSNNZ.mjs} +171 -1
  12. package/dist/{chunk-FFOLWRMA.js → chunk-UAKLE2QO.js} +11 -12
  13. package/dist/{chunk-5YJKWRBZ.mjs → chunk-UXRPB254.mjs} +3 -3
  14. package/dist/{chunk-EQXEFXCV.js → chunk-VKMAYBQX.js} +48 -216
  15. package/dist/{chunk-4BWM53AA.js → chunk-Z2WQB55R.js} +171 -1
  16. package/dist/executors.d.mts +1 -1
  17. package/dist/executors.d.ts +1 -1
  18. package/dist/executors.js +5 -5
  19. package/dist/executors.mjs +5 -5
  20. package/dist/generators.js +5 -5
  21. package/dist/generators.mjs +4 -4
  22. package/dist/index.d.mts +1 -1
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +8 -8
  25. package/dist/index.mjs +7 -7
  26. package/dist/{schema.d-elsO8UQp.d.mts → schema.d-Dcq3Apw7.d.mts} +2 -2
  27. package/dist/{schema.d-elsO8UQp.d.ts → schema.d-Dcq3Apw7.d.ts} +2 -2
  28. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  29. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  30. package/dist/src/executors/r2-upload-publish/executor.d.mts +1 -1
  31. package/dist/src/executors/r2-upload-publish/executor.d.ts +1 -1
  32. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  33. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  34. package/dist/src/executors/r2-upload-publish/schema.d.ts +2 -2
  35. package/dist/src/executors/r2-upload-publish/schema.json +2 -2
  36. package/dist/src/executors/serve/executor.js +4 -4
  37. package/dist/src/executors/serve/executor.mjs +3 -3
  38. package/dist/src/generators/init/generator.js +2 -2
  39. package/dist/src/generators/init/generator.mjs +1 -1
  40. package/dist/src/generators/worker/generator.js +5 -5
  41. package/dist/src/generators/worker/generator.mjs +4 -4
  42. package/dist/src/utils/index.js +3 -3
  43. package/dist/src/utils/index.mjs +2 -2
  44. package/dist/src/utils/r2-bucket-helpers.d.mts +21 -2
  45. package/dist/src/utils/r2-bucket-helpers.d.ts +21 -2
  46. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  47. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  48. package/docs/api/executors/r2-upload-publish/schema.md +2 -2
  49. package/package.json +5 -5
  50. package/dist/chunk-5N2NVDKX.mjs +0 -44
@@ -1,9 +1,9 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-XDQBFBX4.mjs";
3
- import "./chunk-C6B32MBV.mjs";
4
- import "./chunk-7ESZB4KW.mjs";
5
- import "./chunk-5N2NVDKX.mjs";
3
+ import "./chunk-NYGOCQMG.mjs";
4
+ import "./chunk-4EEXR4IG.mjs";
5
+ import "./chunk-5CMG7SUH.mjs";
6
6
  import "./chunk-PH3DHY4Q.mjs";
7
- import "./chunk-PTTJW7MW.mjs";
8
- import "./chunk-6MATO2MJ.mjs";
7
+ import "./chunk-SGTAZO2Q.mjs";
8
+ import "./chunk-TPNHSNNZ.mjs";
9
9
  import "./chunk-QN6OKPMU.mjs";
@@ -2,17 +2,17 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHQWL5NAUjs = require('./chunk-HQWL5NAU.js');
5
+ var _chunkI7SRDPE3js = require('./chunk-I7SRDPE3.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkNEODNLL5js = require('./chunk-NEODNLL5.js');
10
- require('./chunk-EQXEFXCV.js');
11
- require('./chunk-4BWM53AA.js');
9
+ var _chunkGPR55JRGjs = require('./chunk-GPR55JRG.js');
10
+ require('./chunk-VKMAYBQX.js');
11
+ require('./chunk-Z2WQB55R.js');
12
12
  require('./chunk-MCKGQKYU.js');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunkHQWL5NAUjs.applicationGenerator; exports.applicationSchematic = _chunkHQWL5NAUjs.applicationSchematic; exports.initGenerator = _chunkNEODNLL5js.initGenerator; exports.initSchematic = _chunkNEODNLL5js.initSchematic;
18
+ exports.applicationGenerator = _chunkI7SRDPE3js.applicationGenerator; exports.applicationSchematic = _chunkI7SRDPE3js.applicationSchematic; exports.initGenerator = _chunkGPR55JRGjs.initGenerator; exports.initSchematic = _chunkGPR55JRGjs.initSchematic;
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-5YJKWRBZ.mjs";
5
+ } from "./chunk-UXRPB254.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-TUJUSMGX.mjs";
10
- import "./chunk-PTTJW7MW.mjs";
11
- import "./chunk-6MATO2MJ.mjs";
9
+ } from "./chunk-AOKOPGTD.mjs";
10
+ import "./chunk-SGTAZO2Q.mjs";
11
+ import "./chunk-TPNHSNNZ.mjs";
12
12
  import "./chunk-QN6OKPMU.mjs";
13
13
  export {
14
14
  applicationGenerator,
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.mjs';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.mjs';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-Dcq3Apw7.mjs';
3
3
  export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.mjs';
4
4
  export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.mjs';
5
5
  import { CreateNodesV2 } from '@nx/devkit';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { C as CloudflarePublishExecutorSchema } from './schema.d-DgA16PUG.js';
2
- export { R as R2UploadPublishExecutorSchema } from './schema.d-elsO8UQp.js';
2
+ export { R as R2UploadPublishExecutorSchema } from './schema.d-Dcq3Apw7.js';
3
3
  export { I as InitGeneratorSchema, i as initGenerator, a as initSchematic } from './generator-DJ1RuHyR.js';
4
4
  export { W as WorkerGeneratorSchema, a as applicationGenerator, b as applicationSchematic } from './generator-DW-9W9Fk.js';
5
5
  import { CreateNodesV2 } from '@nx/devkit';
package/dist/index.js CHANGED
@@ -3,25 +3,25 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunkHQWL5NAUjs = require('./chunk-HQWL5NAU.js');
6
+ var _chunkI7SRDPE3js = require('./chunk-I7SRDPE3.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkNEODNLL5js = require('./chunk-NEODNLL5.js');
10
+ var _chunkGPR55JRGjs = require('./chunk-GPR55JRG.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-IRORGRVZ.js');
13
- require('./chunk-W5IPHIXB.js');
14
- require('./chunk-VHMJXOF4.js');
13
+ require('./chunk-EKIV24FH.js');
14
+ require('./chunk-BAINZIOH.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkFFOLWRMAjs = require('./chunk-FFOLWRMA.js');
18
+ var _chunkUAKLE2QOjs = require('./chunk-UAKLE2QO.js');
19
19
 
20
20
 
21
21
 
22
22
  var _chunkNU34IEWNjs = require('./chunk-NU34IEWN.js');
23
- require('./chunk-EQXEFXCV.js');
24
- require('./chunk-4BWM53AA.js');
23
+ require('./chunk-VKMAYBQX.js');
24
+ require('./chunk-Z2WQB55R.js');
25
25
  require('./chunk-MCKGQKYU.js');
26
26
 
27
27
  // src/plugins/index.ts
@@ -155,4 +155,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
155
155
 
156
156
 
157
157
 
158
- exports.applicationGenerator = _chunkHQWL5NAUjs.applicationGenerator; exports.applicationSchematic = _chunkHQWL5NAUjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkFFOLWRMAjs.getInternalDependencies; exports.initGenerator = _chunkNEODNLL5js.initGenerator; exports.initSchematic = _chunkNEODNLL5js.initSchematic; exports.name = name; exports.r2UploadFile = _chunkFFOLWRMAjs.r2UploadFile;
158
+ exports.applicationGenerator = _chunkI7SRDPE3js.applicationGenerator; exports.applicationSchematic = _chunkI7SRDPE3js.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.initGenerator = _chunkGPR55JRGjs.initGenerator; exports.initSchematic = _chunkGPR55JRGjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,25 +3,25 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-5YJKWRBZ.mjs";
6
+ } from "./chunk-UXRPB254.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-TUJUSMGX.mjs";
10
+ } from "./chunk-AOKOPGTD.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-XDQBFBX4.mjs";
13
- import "./chunk-C6B32MBV.mjs";
14
- import "./chunk-7ESZB4KW.mjs";
13
+ import "./chunk-NYGOCQMG.mjs";
14
+ import "./chunk-4EEXR4IG.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
18
- } from "./chunk-5N2NVDKX.mjs";
18
+ } from "./chunk-5CMG7SUH.mjs";
19
19
  import {
20
20
  ProjectTagConstants,
21
21
  addProjectTag
22
22
  } from "./chunk-PH3DHY4Q.mjs";
23
- import "./chunk-PTTJW7MW.mjs";
24
- import "./chunk-6MATO2MJ.mjs";
23
+ import "./chunk-SGTAZO2Q.mjs";
24
+ import "./chunk-TPNHSNNZ.mjs";
25
25
  import "./chunk-QN6OKPMU.mjs";
26
26
 
27
27
  // src/plugins/index.ts
@@ -3,9 +3,9 @@
3
3
 
4
4
  interface R2UploadPublishExecutorSchema {
5
5
  /**
6
- * Upload Files path
6
+ * Local Uploads File Path
7
7
  *
8
- * The path to the files to upload
8
+ * The base path to the files that will be uploaded to the R2 bucket
9
9
  *
10
10
  *
11
11
  * @format path
@@ -3,9 +3,9 @@
3
3
 
4
4
  interface R2UploadPublishExecutorSchema {
5
5
  /**
6
- * Upload Files path
6
+ * Local Uploads File Path
7
7
  *
8
- * The path to the files to upload
8
+ * The base path to the files that will be uploaded to the R2 bucket
9
9
  *
10
10
  *
11
11
  * @format path
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkIRORGRVZjs = require('../../../chunk-IRORGRVZ.js');
4
- require('../../../chunk-W5IPHIXB.js');
4
+ require('../../../chunk-EKIV24FH.js');
5
5
  require('../../../chunk-NU34IEWN.js');
6
- require('../../../chunk-EQXEFXCV.js');
7
- require('../../../chunk-4BWM53AA.js');
6
+ require('../../../chunk-VKMAYBQX.js');
7
+ require('../../../chunk-Z2WQB55R.js');
8
8
  require('../../../chunk-MCKGQKYU.js');
9
9
 
10
10
 
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
3
  } from "../../../chunk-XDQBFBX4.mjs";
4
- import "../../../chunk-C6B32MBV.mjs";
4
+ import "../../../chunk-NYGOCQMG.mjs";
5
5
  import "../../../chunk-PH3DHY4Q.mjs";
6
- import "../../../chunk-PTTJW7MW.mjs";
7
- import "../../../chunk-6MATO2MJ.mjs";
6
+ import "../../../chunk-SGTAZO2Q.mjs";
7
+ import "../../../chunk-TPNHSNNZ.mjs";
8
8
  import "../../../chunk-QN6OKPMU.mjs";
9
9
  export {
10
10
  runExecutor as default
@@ -1,5 +1,5 @@
1
1
  import { ExecutorContext } from '@nx/devkit';
2
- import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-elsO8UQp.mjs';
2
+ import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-Dcq3Apw7.mjs';
3
3
 
4
4
  declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
5
5
  success: boolean;
@@ -1,5 +1,5 @@
1
1
  import { ExecutorContext } from '@nx/devkit';
2
- import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-elsO8UQp.js';
2
+ import { R as R2UploadPublishExecutorSchema } from '../../../schema.d-Dcq3Apw7.js';
3
3
 
4
4
  declare function runExecutor(options: R2UploadPublishExecutorSchema, context: ExecutorContext): Promise<{
5
5
  success: boolean;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkVHMJXOF4js = require('../../../chunk-VHMJXOF4.js');
4
- require('../../../chunk-FFOLWRMA.js');
3
+ var _chunkBAINZIOHjs = require('../../../chunk-BAINZIOH.js');
4
+ require('../../../chunk-UAKLE2QO.js');
5
5
  require('../../../chunk-NU34IEWN.js');
6
- require('../../../chunk-EQXEFXCV.js');
7
- require('../../../chunk-4BWM53AA.js');
6
+ require('../../../chunk-VKMAYBQX.js');
7
+ require('../../../chunk-Z2WQB55R.js');
8
8
  require('../../../chunk-MCKGQKYU.js');
9
9
 
10
10
 
11
- exports.default = _chunkVHMJXOF4js.runExecutor;
11
+ exports.default = _chunkBAINZIOHjs.runExecutor;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-7ESZB4KW.mjs";
4
- import "../../../chunk-5N2NVDKX.mjs";
3
+ } from "../../../chunk-4EEXR4IG.mjs";
4
+ import "../../../chunk-5CMG7SUH.mjs";
5
5
  import "../../../chunk-PH3DHY4Q.mjs";
6
- import "../../../chunk-PTTJW7MW.mjs";
7
- import "../../../chunk-6MATO2MJ.mjs";
6
+ import "../../../chunk-SGTAZO2Q.mjs";
7
+ import "../../../chunk-TPNHSNNZ.mjs";
8
8
  import "../../../chunk-QN6OKPMU.mjs";
9
9
  export {
10
10
  runExecutor as default
@@ -4,9 +4,9 @@
4
4
 
5
5
  export interface R2UploadPublishExecutorSchema {
6
6
  /**
7
- * Upload Files path
7
+ * Local Uploads File Path
8
8
  *
9
- * The path to the files to upload
9
+ * The base path to the files that will be uploaded to the R2 bucket
10
10
  *
11
11
  *
12
12
  * @format path
@@ -9,10 +9,10 @@
9
9
  ],
10
10
  "properties": {
11
11
  "path": {
12
- "title": "Upload Files path",
12
+ "title": "Local Uploads File Path",
13
13
  "type": "string",
14
14
  "format": "path",
15
- "description": "The path to the files to upload",
15
+ "description": "The base path to the files that will be uploaded to the R2 bucket",
16
16
  "id": "#path"
17
17
  },
18
18
  "registry": {
@@ -1,11 +1,11 @@
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 _chunkW5IPHIXBjs = require('../../../chunk-W5IPHIXB.js');
3
+ var _chunkEKIV24FHjs = require('../../../chunk-EKIV24FH.js');
4
4
 
5
5
 
6
6
  var _chunkNU34IEWNjs = require('../../../chunk-NU34IEWN.js');
7
- require('../../../chunk-EQXEFXCV.js');
8
- require('../../../chunk-4BWM53AA.js');
7
+ require('../../../chunk-VKMAYBQX.js');
8
+ require('../../../chunk-Z2WQB55R.js');
9
9
 
10
10
 
11
11
  var _chunkMCKGQKYUjs = require('../../../chunk-MCKGQKYU.js');
@@ -55,7 +55,7 @@ async function* serveExecutor(options, context) {
55
55
  success: true
56
56
  };
57
57
  }
58
- var executor_default = _chunkW5IPHIXBjs.withRunExecutor.call(void 0,
58
+ var executor_default = _chunkEKIV24FHjs.withRunExecutor.call(void 0,
59
59
  "Cloudflare Serve executor",
60
60
  serveExecutor,
61
61
  {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-C6B32MBV.mjs";
3
+ } from "../../../chunk-NYGOCQMG.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-PH3DHY4Q.mjs";
7
- import "../../../chunk-PTTJW7MW.mjs";
8
- import "../../../chunk-6MATO2MJ.mjs";
7
+ import "../../../chunk-SGTAZO2Q.mjs";
8
+ import "../../../chunk-TPNHSNNZ.mjs";
9
9
  import {
10
10
  __require
11
11
  } from "../../../chunk-QN6OKPMU.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNEODNLL5js = require('../../../chunk-NEODNLL5.js');
5
+ var _chunkGPR55JRGjs = require('../../../chunk-GPR55JRG.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkNEODNLL5js.generator_default; exports.initGenerator = _chunkNEODNLL5js.initGenerator; exports.initSchematic = _chunkNEODNLL5js.initSchematic;
11
+ exports.default = _chunkGPR55JRGjs.generator_default; exports.initGenerator = _chunkGPR55JRGjs.initGenerator; exports.initSchematic = _chunkGPR55JRGjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-TUJUSMGX.mjs";
5
+ } from "../../../chunk-AOKOPGTD.mjs";
6
6
  import "../../../chunk-QN6OKPMU.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHQWL5NAUjs = require('../../../chunk-HQWL5NAU.js');
6
- require('../../../chunk-NEODNLL5.js');
7
- require('../../../chunk-EQXEFXCV.js');
8
- require('../../../chunk-4BWM53AA.js');
5
+ var _chunkI7SRDPE3js = require('../../../chunk-I7SRDPE3.js');
6
+ require('../../../chunk-GPR55JRG.js');
7
+ require('../../../chunk-VKMAYBQX.js');
8
+ require('../../../chunk-Z2WQB55R.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunkHQWL5NAUjs.applicationGenerator; exports.applicationSchematic = _chunkHQWL5NAUjs.applicationSchematic; exports.default = _chunkHQWL5NAUjs.generator_default;
14
+ exports.applicationGenerator = _chunkI7SRDPE3js.applicationGenerator; exports.applicationSchematic = _chunkI7SRDPE3js.applicationSchematic; exports.default = _chunkI7SRDPE3js.generator_default;
@@ -2,10 +2,10 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-5YJKWRBZ.mjs";
6
- import "../../../chunk-TUJUSMGX.mjs";
7
- import "../../../chunk-PTTJW7MW.mjs";
8
- import "../../../chunk-6MATO2MJ.mjs";
5
+ } from "../../../chunk-UXRPB254.mjs";
6
+ import "../../../chunk-AOKOPGTD.mjs";
7
+ import "../../../chunk-SGTAZO2Q.mjs";
8
+ import "../../../chunk-TPNHSNNZ.mjs";
9
9
  import "../../../chunk-QN6OKPMU.mjs";
10
10
  export {
11
11
  applicationGenerator,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkFFOLWRMAjs = require('../../chunk-FFOLWRMA.js');
6
- require('../../chunk-4BWM53AA.js');
5
+ var _chunkUAKLE2QOjs = require('../../chunk-UAKLE2QO.js');
6
+ require('../../chunk-Z2WQB55R.js');
7
7
  require('../../chunk-MCKGQKYU.js');
8
8
 
9
9
 
10
10
 
11
- exports.getInternalDependencies = _chunkFFOLWRMAjs.getInternalDependencies; exports.r2UploadFile = _chunkFFOLWRMAjs.r2UploadFile;
11
+ exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
@@ -2,8 +2,8 @@ import "../../chunk-7Z5PILRU.mjs";
2
2
  import {
3
3
  getInternalDependencies,
4
4
  r2UploadFile
5
- } from "../../chunk-5N2NVDKX.mjs";
6
- import "../../chunk-6MATO2MJ.mjs";
5
+ } from "../../chunk-5CMG7SUH.mjs";
6
+ import "../../chunk-TPNHSNNZ.mjs";
7
7
  import "../../chunk-QN6OKPMU.mjs";
8
8
  export {
9
9
  getInternalDependencies,
@@ -1,7 +1,26 @@
1
1
  import { S3 } from '@aws-sdk/client-s3';
2
2
  import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
3
3
 
4
- declare const r2UploadFile: (client: S3, bucketName: string, projectPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean) => Promise<void>;
5
- declare const getInternalDependencies: (projectName: string, graph: ProjectGraph) => ProjectGraphProjectNode[];
4
+ /**
5
+ * Upload a file to a Cloudflare R2 bucket
6
+ *
7
+ * @param client - The S3 client configured for Cloudflare R2
8
+ * @param bucketName - The name of the R2 bucket
9
+ * @param bucketPath - The path within the R2 bucket where the file will be uploaded
10
+ * @param fileName - The name of the file to upload
11
+ * @param version - The version metadata to associate with the file
12
+ * @param fileContent - The content of the file to upload
13
+ * @param contentType - The MIME type of the file content
14
+ * @param isDryRun - Whether to perform a dry run without actual upload
15
+ */
16
+ declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
17
+ /**
18
+ * Get internal dependencies of a project from the project graph
19
+ *
20
+ * @param projectName - The name of the project
21
+ * @param graph - The project graph
22
+ * @returns An array of internal project nodes that are dependencies of the specified project
23
+ */
24
+ declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
6
25
 
7
26
  export { getInternalDependencies, r2UploadFile };
@@ -1,7 +1,26 @@
1
1
  import { S3 } from '@aws-sdk/client-s3';
2
2
  import { ProjectGraph, ProjectGraphProjectNode } from '@nx/devkit';
3
3
 
4
- declare const r2UploadFile: (client: S3, bucketName: string, projectPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean) => Promise<void>;
5
- declare const getInternalDependencies: (projectName: string, graph: ProjectGraph) => ProjectGraphProjectNode[];
4
+ /**
5
+ * Upload a file to a Cloudflare R2 bucket
6
+ *
7
+ * @param client - The S3 client configured for Cloudflare R2
8
+ * @param bucketName - The name of the R2 bucket
9
+ * @param bucketPath - The path within the R2 bucket where the file will be uploaded
10
+ * @param fileName - The name of the file to upload
11
+ * @param version - The version metadata to associate with the file
12
+ * @param fileContent - The content of the file to upload
13
+ * @param contentType - The MIME type of the file content
14
+ * @param isDryRun - Whether to perform a dry run without actual upload
15
+ */
16
+ declare function r2UploadFile(client: S3, bucketName: string, bucketPath: string, fileName: string, version: string, fileContent: string, contentType?: string, isDryRun?: boolean): Promise<void>;
17
+ /**
18
+ * Get internal dependencies of a project from the project graph
19
+ *
20
+ * @param projectName - The name of the project
21
+ * @param graph - The project graph
22
+ * @returns An array of internal project nodes that are dependencies of the specified project
23
+ */
24
+ declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
6
25
 
7
26
  export { getInternalDependencies, r2UploadFile };
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkFFOLWRMAjs = require('../../chunk-FFOLWRMA.js');
5
- require('../../chunk-4BWM53AA.js');
4
+ var _chunkUAKLE2QOjs = require('../../chunk-UAKLE2QO.js');
5
+ require('../../chunk-Z2WQB55R.js');
6
6
  require('../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
- exports.getInternalDependencies = _chunkFFOLWRMAjs.getInternalDependencies; exports.r2UploadFile = _chunkFFOLWRMAjs.r2UploadFile;
10
+ exports.getInternalDependencies = _chunkUAKLE2QOjs.getInternalDependencies; exports.r2UploadFile = _chunkUAKLE2QOjs.r2UploadFile;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "../../chunk-5N2NVDKX.mjs";
5
- import "../../chunk-6MATO2MJ.mjs";
4
+ } from "../../chunk-5CMG7SUH.mjs";
5
+ import "../../chunk-TPNHSNNZ.mjs";
6
6
  import "../../chunk-QN6OKPMU.mjs";
7
7
  export {
8
8
  getInternalDependencies,
@@ -7,10 +7,10 @@
7
7
  ## `path`
8
8
  - **Type**: `string`
9
9
 
10
- > Upload Files path
10
+ > Local Uploads File Path
11
11
 
12
12
 
13
- The path to the files to upload
13
+ The base path to the files that will be uploaded to the R2 bucket
14
14
 
15
15
 
16
16
  ## `registry`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.2",
3
+ "version": "0.71.3",
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",
@@ -117,9 +117,9 @@
117
117
  "@nx/js": "^22.1.3",
118
118
  "@nx/node": "^22.1.3",
119
119
  "@nx/web": "^22.1.3",
120
- "@storm-software/config": "1.134.52",
121
- "@storm-software/config-tools": "1.188.52",
122
- "@storm-software/workspace-tools": "1.293.22",
120
+ "@storm-software/config": "1.134.53",
121
+ "@storm-software/config-tools": "1.188.53",
122
+ "@storm-software/workspace-tools": "1.293.23",
123
123
  "nx": "^22.1.3",
124
124
  "tsup": "8.4.0",
125
125
  "wrangler": ">=3.58.0"
@@ -151,5 +151,5 @@
151
151
  "publishConfig": { "access": "public" },
152
152
  "executors": "./executors.json",
153
153
  "generators": "./generators.json",
154
- "gitHead": "c349c2774d5ccb4acbfc1f69e6ec206248afdb73"
154
+ "gitHead": "29a44e4a14b2fd7cb64a2261c7b22ccca442c332"
155
155
  }
@@ -1,44 +0,0 @@
1
- import {
2
- writeDebug,
3
- writeWarning
4
- } from "./chunk-6MATO2MJ.mjs";
5
-
6
- // src/utils/r2-bucket-helpers.ts
7
- import { createHash } from "node:crypto";
8
- var r2UploadFile = async (client, bucketName, projectPath, fileName, version, fileContent, contentType = "text/plain", isDryRun = false) => {
9
- const checksum = createHash("sha256").update(fileContent).digest("base64");
10
- const fileKey = `${projectPath}/${fileName.startsWith("/") ? fileName.substring(1) : fileName}`;
11
- writeDebug(`Uploading file: ${fileKey}`);
12
- if (!isDryRun) {
13
- await client.putObject({
14
- Bucket: bucketName,
15
- Key: fileKey,
16
- Body: fileContent.replaceAll(' from "@cyclone-ui/', ' from "../'),
17
- ContentType: contentType,
18
- Metadata: {
19
- version,
20
- checksum
21
- }
22
- });
23
- } else {
24
- writeWarning("[Dry run]: skipping upload to the Cyclone Registry.");
25
- }
26
- };
27
- var getInternalDependencies = (projectName, graph) => {
28
- const allDeps = graph.dependencies[projectName] ?? [];
29
- return Array.from(
30
- allDeps.reduce(
31
- (acc, node) => {
32
- const found = graph.nodes[node.target];
33
- if (found) acc.push(found);
34
- return acc;
35
- },
36
- []
37
- )
38
- );
39
- };
40
-
41
- export {
42
- r2UploadFile,
43
- getInternalDependencies
44
- };