@storm-software/cloudflare-tools 0.3.0 → 0.5.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 CHANGED
@@ -1,3 +1,22 @@
1
+ ## 0.5.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
+ ## 0.4.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
  ## 0.3.0 (2024-05-29)
2
21
 
3
22
  ### 🚀 Features
package/index.js CHANGED
@@ -66706,7 +66706,7 @@ var init_schema = __esm({
66706
66706
  ]).default("debug").describe(
66707
66707
  "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`)."
66708
66708
  ),
66709
- cloudflareAccountId: z2.string().trim().nullable().default(null).describe("The default Cloudflare account ID of the workspace"),
66709
+ 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"),
66710
66710
  configFile: z2.string().trim().nullable().default(null).describe(
66711
66711
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
66712
66712
  ),
@@ -68962,7 +68962,7 @@ var init_get_env = __esm({
68962
68962
  branch: process.env[`${prefix}BRANCH`],
68963
68963
  preid: process.env[`${prefix}PRE_ID`],
68964
68964
  externalPackagePatterns: process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`] ? JSON.parse(process.env[`${prefix}EXTERNAL_PACKAGE_PATTERNS`]) : [],
68965
- cloudflareAccountId: process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`],
68965
+ 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,
68966
68966
  logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? process.env[`${prefix}LOG_LEVEL`] && Number.isSafeInteger(
68967
68967
  Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
68968
68968
  ) ? getLogLevelLabel(
@@ -69178,6 +69178,10 @@ var init_set_env = __esm({
69178
69178
  );
69179
69179
  }
69180
69180
  if (config.cloudflareAccountId) {
69181
+ process.env.STORM_BOT_CLOUDFLARE_ACCOUNT ??= String(
69182
+ config.cloudflareAccountId
69183
+ );
69184
+ process.env.CLOUDFLARE_ACCOUNT_ID ??= String(config.cloudflareAccountId);
69181
69185
  process.env[`${prefix}CLOUDFLARE_ACCOUNT_ID`] = String(
69182
69186
  config.cloudflareAccountId
69183
69187
  );
@@ -400806,7 +400810,7 @@ var require_package8 = __commonJS({
400806
400810
  "packages/cloudflare-tools/package.json"(exports2, module2) {
400807
400811
  module2.exports = {
400808
400812
  name: "@storm-software/cloudflare-tools",
400809
- version: "0.3.0",
400813
+ version: "0.5.0",
400810
400814
  private: false,
400811
400815
  description: "\u26A1The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
400812
400816
  keywords: [