@storm-software/cloudflare-tools 0.71.147 → 0.71.148

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-G4HPK6EV.js → chunk-2KWLPZPX.js} +18 -18
  3. package/dist/{chunk-WHRATZLQ.mjs → chunk-3LWUUYEE.mjs} +4 -4
  4. package/dist/{chunk-M67NVAFN.js → chunk-4XJ24NCI.js} +34 -34
  5. package/dist/{chunk-NDCCQODD.mjs → chunk-A5I4SIQC.mjs} +1 -1
  6. package/dist/{chunk-76TM4A24.mjs → chunk-D6LBIKKD.mjs} +17 -8
  7. package/dist/{chunk-6QKSJUN4.js → chunk-JCKCOMMK.js} +13 -13
  8. package/dist/{chunk-RV2PLDCF.mjs → chunk-K4D2NWTO.mjs} +1 -1
  9. package/dist/{chunk-OXJUHDPQ.mjs → chunk-KL5C3VV5.mjs} +2 -2
  10. package/dist/{chunk-X4EH7JKI.js → chunk-KWEPWMPW.js} +17 -8
  11. package/dist/{chunk-2AS4ETHX.js → chunk-N3HG6H3T.js} +4 -4
  12. package/dist/{chunk-CBHCGTOG.js → chunk-T2PQY64N.js} +168 -168
  13. package/dist/{chunk-LW43UGJB.mjs → chunk-T3TOR4RK.mjs} +3 -3
  14. package/dist/{chunk-RFTWAZAH.js → chunk-TT6DDULS.js} +5 -5
  15. package/dist/{chunk-G74QBTWB.mjs → chunk-Y32M5VSJ.mjs} +3 -3
  16. package/dist/executors.js +5 -5
  17. package/dist/executors.mjs +5 -5
  18. package/dist/generators.js +5 -5
  19. package/dist/generators.mjs +4 -4
  20. package/dist/index.js +8 -8
  21. package/dist/index.mjs +7 -7
  22. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  23. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  24. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  25. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  26. package/dist/src/executors/serve/executor.js +4 -4
  27. package/dist/src/executors/serve/executor.mjs +3 -3
  28. package/dist/src/generators/init/generator.js +2 -2
  29. package/dist/src/generators/init/generator.mjs +1 -1
  30. package/dist/src/generators/worker/generator.js +5 -5
  31. package/dist/src/generators/worker/generator.mjs +4 -4
  32. package/dist/src/utils/index.js +3 -3
  33. package/dist/src/utils/index.mjs +2 -2
  34. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  35. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  36. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  # Changelog for Storm Ops - Cloudflare Tools
4
4
 
5
+ ## [0.71.147](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.147) (05/15/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **workspace-tools** to **v1.295.73**
10
+ - Updated **config-tools** to **v1.190.13**
11
+ - Updated **config** to **v1.137.46**
12
+
5
13
  ## [0.71.146](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.146) (05/15/2026)
6
14
 
7
15
  ### Updated Dependencies
@@ -5,7 +5,7 @@ var _chunkKUGEZPUOjs = require('./chunk-KUGEZPUO.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkRFTWAZAHjs = require('./chunk-RFTWAZAH.js');
8
+ var _chunkTT6DDULSjs = require('./chunk-TT6DDULS.js');
9
9
 
10
10
 
11
11
 
@@ -13,7 +13,7 @@ var _chunkXKQ3HGETjs = require('./chunk-XKQ3HGET.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
16
+ var _chunk4XJ24NCIjs = require('./chunk-4XJ24NCI.js');
17
17
 
18
18
 
19
19
 
@@ -21,7 +21,7 @@ var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
21
21
 
22
22
 
23
23
 
24
- var _chunkX4EH7JKIjs = require('./chunk-X4EH7JKI.js');
24
+ var _chunkKWEPWMPWjs = require('./chunk-KWEPWMPW.js');
25
25
 
26
26
  // src/executors/r2-upload-publish/executor.ts
27
27
 
@@ -53,8 +53,8 @@ async function runExecutor(options, context) {
53
53
  throw new Error("The executor requires projectsConfigurations.");
54
54
  }
55
55
  try {
56
- const workspaceRoot = _chunkM67NVAFNjs.findWorkspaceRoot.call(void 0, );
57
- const config = await _chunkM67NVAFNjs.getConfig.call(void 0, workspaceRoot);
56
+ const workspaceRoot = _chunk4XJ24NCIjs.findWorkspaceRoot.call(void 0, );
57
+ const config = await _chunk4XJ24NCIjs.getConfig.call(void 0, workspaceRoot);
58
58
  const projectName = _nullishCoalesce(_optionalChain([context, 'access', _7 => _7.projectsConfigurations, 'access', _8 => _8.projects, 'access', _9 => _9[context.projectName], 'optionalAccess', _10 => _10.name]), () => ( context.projectName));
59
59
  const projectDetails = _chunkXKQ3HGETjs.getPackageInfo.call(void 0,
60
60
  context.projectsConfigurations.projects[context.projectName]
@@ -92,7 +92,7 @@ async function runExecutor(options, context) {
92
92
  "The executor failed because the project graph is not available. Please run the build command again."
93
93
  );
94
94
  }
95
- _chunkX4EH7JKIjs.writeDebug.call(void 0,
95
+ _chunkKWEPWMPWjs.writeDebug.call(void 0,
96
96
  `Publishing ${context.projectName} to the ${bucketId} R2 Bucket (at ${registry})`
97
97
  );
98
98
  const client = new (0, _clients3.S3Client)({
@@ -108,13 +108,13 @@ async function runExecutor(options, context) {
108
108
  });
109
109
  const version = _optionalChain([projectDetails, 'optionalAccess', _13 => _13.content, 'optionalAccess', _14 => _14.version]);
110
110
  if (version) {
111
- _chunkX4EH7JKIjs.writeDebug.call(void 0, `Starting upload version ${version}`);
111
+ _chunkKWEPWMPWjs.writeDebug.call(void 0, `Starting upload version ${version}`);
112
112
  }
113
113
  const basePath = options.path;
114
- const files = await _glob.glob.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, basePath, "**/*"), {
114
+ const files = await _glob.glob.call(void 0, _chunkKWEPWMPWjs.joinPaths.call(void 0, basePath, "**/*"), {
115
115
  ignore: "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}"
116
116
  });
117
- const internalDependencies = await _chunkRFTWAZAHjs.getInternalDependencies.call(void 0,
117
+ const internalDependencies = await _chunkTT6DDULSjs.getInternalDependencies.call(void 0,
118
118
  context.projectName,
119
119
  projectGraph
120
120
  );
@@ -128,7 +128,7 @@ async function runExecutor(options, context) {
128
128
  }, _nullishCoalesce(_optionalChain([projectDetails, 'optionalAccess', _15 => _15.content, 'access', _16 => _16.dependencies]), () => ( {})));
129
129
  const release = _nullishCoalesce(options.tag, () => ( _child_process.execSync.call(void 0, "npm config get tag").toString().trim()));
130
130
  if (options.clean === true) {
131
- _chunkX4EH7JKIjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
131
+ _chunkKWEPWMPWjs.writeDebug.call(void 0, `Clearing out existing items in ${bucketPath}`);
132
132
  if (!isDryRun) {
133
133
  const response = await client.send(
134
134
  new (0, _clients3.ListObjectsCommand)({
@@ -137,7 +137,7 @@ async function runExecutor(options, context) {
137
137
  })
138
138
  );
139
139
  if (_optionalChain([response, 'optionalAccess', _17 => _17.Contents]) && response.Contents.length > 0) {
140
- _chunkX4EH7JKIjs.writeTrace.call(void 0,
140
+ _chunkKWEPWMPWjs.writeTrace.call(void 0,
141
141
  `Deleting the following existing items from the R2 bucket path ${bucketPath}: ${response.Contents.map((item) => item.Key).join(", ")}`
142
142
  );
143
143
  await client.send(
@@ -152,12 +152,12 @@ async function runExecutor(options, context) {
152
152
  })
153
153
  );
154
154
  } else {
155
- _chunkX4EH7JKIjs.writeDebug.call(void 0,
155
+ _chunkKWEPWMPWjs.writeDebug.call(void 0,
156
156
  `No existing items to delete in the R2 bucket path ${bucketPath}`
157
157
  );
158
158
  }
159
159
  } else {
160
- _chunkX4EH7JKIjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
160
+ _chunkKWEPWMPWjs.writeWarning.call(void 0, "[Dry run]: Skipping R2 bucket clean.");
161
161
  }
162
162
  }
163
163
  if (options.writeMetaJson === true) {
@@ -178,7 +178,7 @@ async function runExecutor(options, context) {
178
178
  if (_optionalChain([projectDetails, 'optionalAccess', _22 => _22.type]) === "package.json") {
179
179
  meta.devDependencies = _optionalChain([projectDetails, 'optionalAccess', _23 => _23.content, 'optionalAccess', _24 => _24.devDependencies]);
180
180
  }
181
- await _chunkRFTWAZAHjs.uploadFile.call(void 0,
181
+ await _chunkTT6DDULSjs.uploadFile.call(void 0,
182
182
  client,
183
183
  bucketId,
184
184
  bucketPath,
@@ -194,22 +194,22 @@ async function runExecutor(options, context) {
194
194
  if (_optionalChain([_fs.statSync.call(void 0, file, {
195
195
  throwIfNoEntry: false
196
196
  }), 'optionalAccess', _25 => _25.isFile, 'call', _26 => _26()])) {
197
- const name = _chunkX4EH7JKIjs.correctPaths.call(void 0, file).replace(_chunkX4EH7JKIjs.correctPaths.call(void 0, basePath), "");
197
+ const name = _chunkKWEPWMPWjs.correctPaths.call(void 0, file).replace(_chunkKWEPWMPWjs.correctPaths.call(void 0, basePath), "");
198
198
  const type = _mimetypes2.default.lookup(name) || "application/octet-stream";
199
- await _chunkRFTWAZAHjs.uploadFile.call(void 0,
199
+ await _chunkTT6DDULSjs.uploadFile.call(void 0,
200
200
  client,
201
201
  bucketId,
202
202
  bucketPath,
203
203
  name,
204
204
  version,
205
- await _promises.readFile.call(void 0, file, _chunkRFTWAZAHjs.getEncoding.call(void 0, type)),
205
+ await _promises.readFile.call(void 0, file, _chunkTT6DDULSjs.getEncoding.call(void 0, type)),
206
206
  type,
207
207
  isDryRun
208
208
  );
209
209
  }
210
210
  })
211
211
  );
212
- _chunkX4EH7JKIjs.writeSuccess.call(void 0,
212
+ _chunkKWEPWMPWjs.writeSuccess.call(void 0,
213
213
  `Successfully uploaded the ${projectName} project to the Cloudflare R2 bucket.`,
214
214
  config
215
215
  );
@@ -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.146",
10
+ version: "0.71.147",
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: [
@@ -134,7 +134,7 @@ var require_package = __commonJS({
134
134
  dependencies: {
135
135
  "@aws-sdk/client-s3": "^3.1047.0",
136
136
  "@aws-sdk/lib-storage": "^3.1047.0",
137
- "@smithy/node-http-handler": "^4.7.2",
137
+ "@smithy/node-http-handler": "^4.7.3",
138
138
  "@storm-software/config": "workspace:*",
139
139
  "@storm-software/config-tools": "workspace:*",
140
140
  "@storm-software/workspace-tools": "workspace:*",
@@ -148,11 +148,11 @@ var require_package = __commonJS({
148
148
  "@nx/node": "catalog:",
149
149
  "@nx/web": "catalog:",
150
150
  "@nx/webpack": "catalog:",
151
- "@smithy/protocol-http": "^5.4.2",
151
+ "@smithy/protocol-http": "^5.4.3",
152
152
  nx: "catalog:",
153
153
  tsup: "catalog:",
154
154
  untyped: "catalog:",
155
- wrangler: "^4.91.0"
155
+ wrangler: "^4.92.0"
156
156
  },
157
157
  peerDependencies: {
158
158
  nx: ">=22.7.1",
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkX4EH7JKIjs = require('./chunk-X4EH7JKI.js');
10
+ var _chunkKWEPWMPWjs = require('./chunk-KWEPWMPW.js');
11
11
 
12
12
  // ../config-tools/src/utilities/find-up.ts
13
13
  var _fs = require('fs');
@@ -76,11 +76,11 @@ var rootDirectories = [
76
76
  ];
77
77
  function findWorkspaceRootSafe(pathInsideMonorepo) {
78
78
  if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
79
- return _chunkX4EH7JKIjs.correctPaths.call(void 0,
79
+ return _chunkKWEPWMPWjs.correctPaths.call(void 0,
80
80
  _nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
81
81
  );
82
82
  }
83
- return _chunkX4EH7JKIjs.correctPaths.call(void 0,
83
+ return _chunkKWEPWMPWjs.correctPaths.call(void 0,
84
84
  findFolderUp(
85
85
  _nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
86
86
  rootFiles,
@@ -733,7 +733,7 @@ async function getPackageJsonConfig(root) {
733
733
  const workspaceRoot = findWorkspaceRoot(root);
734
734
  if (_fs.existsSync.call(void 0, _path.join.call(void 0, workspaceRoot, "package.json"))) {
735
735
  const file = await _promises.readFile.call(void 0,
736
- _chunkX4EH7JKIjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
736
+ _chunkKWEPWMPWjs.joinPaths.call(void 0, workspaceRoot, "package.json"),
737
737
  "utf8"
738
738
  );
739
739
  if (file) {
@@ -817,7 +817,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
817
817
  envName: _optionalChain([fileName, 'optionalAccess', _5 => _5.toUpperCase, 'call', _6 => _6()]),
818
818
  jitiOptions: {
819
819
  debug: false,
820
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkX4EH7JKIjs.joinPaths.call(void 0,
820
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKWEPWMPWjs.joinPaths.call(void 0,
821
821
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
822
822
  "jiti"
823
823
  )
@@ -831,7 +831,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
831
831
  envName: _optionalChain([fileName, 'optionalAccess', _7 => _7.toUpperCase, 'call', _8 => _8()]),
832
832
  jitiOptions: {
833
833
  debug: false,
834
- fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkX4EH7JKIjs.joinPaths.call(void 0,
834
+ fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkKWEPWMPWjs.joinPaths.call(void 0,
835
835
  process.env.STORM_CACHE_DIR || "node_modules/.cache/storm",
836
836
  "jiti"
837
837
  )
@@ -848,7 +848,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
848
848
  let config = result.config;
849
849
  const configFile = result.configFile;
850
850
  if (config && configFile && Object.keys(config).length > 0 && !config.skipConfigLogging) {
851
- _chunkX4EH7JKIjs.writeTrace.call(void 0,
851
+ _chunkKWEPWMPWjs.writeTrace.call(void 0,
852
852
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
853
853
  {
854
854
  logLevel: "all"
@@ -864,7 +864,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
864
864
  for (const result2 of results) {
865
865
  if (_optionalChain([result2, 'optionalAccess', _9 => _9.config]) && _optionalChain([result2, 'optionalAccess', _10 => _10.configFile]) && Object.keys(result2.config).length > 0) {
866
866
  if (!config.skipConfigLogging && !result2.config.skipConfigLogging) {
867
- _chunkX4EH7JKIjs.writeTrace.call(void 0,
867
+ _chunkKWEPWMPWjs.writeTrace.call(void 0,
868
868
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
869
869
  {
870
870
  logLevel: "all"
@@ -944,15 +944,15 @@ var getConfigEnv = () => {
944
944
  support: process.env[`${prefix}SUPPORT`] || void 0,
945
945
  timezone: process.env[`${prefix}TIMEZONE`] || process.env.TZ || void 0,
946
946
  locale: process.env[`${prefix}LOCALE`] || process.env.LOCALE || void 0,
947
- configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
948
- workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
947
+ configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
948
+ workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
949
949
  directories: {
950
- cache: process.env[`${prefix}CACHE_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
951
- data: process.env[`${prefix}DATA_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
952
- config: process.env[`${prefix}CONFIG_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
953
- temp: process.env[`${prefix}TEMP_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
954
- log: process.env[`${prefix}LOG_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
955
- build: process.env[`${prefix}BUILD_DIR`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkX4EH7JKIjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
950
+ cache: process.env[`${prefix}CACHE_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
951
+ data: process.env[`${prefix}DATA_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
952
+ config: process.env[`${prefix}CONFIG_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
953
+ temp: process.env[`${prefix}TEMP_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
954
+ log: process.env[`${prefix}LOG_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
955
+ build: process.env[`${prefix}BUILD_DIR`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkKWEPWMPWjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIRECTORY`]) : void 0
956
956
  },
957
957
  skipCache: process.env[`${prefix}SKIP_CACHE`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CACHE`]) : void 0,
958
958
  mode: (_nullishCoalesce(_nullishCoalesce(process.env[`${prefix}MODE`], () => ( process.env.NODE_ENV)), () => ( process.env.ENVIRONMENT))) || void 0,
@@ -976,7 +976,7 @@ var getConfigEnv = () => {
976
976
  },
977
977
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
978
978
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
979
- ) ? _chunkX4EH7JKIjs.getLogLevelLabel.call(void 0,
979
+ ) ? _chunkKWEPWMPWjs.getLogLevelLabel.call(void 0,
980
980
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
981
981
  ) : process.env[`${prefix}LOG_LEVEL`] : void 0,
982
982
  skipConfigLogging: process.env[`${prefix}SKIP_CONFIG_LOGGING`] !== void 0 ? Boolean(process.env[`${prefix}SKIP_CONFIG_LOGGING`]) : void 0
@@ -1246,42 +1246,42 @@ var setConfigEnv = (config) => {
1246
1246
  process.env.LANG = config.locale ? `${config.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
1247
1247
  }
1248
1248
  if (config.configFile) {
1249
- process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkX4EH7JKIjs.correctPaths.call(void 0,
1249
+ process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkKWEPWMPWjs.correctPaths.call(void 0,
1250
1250
  config.configFile
1251
1251
  );
1252
1252
  }
1253
1253
  if (config.workspaceRoot) {
1254
- process.env[`${prefix}WORKSPACE_ROOT`] = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.workspaceRoot);
1255
- process.env.NX_WORKSPACE_ROOT = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.workspaceRoot);
1256
- process.env.NX_WORKSPACE_ROOT_PATH = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.workspaceRoot);
1254
+ process.env[`${prefix}WORKSPACE_ROOT`] = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.workspaceRoot);
1255
+ process.env.NX_WORKSPACE_ROOT = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.workspaceRoot);
1256
+ process.env.NX_WORKSPACE_ROOT_PATH = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.workspaceRoot);
1257
1257
  }
1258
1258
  if (config.directories) {
1259
1259
  if (!config.skipCache && config.directories.cache) {
1260
- process.env[`${prefix}CACHE_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0,
1260
+ process.env[`${prefix}CACHE_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0,
1261
1261
  config.directories.cache
1262
1262
  );
1263
1263
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
1264
1264
  }
1265
1265
  if (config.directories.data) {
1266
- process.env[`${prefix}DATA_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.directories.data);
1266
+ process.env[`${prefix}DATA_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.directories.data);
1267
1267
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
1268
1268
  }
1269
1269
  if (config.directories.config) {
1270
- process.env[`${prefix}CONFIG_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0,
1270
+ process.env[`${prefix}CONFIG_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0,
1271
1271
  config.directories.config
1272
1272
  );
1273
1273
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
1274
1274
  }
1275
1275
  if (config.directories.temp) {
1276
- process.env[`${prefix}TEMP_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.directories.temp);
1276
+ process.env[`${prefix}TEMP_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.directories.temp);
1277
1277
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
1278
1278
  }
1279
1279
  if (config.directories.log) {
1280
- process.env[`${prefix}LOG_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0, config.directories.log);
1280
+ process.env[`${prefix}LOG_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0, config.directories.log);
1281
1281
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
1282
1282
  }
1283
1283
  if (config.directories.build) {
1284
- process.env[`${prefix}BUILD_DIR`] = _chunkX4EH7JKIjs.correctPaths.call(void 0,
1284
+ process.env[`${prefix}BUILD_DIR`] = _chunkKWEPWMPWjs.correctPaths.call(void 0,
1285
1285
  config.directories.build
1286
1286
  );
1287
1287
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
@@ -1343,9 +1343,9 @@ var setConfigEnv = (config) => {
1343
1343
  process.env[`${prefix}LOG_LEVEL`] = String(config.logLevel);
1344
1344
  process.env.LOG_LEVEL = String(config.logLevel);
1345
1345
  process.env.NX_VERBOSE_LOGGING = String(
1346
- _chunkX4EH7JKIjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX4EH7JKIjs.LogLevel.DEBUG ? true : false
1346
+ _chunkKWEPWMPWjs.getLogLevel.call(void 0, config.logLevel) >= _chunkKWEPWMPWjs.LogLevel.DEBUG ? true : false
1347
1347
  );
1348
- process.env.RUST_BACKTRACE = _chunkX4EH7JKIjs.getLogLevel.call(void 0, config.logLevel) >= _chunkX4EH7JKIjs.LogLevel.DEBUG ? "full" : "none";
1348
+ process.env.RUST_BACKTRACE = _chunkKWEPWMPWjs.getLogLevel.call(void 0, config.logLevel) >= _chunkKWEPWMPWjs.LogLevel.DEBUG ? "full" : "none";
1349
1349
  }
1350
1350
  if (config.skipConfigLogging !== void 0) {
1351
1351
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
@@ -1493,7 +1493,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1493
1493
  const configFile = await getConfigFile(_workspaceRoot);
1494
1494
  if (!configFile) {
1495
1495
  if (!skipLogs) {
1496
- _chunkX4EH7JKIjs.writeWarning.call(void 0,
1496
+ _chunkKWEPWMPWjs.writeWarning.call(void 0,
1497
1497
  "No Storm Workspace configuration file found in the current repository. Please ensure this is the expected behavior - you can add a `storm-workspace.json` file to the root of your workspace if it is not.\n",
1498
1498
  { logLevel: "all" }
1499
1499
  );
@@ -1509,7 +1509,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1509
1509
  defaultConfig
1510
1510
  );
1511
1511
  if (!configInput.variant) {
1512
- configInput.variant = _fs.existsSync.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkX4EH7JKIjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1512
+ configInput.variant = _fs.existsSync.call(void 0, _chunkKWEPWMPWjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkKWEPWMPWjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkKWEPWMPWjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkKWEPWMPWjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
1513
1513
  }
1514
1514
  try {
1515
1515
  const parseResult = await Promise.resolve(
@@ -1524,7 +1524,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
1524
1524
  throw new Error(
1525
1525
  `Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
1526
1526
 
1527
- Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkX4EH7JKIjs.formatLogMessage.call(void 0,
1527
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkKWEPWMPWjs.formatLogMessage.call(void 0,
1528
1528
  configInput
1529
1529
  )}`,
1530
1530
  {
@@ -1569,9 +1569,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
1569
1569
  );
1570
1570
  setConfigEnv(config);
1571
1571
  if (!skipLogs && !config.skipConfigLogging) {
1572
- _chunkX4EH7JKIjs.writeTrace.call(void 0,
1572
+ _chunkKWEPWMPWjs.writeTrace.call(void 0,
1573
1573
  `\u2699\uFE0F Using Storm Workspace configuration:
1574
- ${_chunkX4EH7JKIjs.formatLogMessage.call(void 0, config)}`,
1574
+ ${_chunkKWEPWMPWjs.formatLogMessage.call(void 0, config)}`,
1575
1575
  config
1576
1576
  );
1577
1577
  }
@@ -7,7 +7,7 @@ import {
7
7
  joinPaths,
8
8
  writeTrace,
9
9
  writeWarning
10
- } from "./chunk-76TM4A24.mjs";
10
+ } from "./chunk-D6LBIKKD.mjs";
11
11
 
12
12
  // ../config-tools/src/utilities/find-up.ts
13
13
  import { existsSync } from "node:fs";
@@ -344,22 +344,31 @@ var getStopwatch = (name) => {
344
344
  );
345
345
  };
346
346
  };
347
- var MAX_DEPTH = 6;
347
+ var MAX_DEPTH = 10;
348
348
  var formatLogMessage = (message, options = {}, depth = 0) => {
349
349
  if (depth > MAX_DEPTH) {
350
350
  return "<max depth>";
351
351
  }
352
- const prefix = options.prefix ?? "-";
352
+ const prefix = options.prefix ?? "";
353
353
  const skip = options.skip ?? [];
354
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
355
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
356
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
357
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
354
+ const sort = options.sort ?? true;
355
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
356
+ ${message.map(
357
+ (item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
358
+ item,
359
+ { prefix: `${prefix}--`, skip, sort },
360
+ depth + 1
361
+ )}`
362
+ ).join("\n")}` : typeof message === "object" ? `
363
+ ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a, b) => a.localeCompare(b) : void 0).map(
364
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
365
+ (key2) => !skip.includes(key2)
366
+ ).length === 0 ? "{}" : formatLogMessage(
358
367
  message[key],
359
- { prefix: `${prefix}-`, skip },
368
+ { prefix: `${prefix}--`, skip, sort },
360
369
  depth + 1
361
370
  ) : message[key]}`
362
- ).join("\n")}` : message;
371
+ ).join("\n")}` : String(message);
363
372
  };
364
373
  var _isFunction = (value) => {
365
374
  try {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk2AS4ETHXjs = require('./chunk-2AS4ETHX.js');
3
+ var _chunkN3HG6H3Tjs = require('./chunk-N3HG6H3T.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
7
+ var _chunk4XJ24NCIjs = require('./chunk-4XJ24NCI.js');
8
8
 
9
9
 
10
10
 
@@ -13,7 +13,7 @@ var _chunkM67NVAFNjs = require('./chunk-M67NVAFN.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkX4EH7JKIjs = require('./chunk-X4EH7JKI.js');
16
+ var _chunkKWEPWMPWjs = require('./chunk-KWEPWMPW.js');
17
17
 
18
18
  // src/generators/worker/generator.ts
19
19
 
@@ -46,23 +46,23 @@ var vitestScript = `"test": "vitest run"`;
46
46
 
47
47
  // src/generators/worker/generator.ts
48
48
  async function applicationGenerator(tree, schema) {
49
- const stopwatch = _chunkX4EH7JKIjs.getStopwatch.call(void 0, "Storm Worker generator");
49
+ const stopwatch = _chunkKWEPWMPWjs.getStopwatch.call(void 0, "Storm Worker generator");
50
50
  let config;
51
51
  try {
52
- const workspaceRoot = _chunkM67NVAFNjs.findWorkspaceRoot.call(void 0, );
53
- config = await _chunkM67NVAFNjs.getConfig.call(void 0, workspaceRoot);
54
- _chunkX4EH7JKIjs.writeInfo.call(void 0,
55
- `${_chunkX4EH7JKIjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
52
+ const workspaceRoot = _chunk4XJ24NCIjs.findWorkspaceRoot.call(void 0, );
53
+ config = await _chunk4XJ24NCIjs.getConfig.call(void 0, workspaceRoot);
54
+ _chunkKWEPWMPWjs.writeInfo.call(void 0,
55
+ `${_chunkKWEPWMPWjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
56
56
 
57
57
  `,
58
58
  config
59
59
  );
60
- _chunkX4EH7JKIjs.writeDebug.call(void 0,
60
+ _chunkKWEPWMPWjs.writeDebug.call(void 0,
61
61
  `Loading the Storm Config from environment variables and storm.json file...
62
62
  - workspaceRoot: ${workspaceRoot}`,
63
63
  config
64
64
  );
65
- _chunkX4EH7JKIjs.writeTrace.call(void 0,
65
+ _chunkKWEPWMPWjs.writeTrace.call(void 0,
66
66
  `Loaded Storm config into env:
67
67
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
68
68
  config
@@ -70,7 +70,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
70
70
  const options = await normalizeOptions(tree, schema, config);
71
71
  const tasks = [];
72
72
  tasks.push(
73
- await _chunk2AS4ETHXjs.generator_default.call(void 0, tree, {
73
+ await _chunkN3HG6H3Tjs.generator_default.call(void 0, tree, {
74
74
  ...options,
75
75
  skipFormat: true
76
76
  })
@@ -138,11 +138,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
138
138
  return _devkit.runTasksInSerial.call(void 0, ...tasks);
139
139
  } catch (error) {
140
140
  return () => {
141
- _chunkX4EH7JKIjs.writeFatal.call(void 0,
141
+ _chunkKWEPWMPWjs.writeFatal.call(void 0,
142
142
  "A fatal error occurred while running the generator - the process was forced to terminate",
143
143
  config
144
144
  );
145
- _chunkX4EH7JKIjs.writeError.call(void 0,
145
+ _chunkKWEPWMPWjs.writeError.call(void 0,
146
146
  `An exception was thrown in the generator's process
147
147
  - Details: ${error.message}
148
148
  - Stacktrace: ${error.stack}`,
@@ -3,7 +3,7 @@ import {
3
3
  writeDebug,
4
4
  writeError,
5
5
  writeWarning
6
- } from "./chunk-76TM4A24.mjs";
6
+ } from "./chunk-D6LBIKKD.mjs";
7
7
 
8
8
  // src/utils/r2-bucket-helpers.ts
9
9
  import { Upload } from "@aws-sdk/lib-storage";
@@ -8,7 +8,7 @@ import {
8
8
  getWorkspaceConfig,
9
9
  schemaRegistry,
10
10
  workspaceConfigSchema
11
- } from "./chunk-NDCCQODD.mjs";
11
+ } from "./chunk-A5I4SIQC.mjs";
12
12
  import {
13
13
  brandIcon,
14
14
  correctPaths,
@@ -24,7 +24,7 @@ import {
24
24
  writeSuccess,
25
25
  writeTrace,
26
26
  writeWarning
27
- } from "./chunk-76TM4A24.mjs";
27
+ } from "./chunk-D6LBIKKD.mjs";
28
28
  import {
29
29
  __dirname
30
30
  } from "./chunk-UDNMVPNN.mjs";
@@ -344,22 +344,31 @@ var getStopwatch = (name) => {
344
344
  );
345
345
  };
346
346
  };
347
- var MAX_DEPTH = 6;
347
+ var MAX_DEPTH = 10;
348
348
  var formatLogMessage = (message, options = {}, depth = 0) => {
349
349
  if (depth > MAX_DEPTH) {
350
350
  return "<max depth>";
351
351
  }
352
- const prefix = _nullishCoalesce(options.prefix, () => ( "-"));
352
+ const prefix = _nullishCoalesce(options.prefix, () => ( ""));
353
353
  const skip = _nullishCoalesce(options.skip, () => ( []));
354
- return typeof message === "undefined" || message === null || !message && typeof message !== "boolean" ? "<none>" : typeof message === "string" ? message : Array.isArray(message) ? `
355
- ${message.map((item, index) => ` ${prefix}> #${index} = ${formatLogMessage(item, { prefix: `${prefix}-`, skip }, depth + 1)}`).join("\n")}` : typeof message === "object" ? `
356
- ${Object.keys(message).filter((key) => !skip.includes(key)).map(
357
- (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? formatLogMessage(
354
+ const sort = _nullishCoalesce(options.sort, () => ( true));
355
+ return typeof message === "undefined" || message === null ? "<empty>" : typeof message === "string" ? !message ? "<empty string>" : message : Array.isArray(message) ? `
356
+ ${message.map(
357
+ (item, index) => ` ${prefix}> #${index} = ${formatLogMessage(
358
+ item,
359
+ { prefix: `${prefix}--`, skip, sort },
360
+ depth + 1
361
+ )}`
362
+ ).join("\n")}` : typeof message === "object" ? `
363
+ ${Object.keys(message).filter((key) => !skip.includes(key)).sort(sort ? (a, b) => a.localeCompare(b) : void 0).map(
364
+ (key) => ` ${prefix}> ${key} = ${_isFunction(message[key]) ? "<function>" : typeof message[key] === "object" ? Object.keys(message[key]).filter(
365
+ (key2) => !skip.includes(key2)
366
+ ).length === 0 ? "{}" : formatLogMessage(
358
367
  message[key],
359
- { prefix: `${prefix}-`, skip },
368
+ { prefix: `${prefix}--`, skip, sort },
360
369
  depth + 1
361
370
  ) : message[key]}`
362
- ).join("\n")}` : message;
371
+ ).join("\n")}` : String(message);
363
372
  };
364
373
  var _isFunction = (value) => {
365
374
  try {
@@ -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.146",
10
+ version: "0.71.147",
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: [
@@ -134,7 +134,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
134
134
  dependencies: {
135
135
  "@aws-sdk/client-s3": "^3.1047.0",
136
136
  "@aws-sdk/lib-storage": "^3.1047.0",
137
- "@smithy/node-http-handler": "^4.7.2",
137
+ "@smithy/node-http-handler": "^4.7.3",
138
138
  "@storm-software/config": "workspace:*",
139
139
  "@storm-software/config-tools": "workspace:*",
140
140
  "@storm-software/workspace-tools": "workspace:*",
@@ -148,11 +148,11 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
148
148
  "@nx/node": "catalog:",
149
149
  "@nx/web": "catalog:",
150
150
  "@nx/webpack": "catalog:",
151
- "@smithy/protocol-http": "^5.4.2",
151
+ "@smithy/protocol-http": "^5.4.3",
152
152
  nx: "catalog:",
153
153
  tsup: "catalog:",
154
154
  untyped: "catalog:",
155
- wrangler: "^4.91.0"
155
+ wrangler: "^4.92.0"
156
156
  },
157
157
  peerDependencies: {
158
158
  nx: ">=22.7.1",