@storm-software/cloudflare-tools 0.71.94 → 0.71.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +1 -1
- package/dist/{chunk-XVKPJL76.mjs → chunk-25EIQBS4.mjs} +3 -3
- package/dist/{chunk-536H3WK5.mjs → chunk-3LRZKOV5.mjs} +2 -2
- package/dist/{chunk-GBAVURC4.js → chunk-3U6ZPFIV.js} +35 -35
- package/dist/{chunk-FVRCPE3R.mjs → chunk-5GHEIPID.mjs} +1 -1
- package/dist/{chunk-F5ERW3GT.mjs → chunk-A7ZIZ75G.mjs} +4 -4
- package/dist/{chunk-YQSDJFL7.mjs → chunk-CF5QUCIQ.mjs} +3 -3
- package/dist/{chunk-OSS24HY2.js → chunk-FPBPAFAP.js} +7 -7
- package/dist/{chunk-7XNHMTDJ.js → chunk-GUVOBEGN.js} +13 -13
- package/dist/{chunk-M2RRHQ7N.mjs → chunk-J4ATY6HP.mjs} +1 -1
- package/dist/{chunk-Z7TZ4UY6.mjs → chunk-M3VAGNJQ.mjs} +1 -1
- package/dist/{chunk-2FQ6BTUM.mjs → chunk-OORRSFJ2.mjs} +8 -8
- package/dist/{chunk-PVCPJUY2.js → chunk-RIBK362W.js} +2 -2
- package/dist/{chunk-JCQYTCUM.js → chunk-SIS5VQAU.js} +5 -5
- package/dist/{chunk-EXZP5MWY.mjs → chunk-ZDABHOZ2.mjs} +2 -2
- package/dist/{chunk-QY2K3DFK.js → chunk-ZGTWYJC7.js} +167 -167
- package/dist/{chunk-COUZEHRU.js → chunk-ZSLL623D.js} +18 -18
- package/dist/executors.js +5 -5
- package/dist/executors.mjs +7 -7
- package/dist/generators.js +5 -5
- package/dist/generators.mjs +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +9 -9
- package/dist/src/executors/cloudflare-publish/executor.js +3 -3
- package/dist/src/executors/cloudflare-publish/executor.mjs +5 -5
- package/dist/src/executors/r2-upload-publish/executor.js +5 -5
- package/dist/src/executors/r2-upload-publish/executor.mjs +5 -5
- package/dist/src/executors/serve/executor.js +4 -4
- package/dist/src/executors/serve/executor.mjs +4 -4
- package/dist/src/generators/init/generator.js +2 -2
- package/dist/src/generators/init/generator.mjs +2 -2
- package/dist/src/generators/worker/generator.js +5 -5
- package/dist/src/generators/worker/generator.mjs +5 -5
- package/dist/src/utils/http-handler.mjs +1 -1
- package/dist/src/utils/index.js +3 -3
- package/dist/src/utils/index.mjs +3 -3
- package/dist/src/utils/r2-bucket-helpers.js +3 -3
- package/dist/src/utils/r2-bucket-helpers.mjs +3 -3
- package/dist/tsup.config.mjs +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Storm Ops - Cloudflare Tools
|
|
4
4
|
|
|
5
|
+
## [0.71.95](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.95) (03/19/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- **monorepo:** Update `README.md` files ([46aa73215](https://github.com/storm-software/storm-ops/commit/46aa73215))
|
|
10
|
+
|
|
11
|
+
### Updated Dependencies
|
|
12
|
+
|
|
13
|
+
- Updated **workspace-tools** to **v1.295.21**
|
|
14
|
+
- Updated **config-tools** to **v1.189.45**
|
|
15
|
+
- Updated **config** to **v1.136.4**
|
|
16
|
+
|
|
17
|
+
## [0.71.94](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.94) (03/19/2026)
|
|
18
|
+
|
|
19
|
+
### Miscellaneous
|
|
20
|
+
|
|
21
|
+
- **monorepo:** Regenerate `README.md` files ([419117bcf](https://github.com/storm-software/storm-ops/commit/419117bcf))
|
|
22
|
+
|
|
23
|
+
### Updated Dependencies
|
|
24
|
+
|
|
25
|
+
- Updated **workspace-tools** to **v1.295.20**
|
|
26
|
+
- Updated **config-tools** to **v1.189.44**
|
|
27
|
+
- Updated **config** to **v1.136.3**
|
|
28
|
+
|
|
5
29
|
## [0.71.93](https://github.com/storm-software/storm-ops/releases/tag/cloudflare-tools%400.71.93) (03/19/2026)
|
|
6
30
|
|
|
7
31
|
### Miscellaneous
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getEncoding,
|
|
6
6
|
getInternalDependencies,
|
|
7
7
|
uploadFile
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-M3VAGNJQ.mjs";
|
|
9
9
|
import {
|
|
10
10
|
createCliOptions,
|
|
11
11
|
getPackageInfo
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
findWorkspaceRoot,
|
|
15
15
|
getConfig
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3LRZKOV5.mjs";
|
|
17
17
|
import {
|
|
18
18
|
correctPaths,
|
|
19
19
|
joinPaths,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
writeSuccess,
|
|
22
22
|
writeTrace,
|
|
23
23
|
writeWarning
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-ZDABHOZ2.mjs";
|
|
25
25
|
|
|
26
26
|
// src/executors/r2-upload-publish/executor.ts
|
|
27
27
|
import {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
joinPaths,
|
|
8
8
|
writeTrace,
|
|
9
9
|
writeWarning
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZDABHOZ2.mjs";
|
|
11
11
|
|
|
12
12
|
// ../config-tools/src/utilities/find-up.ts
|
|
13
13
|
import { existsSync } from "node:fs";
|
|
@@ -186,7 +186,7 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
186
186
|
schemaRegistry.add(fatalColorSchema, {
|
|
187
187
|
description: "The fatal color of the workspace"
|
|
188
188
|
});
|
|
189
|
-
var performanceColorSchema = z._default(colorSchema, "#
|
|
189
|
+
var performanceColorSchema = z._default(colorSchema, "#80fd74");
|
|
190
190
|
schemaRegistry.add(performanceColorSchema, {
|
|
191
191
|
description: "The performance color of the workspace"
|
|
192
192
|
});
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkRIBK362Wjs = require('./chunk-RIBK362W.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
|
|
79
|
+
return _chunkRIBK362Wjs.correctPaths.call(void 0,
|
|
80
80
|
_nullishCoalesce(process.env.STORM_WORKSPACE_ROOT, () => ( process.env.NX_WORKSPACE_ROOT_PATH))
|
|
81
81
|
);
|
|
82
82
|
}
|
|
83
|
-
return
|
|
83
|
+
return _chunkRIBK362Wjs.correctPaths.call(void 0,
|
|
84
84
|
findFolderUp(
|
|
85
85
|
_nullishCoalesce(pathInsideMonorepo, () => ( process.cwd())),
|
|
86
86
|
rootFiles,
|
|
@@ -186,7 +186,7 @@ var fatalColorSchema = z.optional(colorSchema);
|
|
|
186
186
|
schemaRegistry.add(fatalColorSchema, {
|
|
187
187
|
description: "The fatal color of the workspace"
|
|
188
188
|
});
|
|
189
|
-
var performanceColorSchema = z._default(colorSchema, "#
|
|
189
|
+
var performanceColorSchema = z._default(colorSchema, "#80fd74");
|
|
190
190
|
schemaRegistry.add(performanceColorSchema, {
|
|
191
191
|
description: "The performance color of the workspace"
|
|
192
192
|
});
|
|
@@ -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
|
-
|
|
736
|
+
_chunkRIBK362Wjs.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 :
|
|
820
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkRIBK362Wjs.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 :
|
|
834
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : _chunkRIBK362Wjs.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
|
-
|
|
851
|
+
_chunkRIBK362Wjs.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
|
-
|
|
867
|
+
_chunkRIBK362Wjs.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`] ?
|
|
948
|
-
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ?
|
|
947
|
+
configFile: process.env[`${prefix}WORKSPACE_CONFIG_FILE`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_CONFIG_FILE`]) : void 0,
|
|
948
|
+
workspaceRoot: process.env[`${prefix}WORKSPACE_ROOT`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}WORKSPACE_ROOT`]) : void 0,
|
|
949
949
|
directories: {
|
|
950
|
-
cache: process.env[`${prefix}CACHE_DIR`] ?
|
|
951
|
-
data: process.env[`${prefix}DATA_DIR`] ?
|
|
952
|
-
config: process.env[`${prefix}CONFIG_DIR`] ?
|
|
953
|
-
temp: process.env[`${prefix}TEMP_DIR`] ?
|
|
954
|
-
log: process.env[`${prefix}LOG_DIR`] ?
|
|
955
|
-
build: process.env[`${prefix}BUILD_DIR`] ?
|
|
950
|
+
cache: process.env[`${prefix}CACHE_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIR`]) : process.env[`${prefix}CACHE_DIRECTORY`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}CACHE_DIRECTORY`]) : void 0,
|
|
951
|
+
data: process.env[`${prefix}DATA_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIR`]) : process.env[`${prefix}DATA_DIRECTORY`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}DATA_DIRECTORY`]) : void 0,
|
|
952
|
+
config: process.env[`${prefix}CONFIG_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIR`]) : process.env[`${prefix}CONFIG_DIRECTORY`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}CONFIG_DIRECTORY`]) : void 0,
|
|
953
|
+
temp: process.env[`${prefix}TEMP_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIR`]) : process.env[`${prefix}TEMP_DIRECTORY`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}TEMP_DIRECTORY`]) : void 0,
|
|
954
|
+
log: process.env[`${prefix}LOG_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIR`]) : process.env[`${prefix}LOG_DIRECTORY`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}LOG_DIRECTORY`]) : void 0,
|
|
955
|
+
build: process.env[`${prefix}BUILD_DIR`] ? _chunkRIBK362Wjs.correctPaths.call(void 0, process.env[`${prefix}BUILD_DIR`]) : process.env[`${prefix}BUILD_DIRECTORY`] ? _chunkRIBK362Wjs.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
|
-
) ?
|
|
979
|
+
) ? _chunkRIBK362Wjs.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`] =
|
|
1249
|
+
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = _chunkRIBK362Wjs.correctPaths.call(void 0,
|
|
1250
1250
|
config.configFile
|
|
1251
1251
|
);
|
|
1252
1252
|
}
|
|
1253
1253
|
if (config.workspaceRoot) {
|
|
1254
|
-
process.env[`${prefix}WORKSPACE_ROOT`] =
|
|
1255
|
-
process.env.NX_WORKSPACE_ROOT =
|
|
1256
|
-
process.env.NX_WORKSPACE_ROOT_PATH =
|
|
1254
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = _chunkRIBK362Wjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1255
|
+
process.env.NX_WORKSPACE_ROOT = _chunkRIBK362Wjs.correctPaths.call(void 0, config.workspaceRoot);
|
|
1256
|
+
process.env.NX_WORKSPACE_ROOT_PATH = _chunkRIBK362Wjs.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`] =
|
|
1260
|
+
process.env[`${prefix}CACHE_DIR`] = _chunkRIBK362Wjs.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`] =
|
|
1266
|
+
process.env[`${prefix}DATA_DIR`] = _chunkRIBK362Wjs.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`] =
|
|
1270
|
+
process.env[`${prefix}CONFIG_DIR`] = _chunkRIBK362Wjs.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`] =
|
|
1276
|
+
process.env[`${prefix}TEMP_DIR`] = _chunkRIBK362Wjs.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`] =
|
|
1280
|
+
process.env[`${prefix}LOG_DIR`] = _chunkRIBK362Wjs.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`] =
|
|
1284
|
+
process.env[`${prefix}BUILD_DIR`] = _chunkRIBK362Wjs.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
|
-
|
|
1346
|
+
_chunkRIBK362Wjs.getLogLevel.call(void 0, config.logLevel) >= _chunkRIBK362Wjs.LogLevel.DEBUG ? true : false
|
|
1347
1347
|
);
|
|
1348
|
-
process.env.RUST_BACKTRACE =
|
|
1348
|
+
process.env.RUST_BACKTRACE = _chunkRIBK362Wjs.getLogLevel.call(void 0, config.logLevel) >= _chunkRIBK362Wjs.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
|
-
|
|
1496
|
+
_chunkRIBK362Wjs.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,
|
|
1512
|
+
configInput.variant = _fs.existsSync.call(void 0, _chunkRIBK362Wjs.joinPaths.call(void 0, _workspaceRoot, "nx.json")) || _fs.existsSync.call(void 0, _chunkRIBK362Wjs.joinPaths.call(void 0, _workspaceRoot, ".nx")) || _fs.existsSync.call(void 0, _chunkRIBK362Wjs.joinPaths.call(void 0, _workspaceRoot, "lerna.json")) || _fs.existsSync.call(void 0, _chunkRIBK362Wjs.joinPaths.call(void 0, _workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
1513
1513
|
}
|
|
1514
1514
|
try {
|
|
1515
1515
|
result = applyDefaultConfig(
|
|
@@ -1520,7 +1520,7 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
1520
1520
|
throw new Error(
|
|
1521
1521
|
`Failed to parse Storm Workspace configuration${_optionalChain([error, 'optionalAccess', _35 => _35.message]) ? `: ${error.message}` : ""}
|
|
1522
1522
|
|
|
1523
|
-
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${
|
|
1523
|
+
Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${_chunkRIBK362Wjs.formatLogMessage.call(void 0,
|
|
1524
1524
|
configInput
|
|
1525
1525
|
)}`,
|
|
1526
1526
|
{
|
|
@@ -1565,9 +1565,9 @@ var loadStormWorkspaceConfig = async (workspaceRoot, skipLogs = false) => {
|
|
|
1565
1565
|
);
|
|
1566
1566
|
setConfigEnv(config);
|
|
1567
1567
|
if (!skipLogs && !config.skipConfigLogging) {
|
|
1568
|
-
|
|
1568
|
+
_chunkRIBK362Wjs.writeTrace.call(void 0,
|
|
1569
1569
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
1570
|
-
${
|
|
1570
|
+
${_chunkRIBK362Wjs.formatLogMessage.call(void 0, config)}`,
|
|
1571
1571
|
config
|
|
1572
1572
|
);
|
|
1573
1573
|
}
|
|
@@ -9,7 +9,7 @@ var __commonJS = (cb, mod) => function __require2() {
|
|
|
9
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
12
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__544fc81e26f13ef0455e9a50e1cc2f07/node_modules/tsup/assets/esm_shims.js
|
|
13
13
|
import { fileURLToPath } from "url";
|
|
14
14
|
import path from "path";
|
|
15
15
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generator_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OORRSFJ2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
findWorkspaceRoot,
|
|
6
6
|
getConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3LRZKOV5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
brandIcon,
|
|
10
10
|
getStopwatch,
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
writeFatal,
|
|
14
14
|
writeInfo,
|
|
15
15
|
writeTrace
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZDABHOZ2.mjs";
|
|
17
17
|
import {
|
|
18
18
|
__dirname
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5GHEIPID.mjs";
|
|
20
20
|
|
|
21
21
|
// src/generators/worker/generator.ts
|
|
22
22
|
import {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getWorkspaceConfig,
|
|
9
9
|
schemaRegistry,
|
|
10
10
|
workspaceConfigSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3LRZKOV5.mjs";
|
|
12
12
|
import {
|
|
13
13
|
brandIcon,
|
|
14
14
|
correctPaths,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
writeSuccess,
|
|
25
25
|
writeTrace,
|
|
26
26
|
writeWarning
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZDABHOZ2.mjs";
|
|
28
28
|
import {
|
|
29
29
|
__dirname
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5GHEIPID.mjs";
|
|
31
31
|
|
|
32
32
|
// ../config-tools/src/utilities/apply-workspace-tokens.ts
|
|
33
33
|
var applyWorkspaceBaseTokens = async (option, tokenParams) => {
|
|
@@ -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.
|
|
10
|
+
version: "0.71.95",
|
|
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: [
|
|
@@ -132,8 +132,8 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
132
132
|
module: "dist/index.mjs",
|
|
133
133
|
typings: "dist/index.d.ts",
|
|
134
134
|
dependencies: {
|
|
135
|
-
"@aws-sdk/client-s3": "^3.
|
|
136
|
-
"@aws-sdk/lib-storage": "^3.
|
|
135
|
+
"@aws-sdk/client-s3": "^3.1014.0",
|
|
136
|
+
"@aws-sdk/lib-storage": "^3.1014.0",
|
|
137
137
|
"@smithy/node-http-handler": "^4.5.0",
|
|
138
138
|
defu: "catalog:",
|
|
139
139
|
glob: "catalog:",
|
|
@@ -149,16 +149,16 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
|
|
|
149
149
|
nx: "catalog:",
|
|
150
150
|
tsup: "catalog:",
|
|
151
151
|
untyped: "catalog:",
|
|
152
|
-
wrangler: "^4.
|
|
152
|
+
wrangler: "^4.76.0"
|
|
153
153
|
},
|
|
154
154
|
peerDependencies: {
|
|
155
155
|
"@nx/devkit": "catalog:",
|
|
156
156
|
"@nx/js": "catalog:",
|
|
157
157
|
"@nx/node": "catalog:",
|
|
158
158
|
"@nx/web": "catalog:",
|
|
159
|
-
"@storm-software/config": "1.136.
|
|
160
|
-
"@storm-software/config-tools": "1.189.
|
|
161
|
-
"@storm-software/workspace-tools": "1.295.
|
|
159
|
+
"@storm-software/config": "1.136.4",
|
|
160
|
+
"@storm-software/config-tools": "1.189.45",
|
|
161
|
+
"@storm-software/workspace-tools": "1.295.21",
|
|
162
162
|
nx: "catalog:",
|
|
163
163
|
tsup: "catalog:",
|
|
164
164
|
wrangler: ">=3.58.0"
|
|
@@ -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
|
|
3
|
+
var _chunkFPBPAFAPjs = require('./chunk-FPBPAFAP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk3U6ZPFIVjs = require('./chunk-3U6ZPFIV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ var _chunkGBAVURC4js = require('./chunk-GBAVURC4.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkRIBK362Wjs = require('./chunk-RIBK362W.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 =
|
|
49
|
+
const stopwatch = _chunkRIBK362Wjs.getStopwatch.call(void 0, "Storm Worker generator");
|
|
50
50
|
let config;
|
|
51
51
|
try {
|
|
52
|
-
const workspaceRoot =
|
|
53
|
-
config = await
|
|
54
|
-
|
|
55
|
-
`${
|
|
52
|
+
const workspaceRoot = _chunk3U6ZPFIVjs.findWorkspaceRoot.call(void 0, );
|
|
53
|
+
config = await _chunk3U6ZPFIVjs.getConfig.call(void 0, workspaceRoot);
|
|
54
|
+
_chunkRIBK362Wjs.writeInfo.call(void 0,
|
|
55
|
+
`${_chunkRIBK362Wjs.brandIcon.call(void 0, config)} Running the Storm Worker generator...
|
|
56
56
|
|
|
57
57
|
`,
|
|
58
58
|
config
|
|
59
59
|
);
|
|
60
|
-
|
|
60
|
+
_chunkRIBK362Wjs.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
|
-
|
|
65
|
+
_chunkRIBK362Wjs.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
|
|
73
|
+
await _chunkFPBPAFAPjs.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
|
-
|
|
141
|
+
_chunkRIBK362Wjs.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
|
-
|
|
145
|
+
_chunkRIBK362Wjs.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}`,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GHEIPID.mjs";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
var require_package = __commonJS({
|
|
7
7
|
"package.json"(exports, module) {
|
|
8
8
|
module.exports = {
|
|
9
9
|
name: "@storm-software/cloudflare-tools",
|
|
10
|
-
version: "0.71.
|
|
10
|
+
version: "0.71.95",
|
|
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: [
|
|
@@ -132,8 +132,8 @@ var require_package = __commonJS({
|
|
|
132
132
|
module: "dist/index.mjs",
|
|
133
133
|
typings: "dist/index.d.ts",
|
|
134
134
|
dependencies: {
|
|
135
|
-
"@aws-sdk/client-s3": "^3.
|
|
136
|
-
"@aws-sdk/lib-storage": "^3.
|
|
135
|
+
"@aws-sdk/client-s3": "^3.1014.0",
|
|
136
|
+
"@aws-sdk/lib-storage": "^3.1014.0",
|
|
137
137
|
"@smithy/node-http-handler": "^4.5.0",
|
|
138
138
|
defu: "catalog:",
|
|
139
139
|
glob: "catalog:",
|
|
@@ -149,16 +149,16 @@ var require_package = __commonJS({
|
|
|
149
149
|
nx: "catalog:",
|
|
150
150
|
tsup: "catalog:",
|
|
151
151
|
untyped: "catalog:",
|
|
152
|
-
wrangler: "^4.
|
|
152
|
+
wrangler: "^4.76.0"
|
|
153
153
|
},
|
|
154
154
|
peerDependencies: {
|
|
155
155
|
"@nx/devkit": "catalog:",
|
|
156
156
|
"@nx/js": "catalog:",
|
|
157
157
|
"@nx/node": "catalog:",
|
|
158
158
|
"@nx/web": "catalog:",
|
|
159
|
-
"@storm-software/config": "1.136.
|
|
160
|
-
"@storm-software/config-tools": "1.189.
|
|
161
|
-
"@storm-software/workspace-tools": "1.295.
|
|
159
|
+
"@storm-software/config": "1.136.4",
|
|
160
|
+
"@storm-software/config-tools": "1.189.45",
|
|
161
|
+
"@storm-software/workspace-tools": "1.295.21",
|
|
162
162
|
nx: "catalog:",
|
|
163
163
|
tsup: "catalog:",
|
|
164
164
|
wrangler: ">=3.58.0"
|
|
@@ -41,7 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
41
41
|
warning: "#e3b341",
|
|
42
42
|
danger: "#D8314A",
|
|
43
43
|
fatal: "#51070f",
|
|
44
|
-
performance: "#
|
|
44
|
+
performance: "#13c302",
|
|
45
45
|
link: "#3fa6ff",
|
|
46
46
|
positive: "#22c55e",
|
|
47
47
|
negative: "#dc2626",
|
|
@@ -59,7 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
59
59
|
warning: "#f3d371",
|
|
60
60
|
danger: "#D8314A",
|
|
61
61
|
fatal: "#a40e26",
|
|
62
|
-
performance: "#
|
|
62
|
+
performance: "#80fd74",
|
|
63
63
|
link: "#3fa6ff",
|
|
64
64
|
positive: "#22c55e",
|
|
65
65
|
negative: "#dc2626",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkRIBK362Wjs = require('./chunk-RIBK362W.js');
|
|
7
7
|
|
|
8
8
|
// src/utils/r2-bucket-helpers.ts
|
|
9
9
|
var _libstorage = require('@aws-sdk/lib-storage');
|
|
10
10
|
var _crypto = require('crypto');
|
|
11
11
|
var _prettybytes = require('pretty-bytes'); var _prettybytes2 = _interopRequireDefault(_prettybytes);
|
|
12
12
|
async function uploadFile(client, bucketName, bucketPath, fileName, version, fileContent, contentType = "application/octet-stream", isDryRun = false) {
|
|
13
|
-
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName :
|
|
14
|
-
|
|
13
|
+
const key = _optionalChain([(!_optionalChain([bucketPath, 'optionalAccess', _ => _.trim, 'call', _2 => _2()]) || _optionalChain([bucketPath, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) === "/" ? fileName : _chunkRIBK362Wjs.joinPaths.call(void 0, bucketPath.trim(), fileName)), 'optionalAccess', _5 => _5.replace, 'call', _6 => _6(/^\/+/g, "")]) || "";
|
|
14
|
+
_chunkRIBK362Wjs.writeDebug.call(void 0,
|
|
15
15
|
`Uploading ${key} (content-type: ${contentType}, size: ${_prettybytes2.default.call(void 0,
|
|
16
16
|
Buffer.byteLength(fileContent, getEncoding(contentType))
|
|
17
17
|
)}) to the ${bucketName} R2 bucket`
|
|
@@ -33,10 +33,10 @@ async function uploadFile(client, bucketName, bucketPath, fileName, version, fil
|
|
|
33
33
|
});
|
|
34
34
|
await upload.done();
|
|
35
35
|
} else {
|
|
36
|
-
|
|
36
|
+
_chunkRIBK362Wjs.writeWarning.call(void 0, "[Dry run]: Skipping upload to the R2 bucket.");
|
|
37
37
|
}
|
|
38
38
|
} catch (error) {
|
|
39
|
-
|
|
39
|
+
_chunkRIBK362Wjs.writeError.call(void 0, `Failed to upload ${key} to the ${bucketName} R2 bucket.`);
|
|
40
40
|
throw error;
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -41,7 +41,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
41
41
|
warning: "#e3b341",
|
|
42
42
|
danger: "#D8314A",
|
|
43
43
|
fatal: "#51070f",
|
|
44
|
-
performance: "#
|
|
44
|
+
performance: "#13c302",
|
|
45
45
|
link: "#3fa6ff",
|
|
46
46
|
positive: "#22c55e",
|
|
47
47
|
negative: "#dc2626",
|
|
@@ -59,7 +59,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
59
59
|
warning: "#f3d371",
|
|
60
60
|
danger: "#D8314A",
|
|
61
61
|
fatal: "#a40e26",
|
|
62
|
-
performance: "#
|
|
62
|
+
performance: "#80fd74",
|
|
63
63
|
link: "#3fa6ff",
|
|
64
64
|
positive: "#22c55e",
|
|
65
65
|
negative: "#dc2626",
|