@storm-software/config-tools 1.48.0 → 1.50.0
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 +19 -0
- package/index.cjs +6 -2
- package/index.js +6 -2
- package/meta.cjs.json +1 -1
- package/meta.esm.json +1 -1
- package/package.json +1 -1
- package/utilities/logger.cjs +1 -1
- package/utilities/logger.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
## 1.50.0 (2024-06-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🚀 Features
|
|
5
|
+
|
|
6
|
+
- **config-tools:** Enhance the validations for the `cloudflareAccountId` configuration ([9fbc1954](https://github.com/storm-software/storm-ops/commit/9fbc1954))
|
|
7
|
+
|
|
8
|
+
## 1.49.0 (2024-05-29)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### 🚀 Features
|
|
12
|
+
|
|
13
|
+
- **cloudflare-tools:** Update worker generator to add hono depenendency ([946a9e59](https://github.com/storm-software/storm-ops/commit/946a9e59))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### ❤️ Thank You
|
|
17
|
+
|
|
18
|
+
- Patrick Sullivan
|
|
19
|
+
|
|
1
20
|
## 1.48.0 (2024-05-29)
|
|
2
21
|
|
|
3
22
|
### 🚀 Features
|
package/index.cjs
CHANGED
|
@@ -68257,7 +68257,7 @@ var StormConfigSchema = z2.object({
|
|
|
68257
68257
|
]).default("debug").describe(
|
|
68258
68258
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
68259
68259
|
),
|
|
68260
|
-
cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
68260
|
+
cloudflareAccountId: z2.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
68261
68261
|
configFile: z2.string().trim().nullable().default(null).describe(
|
|
68262
68262
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
68263
68263
|
),
|
|
@@ -68850,7 +68850,7 @@ var getConfigEnv = () => {
|
|
|
68850
68850
|
branch: process.env[`${prefix}BRANCH`],
|
|
68851
68851
|
preid: process.env[`${prefix}PRE_ID`],
|
|
68852
68852
|
externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
|
|
68853
|
-
cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
|
|
68853
|
+
cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] ? process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] : process.env.CLOUDFLARE_ACCOUNT_ID ? process.env.CLOUDFLARE_ACCOUNT_ID : process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
|
|
68854
68854
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
68855
68855
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
68856
68856
|
) ? getLogLevelLabel(
|
|
@@ -69058,6 +69058,10 @@ var setConfigEnv = (config) => {
|
|
|
69058
69058
|
);
|
|
69059
69059
|
}
|
|
69060
69060
|
if (config.cloudflareAccountId) {
|
|
69061
|
+
process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
|
|
69062
|
+
config.cloudflareAccountId
|
|
69063
|
+
);
|
|
69064
|
+
process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
|
|
69061
69065
|
process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
|
|
69062
69066
|
config.cloudflareAccountId
|
|
69063
69067
|
);
|
package/index.js
CHANGED
|
@@ -68214,7 +68214,7 @@ var StormConfigSchema = z2.object({
|
|
|
68214
68214
|
]).default("debug").describe(
|
|
68215
68215
|
"The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
|
|
68216
68216
|
),
|
|
68217
|
-
cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
68217
|
+
cloudflareAccountId: z2.string().trim().toLowerCase().length(32).regex(/^([0-9a-fA-F]{32})$/i).nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
|
|
68218
68218
|
configFile: z2.string().trim().nullable().default(null).describe(
|
|
68219
68219
|
"The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
|
|
68220
68220
|
),
|
|
@@ -68807,7 +68807,7 @@ var getConfigEnv = () => {
|
|
|
68807
68807
|
branch: process.env[`${prefix}BRANCH`],
|
|
68808
68808
|
preid: process.env[`${prefix}PRE_ID`],
|
|
68809
68809
|
externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
|
|
68810
|
-
cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
|
|
68810
|
+
cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] ? process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] : process.env.CLOUDFLARE_ACCOUNT_ID ? process.env.CLOUDFLARE_ACCOUNT_ID : process.env.STORM_BOT_CLOUDFLARE_ACCOUNT,
|
|
68811
68811
|
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
|
|
68812
68812
|
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
68813
68813
|
) ? getLogLevelLabel(
|
|
@@ -69015,6 +69015,10 @@ var setConfigEnv = (config) => {
|
|
|
69015
69015
|
);
|
|
69016
69016
|
}
|
|
69017
69017
|
if (config.cloudflareAccountId) {
|
|
69018
|
+
process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
|
|
69019
|
+
config.cloudflareAccountId
|
|
69020
|
+
);
|
|
69021
|
+
process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
|
|
69018
69022
|
process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
|
|
69019
69023
|
config.cloudflareAccountId
|
|
69020
69024
|
);
|