@storm-software/cloudflare-tools 0.55.43 → 0.55.44

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 (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{chunk-MESLYSHV.mjs → chunk-75BWJSFW.mjs} +9 -9
  3. package/dist/{chunk-HF5FM2V2.js → chunk-AXF5C7QR.js} +3 -3
  4. package/dist/{chunk-MCQ4YOON.js → chunk-CAC2PNUJ.js} +17 -17
  5. package/dist/{chunk-5QU7G4BP.mjs → chunk-FVMS7RMT.mjs} +5 -5
  6. package/dist/{chunk-FK6PN2T3.js → chunk-HWJBDRIG.js} +2 -2
  7. package/dist/{chunk-6D3NUIUL.js → chunk-ISO7UOVA.js} +182 -178
  8. package/dist/{chunk-247N3JYF.js → chunk-JUJW77CM.js} +12 -12
  9. package/dist/{chunk-E22S7JBO.mjs → chunk-LY3NUGLI.mjs} +12 -8
  10. package/dist/{chunk-Q67NQSCF.mjs → chunk-MIKH2FI5.mjs} +1 -1
  11. package/dist/{chunk-M4FHQYTZ.mjs → chunk-R2SQ6ZOK.mjs} +2 -2
  12. package/dist/{chunk-H2ML72QF.js → chunk-R32N7B24.js} +47 -47
  13. package/dist/{chunk-S3S7EN37.mjs → chunk-STUGKRS5.mjs} +6 -6
  14. package/dist/{chunk-PW324BYD.js → chunk-TDNPRL4Y.js} +1 -1
  15. package/dist/{chunk-LEXIFHU6.mjs → chunk-TTDB2VCO.mjs} +1 -1
  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 +12 -12
  21. package/dist/index.mjs +16 -16
  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.d.mts +21 -5
  27. package/dist/src/executors/serve/executor.d.ts +21 -5
  28. package/dist/src/executors/serve/executor.js +4 -4
  29. package/dist/src/executors/serve/executor.mjs +3 -3
  30. package/dist/src/generators/init/generator.js +2 -2
  31. package/dist/src/generators/init/generator.mjs +1 -1
  32. package/dist/src/generators/worker/generator.js +5 -5
  33. package/dist/src/generators/worker/generator.mjs +4 -4
  34. package/dist/src/utils/index.js +3 -3
  35. package/dist/src/utils/index.mjs +2 -2
  36. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  37. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  38. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkMCQ4YOONjs = require('../../../chunk-MCQ4YOON.js');
4
- require('../../../chunk-HF5FM2V2.js');
3
+ var _chunkCAC2PNUJjs = require('../../../chunk-CAC2PNUJ.js');
5
4
  require('../../../chunk-VTHBMY4B.js');
6
- require('../../../chunk-H2ML72QF.js');
7
- require('../../../chunk-FK6PN2T3.js');
5
+ require('../../../chunk-AXF5C7QR.js');
6
+ require('../../../chunk-R32N7B24.js');
7
+ require('../../../chunk-HWJBDRIG.js');
8
8
  require('../../../chunk-J5SB6L2L.js');
9
9
 
10
10
 
11
- exports.default = _chunkMCQ4YOONjs.runExecutor;
11
+ exports.default = _chunkCAC2PNUJjs.runExecutor;
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  runExecutor
3
- } from "../../../chunk-S3S7EN37.mjs";
4
- import "../../../chunk-LEXIFHU6.mjs";
3
+ } from "../../../chunk-STUGKRS5.mjs";
5
4
  import "../../../chunk-YYEF6TFG.mjs";
6
- import "../../../chunk-MESLYSHV.mjs";
7
- import "../../../chunk-M4FHQYTZ.mjs";
5
+ import "../../../chunk-TTDB2VCO.mjs";
6
+ import "../../../chunk-75BWJSFW.mjs";
7
+ import "../../../chunk-R2SQ6ZOK.mjs";
8
8
  import "../../../chunk-3HMZSKJD.mjs";
9
9
  export {
10
10
  runExecutor as default
@@ -4,7 +4,7 @@ import z from 'zod';
4
4
  /**
5
5
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
6
6
  */
7
- declare const StormConfigSchema: z.ZodObject<{
7
+ declare const stormWorkspaceConfigSchema: z.ZodObject<{
8
8
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
9
9
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
10
  name: z.ZodOptional<z.ZodString>;
@@ -1243,12 +1243,28 @@ declare const StormConfigSchema: z.ZodObject<{
1243
1243
  extensions?: Record<string, any> | undefined;
1244
1244
  }>;
1245
1245
 
1246
- type TStormConfig = z.infer<typeof StormConfigSchema>;
1247
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
1248
- extensions: (TStormConfig["extensions"] & {
1246
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
1247
+ /**
1248
+ * The Storm workspace's configuration object
1249
+ *
1250
+ * @remarks
1251
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1252
+ *
1253
+ * @deprecated
1254
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
1255
+ */
1256
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
1257
+ extensions: (TStormWorkspaceConfig["extensions"] & {
1249
1258
  [extensionName in TExtensionName]: TExtensionConfig;
1250
1259
  }) | NonNullable<Record<string, any>>;
1251
1260
  };
1261
+ /**
1262
+ * The Storm workspace's configuration object
1263
+ *
1264
+ * @remarks
1265
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1266
+ */
1267
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
1252
1268
 
1253
1269
  // Generated by @storm-software/untyped
1254
1270
  // Do not edit this file directly
@@ -1296,7 +1312,7 @@ interface ServeExecutorSchema extends BaseExecutorSchema {
1296
1312
  logLevel?: "debug" | "info" | "log" | "warn" | "error" | "none";
1297
1313
  }
1298
1314
 
1299
- declare function serveExecutor(options: ServeExecutorSchema, context: ExecutorContext, config?: StormConfig): AsyncGenerator<{
1315
+ declare function serveExecutor(options: ServeExecutorSchema, context: ExecutorContext, config?: StormWorkspaceConfig): AsyncGenerator<{
1300
1316
  success: boolean;
1301
1317
  baseUrl: string;
1302
1318
  }, {
@@ -4,7 +4,7 @@ import z from 'zod';
4
4
  /**
5
5
  * Storm Workspace config values used during various dev-ops processes. It represents the config of the entire monorepo.
6
6
  */
7
- declare const StormConfigSchema: z.ZodObject<{
7
+ declare const stormWorkspaceConfigSchema: z.ZodObject<{
8
8
  $schema: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodDefault<z.ZodString>>>>;
9
9
  extends: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
10
10
  name: z.ZodOptional<z.ZodString>;
@@ -1243,12 +1243,28 @@ declare const StormConfigSchema: z.ZodObject<{
1243
1243
  extensions?: Record<string, any> | undefined;
1244
1244
  }>;
1245
1245
 
1246
- type TStormConfig = z.infer<typeof StormConfigSchema>;
1247
- type StormConfig<TExtensionName extends keyof TStormConfig["extensions"] = keyof TStormConfig["extensions"], TExtensionConfig extends TStormConfig["extensions"][TExtensionName] = TStormConfig["extensions"][TExtensionName]> = TStormConfig & {
1248
- extensions: (TStormConfig["extensions"] & {
1246
+ type TStormWorkspaceConfig = z.infer<typeof stormWorkspaceConfigSchema>;
1247
+ /**
1248
+ * The Storm workspace's configuration object
1249
+ *
1250
+ * @remarks
1251
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1252
+ *
1253
+ * @deprecated
1254
+ * This type is deprecated and will be removed in the next major version. Use `StormWorkspaceConfig` instead.
1255
+ */
1256
+ type StormConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = TStormWorkspaceConfig & {
1257
+ extensions: (TStormWorkspaceConfig["extensions"] & {
1249
1258
  [extensionName in TExtensionName]: TExtensionConfig;
1250
1259
  }) | NonNullable<Record<string, any>>;
1251
1260
  };
1261
+ /**
1262
+ * The Storm workspace's configuration object
1263
+ *
1264
+ * @remarks
1265
+ * This type is used to define the configuration object for the entire Storm workspace/monorepo. The value is extracted from the `storm-workspace.json` file in the workspace root and the currently configuration environment variables. The value can be obtained by calling `getWorkspaceConfig()` in `@storm-software/config-tools`.
1266
+ */
1267
+ type StormWorkspaceConfig<TExtensionName extends keyof TStormWorkspaceConfig["extensions"] = keyof TStormWorkspaceConfig["extensions"], TExtensionConfig extends TStormWorkspaceConfig["extensions"][TExtensionName] = TStormWorkspaceConfig["extensions"][TExtensionName]> = StormConfig<TExtensionName, TExtensionConfig>;
1252
1268
 
1253
1269
  // Generated by @storm-software/untyped
1254
1270
  // Do not edit this file directly
@@ -1296,7 +1312,7 @@ interface ServeExecutorSchema extends BaseExecutorSchema {
1296
1312
  logLevel?: "debug" | "info" | "log" | "warn" | "error" | "none";
1297
1313
  }
1298
1314
 
1299
- declare function serveExecutor(options: ServeExecutorSchema, context: ExecutorContext, config?: StormConfig): AsyncGenerator<{
1315
+ declare function serveExecutor(options: ServeExecutorSchema, context: ExecutorContext, config?: StormWorkspaceConfig): AsyncGenerator<{
1300
1316
  success: boolean;
1301
1317
  baseUrl: string;
1302
1318
  }, {
@@ -1,11 +1,11 @@
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 _chunk6D3NUIULjs = require('../../../chunk-6D3NUIUL.js');
3
+ var _chunkISO7UOVAjs = require('../../../chunk-ISO7UOVA.js');
4
4
 
5
5
 
6
6
  var _chunkVTHBMY4Bjs = require('../../../chunk-VTHBMY4B.js');
7
- require('../../../chunk-H2ML72QF.js');
8
- require('../../../chunk-FK6PN2T3.js');
7
+ require('../../../chunk-R32N7B24.js');
8
+ require('../../../chunk-HWJBDRIG.js');
9
9
 
10
10
 
11
11
 
@@ -60,7 +60,7 @@ async function* serveExecutor(options, context, config) {
60
60
  };
61
61
  }
62
62
  _chunkJ5SB6L2Ljs.__name.call(void 0, serveExecutor, "serveExecutor");
63
- var executor_default = _chunk6D3NUIULjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
63
+ var executor_default = _chunkISO7UOVAjs.withRunExecutor.call(void 0, "Cloudflare Serve executor", serveExecutor, {
64
64
  skipReadingConfig: false,
65
65
  hooks: {
66
66
  applyDefaultOptions: /* @__PURE__ */ _chunkJ5SB6L2Ljs.__name.call(void 0, (options) => {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  withRunExecutor
3
- } from "../../../chunk-E22S7JBO.mjs";
3
+ } from "../../../chunk-LY3NUGLI.mjs";
4
4
  import {
5
5
  createCliOptions
6
6
  } from "../../../chunk-YYEF6TFG.mjs";
7
- import "../../../chunk-MESLYSHV.mjs";
8
- import "../../../chunk-M4FHQYTZ.mjs";
7
+ import "../../../chunk-75BWJSFW.mjs";
8
+ import "../../../chunk-R2SQ6ZOK.mjs";
9
9
  import {
10
10
  __name,
11
11
  __require
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPW324BYDjs = require('../../../chunk-PW324BYD.js');
5
+ var _chunkTDNPRL4Yjs = require('../../../chunk-TDNPRL4Y.js');
6
6
  require('../../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkPW324BYDjs.generator_default; exports.initGenerator = _chunkPW324BYDjs.initGenerator; exports.initSchematic = _chunkPW324BYDjs.initSchematic;
11
+ exports.default = _chunkTDNPRL4Yjs.generator_default; exports.initGenerator = _chunkTDNPRL4Yjs.initGenerator; exports.initSchematic = _chunkTDNPRL4Yjs.initSchematic;
@@ -2,7 +2,7 @@ import {
2
2
  generator_default,
3
3
  initGenerator,
4
4
  initSchematic
5
- } from "../../../chunk-Q67NQSCF.mjs";
5
+ } from "../../../chunk-MIKH2FI5.mjs";
6
6
  import "../../../chunk-3HMZSKJD.mjs";
7
7
  export {
8
8
  generator_default as default,
@@ -2,13 +2,13 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk247N3JYFjs = require('../../../chunk-247N3JYF.js');
6
- require('../../../chunk-PW324BYD.js');
7
- require('../../../chunk-H2ML72QF.js');
8
- require('../../../chunk-FK6PN2T3.js');
5
+ var _chunkJUJW77CMjs = require('../../../chunk-JUJW77CM.js');
6
+ require('../../../chunk-R32N7B24.js');
7
+ require('../../../chunk-HWJBDRIG.js');
8
+ require('../../../chunk-TDNPRL4Y.js');
9
9
  require('../../../chunk-J5SB6L2L.js');
10
10
 
11
11
 
12
12
 
13
13
 
14
- exports.applicationGenerator = _chunk247N3JYFjs.applicationGenerator; exports.applicationSchematic = _chunk247N3JYFjs.applicationSchematic; exports.default = _chunk247N3JYFjs.generator_default;
14
+ exports.applicationGenerator = _chunkJUJW77CMjs.applicationGenerator; exports.applicationSchematic = _chunkJUJW77CMjs.applicationSchematic; exports.default = _chunkJUJW77CMjs.generator_default;
@@ -2,10 +2,10 @@ import {
2
2
  applicationGenerator,
3
3
  applicationSchematic,
4
4
  generator_default
5
- } from "../../../chunk-5QU7G4BP.mjs";
6
- import "../../../chunk-Q67NQSCF.mjs";
7
- import "../../../chunk-MESLYSHV.mjs";
8
- import "../../../chunk-M4FHQYTZ.mjs";
5
+ } from "../../../chunk-FVMS7RMT.mjs";
6
+ import "../../../chunk-75BWJSFW.mjs";
7
+ import "../../../chunk-R2SQ6ZOK.mjs";
8
+ import "../../../chunk-MIKH2FI5.mjs";
9
9
  import "../../../chunk-3HMZSKJD.mjs";
10
10
  export {
11
11
  applicationGenerator,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkHF5FM2V2js = require('../../chunk-HF5FM2V2.js');
6
- require('../../chunk-FK6PN2T3.js');
5
+ var _chunkAXF5C7QRjs = require('../../chunk-AXF5C7QR.js');
6
+ require('../../chunk-HWJBDRIG.js');
7
7
  require('../../chunk-J5SB6L2L.js');
8
8
 
9
9
 
10
10
 
11
- exports.getInternalDependencies = _chunkHF5FM2V2js.getInternalDependencies; exports.r2UploadFile = _chunkHF5FM2V2js.r2UploadFile;
11
+ exports.getInternalDependencies = _chunkAXF5C7QRjs.getInternalDependencies; exports.r2UploadFile = _chunkAXF5C7QRjs.r2UploadFile;
@@ -2,8 +2,8 @@ import "../../chunk-7Z5PILRU.mjs";
2
2
  import {
3
3
  getInternalDependencies,
4
4
  r2UploadFile
5
- } from "../../chunk-LEXIFHU6.mjs";
6
- import "../../chunk-M4FHQYTZ.mjs";
5
+ } from "../../chunk-TTDB2VCO.mjs";
6
+ import "../../chunk-R2SQ6ZOK.mjs";
7
7
  import "../../chunk-3HMZSKJD.mjs";
8
8
  export {
9
9
  getInternalDependencies,
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkHF5FM2V2js = require('../../chunk-HF5FM2V2.js');
5
- require('../../chunk-FK6PN2T3.js');
4
+ var _chunkAXF5C7QRjs = require('../../chunk-AXF5C7QR.js');
5
+ require('../../chunk-HWJBDRIG.js');
6
6
  require('../../chunk-J5SB6L2L.js');
7
7
 
8
8
 
9
9
 
10
- exports.getInternalDependencies = _chunkHF5FM2V2js.getInternalDependencies; exports.r2UploadFile = _chunkHF5FM2V2js.r2UploadFile;
10
+ exports.getInternalDependencies = _chunkAXF5C7QRjs.getInternalDependencies; exports.r2UploadFile = _chunkAXF5C7QRjs.r2UploadFile;
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "../../chunk-LEXIFHU6.mjs";
5
- import "../../chunk-M4FHQYTZ.mjs";
4
+ } from "../../chunk-TTDB2VCO.mjs";
5
+ import "../../chunk-R2SQ6ZOK.mjs";
6
6
  import "../../chunk-3HMZSKJD.mjs";
7
7
  export {
8
8
  getInternalDependencies,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/cloudflare-tools",
3
- "version": "0.55.43",
3
+ "version": "0.55.44",
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",