@storm-software/cloudflare-tools 0.71.31 → 0.71.33

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 (33) hide show
  1. package/CHANGELOG.md +22 -1
  2. package/README.md +6 -6
  3. package/dist/{chunk-Q6BDPVT4.mjs → chunk-4WRUZBE7.mjs} +3 -2
  4. package/dist/{chunk-TWWKKHQ6.mjs → chunk-7FGHS35S.mjs} +1 -1
  5. package/dist/{chunk-WSU7RB2N.mjs → chunk-LZ7KK62I.mjs} +4 -4
  6. package/dist/{chunk-V4DY7BGL.js → chunk-MCQTQV4O.js} +2 -2
  7. package/dist/{chunk-DBH3ARKO.js → chunk-Q4YW2FKP.js} +4 -4
  8. package/dist/{chunk-JFMSM7WW.js → chunk-UQBLSDWU.js} +6 -5
  9. package/dist/{chunk-MQLXYAAZ.js → chunk-VZQDXTIP.js} +11 -3
  10. package/dist/{chunk-GBGETEC6.mjs → chunk-Z2D7AKMD.mjs} +11 -3
  11. package/dist/executors.js +2 -2
  12. package/dist/executors.mjs +2 -2
  13. package/dist/generators.js +3 -3
  14. package/dist/generators.mjs +2 -2
  15. package/dist/index.d.mts +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +9 -5
  18. package/dist/index.mjs +8 -4
  19. package/dist/src/executors/r2-upload-publish/executor.js +3 -3
  20. package/dist/src/executors/r2-upload-publish/executor.mjs +2 -2
  21. package/dist/src/generators/init/generator.js +2 -2
  22. package/dist/src/generators/init/generator.mjs +1 -1
  23. package/dist/src/generators/worker/generator.js +3 -3
  24. package/dist/src/generators/worker/generator.mjs +2 -2
  25. package/dist/src/utils/index.d.mts +1 -1
  26. package/dist/src/utils/index.d.ts +1 -1
  27. package/dist/src/utils/index.js +6 -2
  28. package/dist/src/utils/index.mjs +5 -1
  29. package/dist/src/utils/r2-bucket-helpers.d.mts +15 -1
  30. package/dist/src/utils/r2-bucket-helpers.d.ts +15 -1
  31. package/dist/src/utils/r2-bucket-helpers.js +6 -2
  32. package/dist/src/utils/r2-bucket-helpers.mjs +5 -1
  33. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,7 +1,28 @@
1
- ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/optimized/banner-1280x320.gif)
1
+ ![Storm Software's logo banner](https://public.storm-cdn.com/storm-software/banner-1280x320.gif)
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.32](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.32) (12/18/2025)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **cloudflare-tools:** Ensure the correct encoding type is used during upload
10
+ ([427e3a4db](https://github.com/storm-software/storm-ops/commit/427e3a4db))
11
+
12
+ ## [0.71.31](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.31) (12/18/2025)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **cloudflare-tools:** Use `Upload` object to ensure data is successfully sent
17
+ to R2 bucket
18
+ ([6ba6f17bb](https://github.com/storm-software/storm-ops/commit/6ba6f17bb))
19
+
20
+ ### Updated Dependencies
21
+
22
+ - Updated **workspace-tools** to **v1.294.17**
23
+ - Updated **config-tools** to **v1.188.71**
24
+ - Updated **config** to **v1.134.71**
25
+
5
26
  ## [0.71.30](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.30) (12/18/2025)
6
27
 
7
28
  ### Bug Fixes
package/README.md CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  <div align="center">
7
7
  <picture>
8
- <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/optimized/banner-1280x640-dark.gif">
9
- <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/optimized/banner-1280x640-light.gif">
10
- <img src="https://public.storm-cdn.com/storm-software/optimized/banner-1280x640-dark.gif" width="100%" alt="Storm Software" />
8
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-dark.gif">
9
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x640-light.gif">
10
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x640-dark.gif" width="100%" alt="Storm Software" />
11
11
  </picture>
12
12
  </div>
13
13
  <br />
@@ -338,9 +338,9 @@ specification. Contributions of any kind welcome!
338
338
 
339
339
  <div align="center">
340
340
  <picture>
341
- <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/optimized/banner-1280x320-dark.webp">
342
- <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/optimized/banner-1280x320-light.webp">
343
- <img src="https://public.storm-cdn.com/storm-software/optimized/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
341
+ <source media="(prefers-color-scheme: dark)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp">
342
+ <source media="(prefers-color-scheme: light)" srcset="https://public.storm-cdn.com/storm-software/banner-1280x320-light.webp">
343
+ <img src="https://public.storm-cdn.com/storm-software/banner-1280x320-dark.webp" width="100%" alt="Storm Software" />
344
344
  </picture>
345
345
  </div>
346
346
  <br />
@@ -2,9 +2,10 @@ import {
2
2
  createHttpHandler
3
3
  } from "./chunk-SWYYMID7.mjs";
4
4
  import {
5
+ getEncoding,
5
6
  getInternalDependencies,
6
7
  uploadFile
7
- } from "./chunk-GBGETEC6.mjs";
8
+ } from "./chunk-Z2D7AKMD.mjs";
8
9
  import {
9
10
  createCliOptions,
10
11
  getPackageInfo
@@ -201,7 +202,7 @@ async function runExecutor(options, context) {
201
202
  bucketPath,
202
203
  name,
203
204
  version,
204
- await readFile(file, "utf8"),
205
+ await readFile(file, getEncoding(type)),
205
206
  type,
206
207
  isDryRun
207
208
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  generator_default
3
- } from "./chunk-WSU7RB2N.mjs";
3
+ } from "./chunk-LZ7KK62I.mjs";
4
4
  import {
5
5
  findWorkspaceRoot,
6
6
  getConfig
@@ -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.30",
10
+ version: "0.71.32",
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.70",
140
- "@storm-software/config-tools": "1.188.70",
141
- "@storm-software/workspace-tools": "1.294.16",
139
+ "@storm-software/config": "1.134.71",
140
+ "@storm-software/config-tools": "1.188.71",
141
+ "@storm-software/workspace-tools": "1.294.17",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -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 _chunkDBH3ARKOjs = require('./chunk-DBH3ARKO.js');
3
+ var _chunkQ4YW2FKPjs = require('./chunk-Q4YW2FKP.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 _chunkDBH3ARKOjs.generator_default.call(void 0, tree, {
69
+ await _chunkQ4YW2FKPjs.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
@@ -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.30",
10
+ version: "0.71.32",
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.70",
140
- "@storm-software/config-tools": "1.188.70",
141
- "@storm-software/workspace-tools": "1.294.16",
139
+ "@storm-software/config": "1.134.71",
140
+ "@storm-software/config-tools": "1.188.71",
141
+ "@storm-software/workspace-tools": "1.294.17",
142
142
  nx: "catalog:",
143
143
  tsup: "catalog:",
144
144
  wrangler: ">=3.58.0"
@@ -4,7 +4,8 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkMQLXYAAZjs = require('./chunk-MQLXYAAZ.js');
7
+
8
+ var _chunkVZQDXTIPjs = require('./chunk-VZQDXTIP.js');
8
9
 
9
10
 
10
11
 
@@ -113,7 +114,7 @@ async function runExecutor(options, context) {
113
114
  const files = await _glob.glob.call(void 0, _chunkZ2WQB55Rjs.joinPaths.call(void 0, basePath, "**/*"), {
114
115
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
115
116
  });
116
- const internalDependencies = await _chunkMQLXYAAZjs.getInternalDependencies.call(void 0,
117
+ const internalDependencies = await _chunkVZQDXTIPjs.getInternalDependencies.call(void 0,
117
118
  context.projectName,
118
119
  projectGraph
119
120
  );
@@ -177,7 +178,7 @@ async function runExecutor(options, context) {
177
178
  if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
178
179
  meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
179
180
  }
180
- await _chunkMQLXYAAZjs.uploadFile.call(void 0,
181
+ await _chunkVZQDXTIPjs.uploadFile.call(void 0,
181
182
  client,
182
183
  bucketId,
183
184
  bucketPath,
@@ -195,13 +196,13 @@ async function runExecutor(options, context) {
195
196
  }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
196
197
  const name = _chunkZ2WQB55Rjs.correctPaths.call(void 0, file).replace(_chunkZ2WQB55Rjs.correctPaths.call(void 0, basePath), "");
197
198
  const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
198
- await _chunkMQLXYAAZjs.uploadFile.call(void 0,
199
+ await _chunkVZQDXTIPjs.uploadFile.call(void 0,
199
200
  client,
200
201
  bucketId,
201
202
  bucketPath,
202
203
  name,
203
204
  version,
204
- await _promises.readFile.call(void 0, file, "utf8"),
205
+ await _promises.readFile.call(void 0, file, _chunkVZQDXTIPjs.getEncoding.call(void 0, type)),
205
206
  type,
206
207
  isDryRun
207
208
  );
@@ -13,7 +13,7 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
13
13
  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, "")]) || "";
14
14
  _chunkZ2WQB55Rjs.writeDebug.call(void 0,
15
15
  `Uploading ${key} (content-type: ${contentType}, size: ${_prettybytes2.default.call(void 0,
16
- Buffer.byteLength(fileContent, "utf8")
16
+ Buffer.byteLength(fileContent, getEncoding(contentType))
17
17
  )}) to the ${bucketName} R2 bucket`
18
18
  );
19
19
  try {
@@ -23,7 +23,7 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
23
23
  params: {
24
24
  Bucket: bucketName,
25
25
  Key: key,
26
- Body: Buffer.from(fileContent, "utf8"),
26
+ Body: Buffer.from(fileContent, getEncoding(contentType)),
27
27
  ContentType: contentType,
28
28
  Metadata: {
29
29
  version,
@@ -53,8 +53,16 @@ function getInternalDependencies(projectName, graph) {
53
53
  )
54
54
  );
55
55
  }
56
+ function isTextFile(mimeType) {
57
+ return mimeType.startsWith("text/") || mimeType === "application/json" || mimeType === "application/javascript" || mimeType === "application/xml" || mimeType === "application/x-yaml" || mimeType === "application/xhtml+xml" || mimeType === "application/x-httpd-php" || mimeType === "image/svg+xml";
58
+ }
59
+ function getEncoding(mimeType) {
60
+ return isTextFile(mimeType) ? "utf8" : "binary";
61
+ }
62
+
63
+
56
64
 
57
65
 
58
66
 
59
67
 
60
- exports.uploadFile = uploadFile; exports.getInternalDependencies = getInternalDependencies;
68
+ exports.uploadFile = uploadFile; exports.getInternalDependencies = getInternalDependencies; exports.isTextFile = isTextFile; exports.getEncoding = getEncoding;
@@ -13,7 +13,7 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
13
13
  const key = (!bucketPath?.trim() || bucketPath?.trim() === "/" ? fileName : joinPaths(bucketPath.trim(), fileName))?.replace(/^\/+/g, "") || "";
14
14
  writeDebug(
15
15
  `Uploading ${key} (content-type: ${contentType}, size: ${prettyBytes(
16
- Buffer.byteLength(fileContent, "utf8")
16
+ Buffer.byteLength(fileContent, getEncoding(contentType))
17
17
  )}) to the ${bucketName} R2 bucket`
18
18
  );
19
19
  try {
@@ -23,7 +23,7 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
23
23
  params: {
24
24
  Bucket: bucketName,
25
25
  Key: key,
26
- Body: Buffer.from(fileContent, "utf8"),
26
+ Body: Buffer.from(fileContent, getEncoding(contentType)),
27
27
  ContentType: contentType,
28
28
  Metadata: {
29
29
  version,
@@ -53,8 +53,16 @@ function getInternalDependencies(projectName, graph) {
53
53
  )
54
54
  );
55
55
  }
56
+ function isTextFile(mimeType) {
57
+ return mimeType.startsWith("text/") || mimeType === "application/json" || mimeType === "application/javascript" || mimeType === "application/xml" || mimeType === "application/x-yaml" || mimeType === "application/xhtml+xml" || mimeType === "application/x-httpd-php" || mimeType === "image/svg+xml";
58
+ }
59
+ function getEncoding(mimeType) {
60
+ return isTextFile(mimeType) ? "utf8" : "binary";
61
+ }
56
62
 
57
63
  export {
58
64
  uploadFile,
59
- getInternalDependencies
65
+ getInternalDependencies,
66
+ isTextFile,
67
+ getEncoding
60
68
  };
package/dist/executors.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
- require('./chunk-JFMSM7WW.js');
2
+ require('./chunk-UQBLSDWU.js');
3
3
  require('./chunk-KUGEZPUO.js');
4
- require('./chunk-MQLXYAAZ.js');
4
+ require('./chunk-VZQDXTIP.js');
5
5
  require('./chunk-QBD2OGUY.js');
6
6
  require('./chunk-IVVRVG36.js');
7
7
  require('./chunk-N7FW365Q.js');
@@ -1,7 +1,7 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-Q6BDPVT4.mjs";
2
+ import "./chunk-4WRUZBE7.mjs";
3
3
  import "./chunk-SWYYMID7.mjs";
4
- import "./chunk-GBGETEC6.mjs";
4
+ import "./chunk-Z2D7AKMD.mjs";
5
5
  import "./chunk-WFPKBGV3.mjs";
6
6
  import "./chunk-NIOOY3TB.mjs";
7
7
  import "./chunk-3MAI3FU2.mjs";
@@ -2,11 +2,11 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkV4DY7BGLjs = require('./chunk-V4DY7BGL.js');
5
+ var _chunkMCQTQV4Ojs = require('./chunk-MCQTQV4O.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkDBH3ARKOjs = require('./chunk-DBH3ARKO.js');
9
+ var _chunkQ4YW2FKPjs = require('./chunk-Q4YW2FKP.js');
10
10
  require('./chunk-5GILNZWS.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 = _chunkV4DY7BGLjs.applicationGenerator; exports.applicationSchematic = _chunkV4DY7BGLjs.applicationSchematic; exports.initGenerator = _chunkDBH3ARKOjs.initGenerator; exports.initSchematic = _chunkDBH3ARKOjs.initSchematic;
18
+ exports.applicationGenerator = _chunkMCQTQV4Ojs.applicationGenerator; exports.applicationSchematic = _chunkMCQTQV4Ojs.applicationSchematic; exports.initGenerator = _chunkQ4YW2FKPjs.initGenerator; exports.initSchematic = _chunkQ4YW2FKPjs.initSchematic;
@@ -2,11 +2,11 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-TWWKKHQ6.mjs";
5
+ } from "./chunk-7FGHS35S.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-WSU7RB2N.mjs";
9
+ } from "./chunk-LZ7KK62I.mjs";
10
10
  import "./chunk-G4ZCI2MN.mjs";
11
11
  import "./chunk-TPNHSNNZ.mjs";
12
12
  import "./chunk-PALWHFOL.mjs";
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ 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';
6
- export { getInternalDependencies, uploadFile } from './src/utils/r2-bucket-helpers.mjs';
6
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile } from './src/utils/r2-bucket-helpers.mjs';
7
7
  import '@storm-software/workspace-tools';
8
8
  import '@aws-sdk/client-s3';
9
9
 
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ 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';
6
- export { getInternalDependencies, uploadFile } from './src/utils/r2-bucket-helpers.js';
6
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile } from './src/utils/r2-bucket-helpers.js';
7
7
  import '@storm-software/workspace-tools';
8
8
  import '@aws-sdk/client-s3';
9
9
 
package/dist/index.js CHANGED
@@ -1,20 +1,22 @@
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-JFMSM7WW.js');
2
+ require('./chunk-UQBLSDWU.js');
3
3
  require('./chunk-DHBG5ASJ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkV4DY7BGLjs = require('./chunk-V4DY7BGL.js');
7
+ var _chunkMCQTQV4Ojs = require('./chunk-MCQTQV4O.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkDBH3ARKOjs = require('./chunk-DBH3ARKO.js');
11
+ var _chunkQ4YW2FKPjs = require('./chunk-Q4YW2FKP.js');
12
12
  require('./chunk-KUGEZPUO.js');
13
13
  require('./chunk-CVGPWUNP.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkMQLXYAAZjs = require('./chunk-MQLXYAAZ.js');
17
+
18
+
19
+ var _chunkVZQDXTIPjs = require('./chunk-VZQDXTIP.js');
18
20
  require('./chunk-QBD2OGUY.js');
19
21
  require('./chunk-IVVRVG36.js');
20
22
 
@@ -156,4 +158,6 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
156
158
 
157
159
 
158
160
 
159
- exports.applicationGenerator = _chunkV4DY7BGLjs.applicationGenerator; exports.applicationSchematic = _chunkV4DY7BGLjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkMQLXYAAZjs.getInternalDependencies; exports.initGenerator = _chunkDBH3ARKOjs.initGenerator; exports.initSchematic = _chunkDBH3ARKOjs.initSchematic; exports.name = name; exports.uploadFile = _chunkMQLXYAAZjs.uploadFile;
161
+
162
+
163
+ exports.applicationGenerator = _chunkMCQTQV4Ojs.applicationGenerator; exports.applicationSchematic = _chunkMCQTQV4Ojs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getEncoding = _chunkVZQDXTIPjs.getEncoding; exports.getInternalDependencies = _chunkVZQDXTIPjs.getInternalDependencies; exports.initGenerator = _chunkQ4YW2FKPjs.initGenerator; exports.initSchematic = _chunkQ4YW2FKPjs.initSchematic; exports.isTextFile = _chunkVZQDXTIPjs.isTextFile; exports.name = name; exports.uploadFile = _chunkVZQDXTIPjs.uploadFile;
package/dist/index.mjs CHANGED
@@ -1,20 +1,22 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
- import "./chunk-Q6BDPVT4.mjs";
2
+ import "./chunk-4WRUZBE7.mjs";
3
3
  import "./chunk-3J7KBHMJ.mjs";
4
4
  import {
5
5
  applicationGenerator,
6
6
  applicationSchematic
7
- } from "./chunk-TWWKKHQ6.mjs";
7
+ } from "./chunk-7FGHS35S.mjs";
8
8
  import {
9
9
  initGenerator,
10
10
  initSchematic
11
- } from "./chunk-WSU7RB2N.mjs";
11
+ } from "./chunk-LZ7KK62I.mjs";
12
12
  import "./chunk-SWYYMID7.mjs";
13
13
  import "./chunk-7Z5PILRU.mjs";
14
14
  import {
15
+ getEncoding,
15
16
  getInternalDependencies,
17
+ isTextFile,
16
18
  uploadFile
17
- } from "./chunk-GBGETEC6.mjs";
19
+ } from "./chunk-Z2D7AKMD.mjs";
18
20
  import "./chunk-WFPKBGV3.mjs";
19
21
  import "./chunk-NIOOY3TB.mjs";
20
22
  import {
@@ -151,9 +153,11 @@ export {
151
153
  applicationGenerator,
152
154
  applicationSchematic,
153
155
  createNodesV2,
156
+ getEncoding,
154
157
  getInternalDependencies,
155
158
  initGenerator,
156
159
  initSchematic,
160
+ isTextFile,
157
161
  name,
158
162
  uploadFile
159
163
  };
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJFMSM7WWjs = require('../../../chunk-JFMSM7WW.js');
3
+ var _chunkUQBLSDWUjs = require('../../../chunk-UQBLSDWU.js');
4
4
  require('../../../chunk-KUGEZPUO.js');
5
- require('../../../chunk-MQLXYAAZ.js');
5
+ require('../../../chunk-VZQDXTIP.js');
6
6
  require('../../../chunk-N7FW365Q.js');
7
7
  require('../../../chunk-5GILNZWS.js');
8
8
  require('../../../chunk-Z2WQB55R.js');
9
9
  require('../../../chunk-MCKGQKYU.js');
10
10
 
11
11
 
12
- exports.default = _chunkJFMSM7WWjs.runExecutor;
12
+ exports.default = _chunkUQBLSDWUjs.runExecutor;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-Q6BDPVT4.mjs";
3
+ } from "../../../chunk-4WRUZBE7.mjs";
4
4
  import "../../../chunk-SWYYMID7.mjs";
5
- import "../../../chunk-GBGETEC6.mjs";
5
+ import "../../../chunk-Z2D7AKMD.mjs";
6
6
  import "../../../chunk-3MAI3FU2.mjs";
7
7
  import "../../../chunk-G4ZCI2MN.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkDBH3ARKOjs = require('../../../chunk-DBH3ARKO.js');
5
+ var _chunkQ4YW2FKPjs = require('../../../chunk-Q4YW2FKP.js');
6
6
  require('../../../chunk-MCKGQKYU.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkDBH3ARKOjs.generator_default; exports.initGenerator = _chunkDBH3ARKOjs.initGenerator; exports.initSchematic = _chunkDBH3ARKOjs.initSchematic;
11
+ exports.default = _chunkQ4YW2FKPjs.generator_default; exports.initGenerator = _chunkQ4YW2FKPjs.initGenerator; exports.initSchematic = _chunkQ4YW2FKPjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-WSU7RB2N.mjs";
5
+ } from "../../../chunk-LZ7KK62I.mjs";
6
6
  import "../../../chunk-PALWHFOL.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,8 +2,8 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkV4DY7BGLjs = require('../../../chunk-V4DY7BGL.js');
6
- require('../../../chunk-DBH3ARKO.js');
5
+ var _chunkMCQTQV4Ojs = require('../../../chunk-MCQTQV4O.js');
6
+ require('../../../chunk-Q4YW2FKP.js');
7
7
  require('../../../chunk-5GILNZWS.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 = _chunkV4DY7BGLjs.applicationGenerator; exports.applicationSchematic = _chunkV4DY7BGLjs.applicationSchematic; exports.default = _chunkV4DY7BGLjs.generator_default;
14
+ exports.applicationGenerator = _chunkMCQTQV4Ojs.applicationGenerator; exports.applicationSchematic = _chunkMCQTQV4Ojs.applicationSchematic; exports.default = _chunkMCQTQV4Ojs.generator_default;
@@ -2,8 +2,8 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-TWWKKHQ6.mjs";
6
- import "../../../chunk-WSU7RB2N.mjs";
5
+ } from "../../../chunk-7FGHS35S.mjs";
6
+ import "../../../chunk-LZ7KK62I.mjs";
7
7
  import "../../../chunk-G4ZCI2MN.mjs";
8
8
  import "../../../chunk-TPNHSNNZ.mjs";
9
9
  import "../../../chunk-PALWHFOL.mjs";
@@ -1,3 +1,3 @@
1
- export { getInternalDependencies, uploadFile } from './r2-bucket-helpers.mjs';
1
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile } from './r2-bucket-helpers.mjs';
2
2
  import '@aws-sdk/client-s3';
3
3
  import '@nx/devkit';
@@ -1,3 +1,3 @@
1
- export { getInternalDependencies, uploadFile } from './r2-bucket-helpers.js';
1
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile } from './r2-bucket-helpers.js';
2
2
  import '@aws-sdk/client-s3';
3
3
  import '@nx/devkit';
@@ -2,10 +2,14 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMQLXYAAZjs = require('../../chunk-MQLXYAAZ.js');
5
+
6
+
7
+ var _chunkVZQDXTIPjs = require('../../chunk-VZQDXTIP.js');
6
8
  require('../../chunk-Z2WQB55R.js');
7
9
  require('../../chunk-MCKGQKYU.js');
8
10
 
9
11
 
10
12
 
11
- exports.getInternalDependencies = _chunkMQLXYAAZjs.getInternalDependencies; exports.uploadFile = _chunkMQLXYAAZjs.uploadFile;
13
+
14
+
15
+ exports.getEncoding = _chunkVZQDXTIPjs.getEncoding; exports.getInternalDependencies = _chunkVZQDXTIPjs.getInternalDependencies; exports.isTextFile = _chunkVZQDXTIPjs.isTextFile; exports.uploadFile = _chunkVZQDXTIPjs.uploadFile;
@@ -1,11 +1,15 @@
1
1
  import "../../chunk-7Z5PILRU.mjs";
2
2
  import {
3
+ getEncoding,
3
4
  getInternalDependencies,
5
+ isTextFile,
4
6
  uploadFile
5
- } from "../../chunk-GBGETEC6.mjs";
7
+ } from "../../chunk-Z2D7AKMD.mjs";
6
8
  import "../../chunk-TPNHSNNZ.mjs";
7
9
  import "../../chunk-PALWHFOL.mjs";
8
10
  export {
11
+ getEncoding,
9
12
  getInternalDependencies,
13
+ isTextFile,
10
14
  uploadFile
11
15
  };
@@ -22,5 +22,19 @@ declare function uploadFile(client: S3Client, bucketName: string, bucketPath: st
22
22
  * @returns An array of internal project nodes that are dependencies of the specified project
23
23
  */
24
24
  declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
25
+ /**
26
+ * Determine if a MIME type represents a text file
27
+ *
28
+ * @param mimeType - The MIME type to check
29
+ * @returns True if the MIME type represents a text file, false otherwise
30
+ */
31
+ declare function isTextFile(mimeType: string): boolean;
32
+ /**
33
+ * Get the appropriate encoding for a given MIME type
34
+ *
35
+ * @param mimeType - The MIME type to evaluate
36
+ * @returns The encoding string ("utf8" for text files, "binary" for others)
37
+ */
38
+ declare function getEncoding(mimeType: string): BufferEncoding;
25
39
 
26
- export { getInternalDependencies, uploadFile };
40
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile };
@@ -22,5 +22,19 @@ declare function uploadFile(client: S3Client, bucketName: string, bucketPath: st
22
22
  * @returns An array of internal project nodes that are dependencies of the specified project
23
23
  */
24
24
  declare function getInternalDependencies(projectName: string, graph: ProjectGraph): ProjectGraphProjectNode[];
25
+ /**
26
+ * Determine if a MIME type represents a text file
27
+ *
28
+ * @param mimeType - The MIME type to check
29
+ * @returns True if the MIME type represents a text file, false otherwise
30
+ */
31
+ declare function isTextFile(mimeType: string): boolean;
32
+ /**
33
+ * Get the appropriate encoding for a given MIME type
34
+ *
35
+ * @param mimeType - The MIME type to evaluate
36
+ * @returns The encoding string ("utf8" for text files, "binary" for others)
37
+ */
38
+ declare function getEncoding(mimeType: string): BufferEncoding;
25
39
 
26
- export { getInternalDependencies, uploadFile };
40
+ export { getEncoding, getInternalDependencies, isTextFile, uploadFile };
@@ -1,10 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkMQLXYAAZjs = require('../../chunk-MQLXYAAZ.js');
4
+
5
+
6
+ var _chunkVZQDXTIPjs = require('../../chunk-VZQDXTIP.js');
5
7
  require('../../chunk-Z2WQB55R.js');
6
8
  require('../../chunk-MCKGQKYU.js');
7
9
 
8
10
 
9
11
 
10
- exports.getInternalDependencies = _chunkMQLXYAAZjs.getInternalDependencies; exports.uploadFile = _chunkMQLXYAAZjs.uploadFile;
12
+
13
+
14
+ exports.getEncoding = _chunkVZQDXTIPjs.getEncoding; exports.getInternalDependencies = _chunkVZQDXTIPjs.getInternalDependencies; exports.isTextFile = _chunkVZQDXTIPjs.isTextFile; exports.uploadFile = _chunkVZQDXTIPjs.uploadFile;
@@ -1,10 +1,14 @@
1
1
  import {
2
+ getEncoding,
2
3
  getInternalDependencies,
4
+ isTextFile,
3
5
  uploadFile
4
- } from "../../chunk-GBGETEC6.mjs";
6
+ } from "../../chunk-Z2D7AKMD.mjs";
5
7
  import "../../chunk-TPNHSNNZ.mjs";
6
8
  import "../../chunk-PALWHFOL.mjs";
7
9
  export {
10
+ getEncoding,
8
11
  getInternalDependencies,
12
+ isTextFile,
9
13
  uploadFile
10
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.71.31",
3
+ "version": "0.71.33",
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.2.3",
118
118
  "@nx/node": "^22.2.3",
119
119
  "@nx/web": "^22.2.3",
120
- "@storm-software/config": "1.134.70",
121
- "@storm-software/config-tools": "1.188.70",
122
- "@storm-software/workspace-tools": "1.294.16",
120
+ "@storm-software/config": "1.134.71",
121
+ "@storm-software/config-tools": "1.188.71",
122
+ "@storm-software/workspace-tools": "1.294.17",
123
123
  "nx": "^22.2.3",
124
124
  "tsup": "8.4.0",
125
125
  "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": "7f759c57f99e6cf104b110848fdf4d319e5886c1"
158
+ "gitHead": "1cf24f1b1315169cdf248480f1fa220fa5b5a4aa"
159
159
  }