@continuous-excellence/ze-great-dashboard-aws 0.31.27 → 0.31.29

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 (2) hide show
  1. package/dist/lambda.mjs +68 -11
  2. package/package.json +2 -2
package/dist/lambda.mjs CHANGED
@@ -460,7 +460,7 @@ var require_dist_cjs = __commonJS({
460
460
  FieldPosition3[FieldPosition3["HEADER"] = 0] = "HEADER";
461
461
  FieldPosition3[FieldPosition3["TRAILER"] = 1] = "TRAILER";
462
462
  })(FieldPosition2 || (FieldPosition2 = {}));
463
- var SMITHY_CONTEXT_KEY3 = "__smithy_context";
463
+ var SMITHY_CONTEXT_KEY4 = "__smithy_context";
464
464
  var IniSectionType4;
465
465
  (function(IniSectionType5) {
466
466
  IniSectionType5["PROFILE"] = "profile";
@@ -480,7 +480,7 @@ var require_dist_cjs = __commonJS({
480
480
  exports.HttpAuthLocation = HttpAuthLocation;
481
481
  exports.IniSectionType = IniSectionType4;
482
482
  exports.RequestHandlerProtocol = RequestHandlerProtocol;
483
- exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY3;
483
+ exports.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY4;
484
484
  exports.getDefaultClientConfiguration = getDefaultClientConfiguration2;
485
485
  exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig2;
486
486
  }
@@ -13700,10 +13700,11 @@ var init_utils3 = __esm({
13700
13700
  });
13701
13701
 
13702
13702
  // node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js
13703
- var throwSigningPropertyError, validateSigningProperties, AwsSdkSigV4Signer, AWSSDKSigV4Signer;
13703
+ var import_types25, throwSigningPropertyError, hasEventStreamOutput, validateSigningProperties, AwsSdkSigV4Signer, AWSSDKSigV4Signer;
13704
13704
  var init_AwsSdkSigV4Signer = __esm({
13705
13705
  "node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/AwsSdkSigV4Signer.js"() {
13706
13706
  init_protocols();
13707
+ import_types25 = __toESM(require_dist_cjs());
13707
13708
  init_utils3();
13708
13709
  throwSigningPropertyError = (name, property) => {
13709
13710
  if (!property) {
@@ -13711,6 +13712,11 @@ var init_AwsSdkSigV4Signer = __esm({
13711
13712
  }
13712
13713
  return property;
13713
13714
  };
13715
+ hasEventStreamOutput = (signingProperties) => {
13716
+ const context = signingProperties.context;
13717
+ const eventStream = context?.[import_types25.SMITHY_CONTEXT_KEY]?.eventStream;
13718
+ return eventStream?.output === true;
13719
+ };
13714
13720
  validateSigningProperties = async (signingProperties) => {
13715
13721
  const context = throwSigningPropertyError("context", signingProperties.context);
13716
13722
  const config2 = throwSigningPropertyError("config", signingProperties.config);
@@ -13746,7 +13752,9 @@ var init_AwsSdkSigV4Signer = __esm({
13746
13752
  }
13747
13753
  const noSkewCorrection = await config2.disableClockSkewCorrection?.() === true;
13748
13754
  signingProperties._disableClockSkewCorrection = noSkewCorrection;
13749
- if (!noSkewCorrection) {
13755
+ const skipSkewSampling = noSkewCorrection || hasEventStreamOutput(signingProperties);
13756
+ signingProperties._skipClockSkewSampling = skipSkewSampling;
13757
+ if (!skipSkewSampling) {
13750
13758
  signingProperties._preRequestSystemClockOffset = config2.systemClockOffset;
13751
13759
  signingProperties._requestSentAt = Date.now();
13752
13760
  }
@@ -13760,7 +13768,7 @@ var init_AwsSdkSigV4Signer = __esm({
13760
13768
  errorHandler(signingProperties) {
13761
13769
  return (error63) => {
13762
13770
  const errorException = error63;
13763
- if (!signingProperties._disableClockSkewCorrection) {
13771
+ if (!signingProperties._skipClockSkewSampling && !signingProperties._disableClockSkewCorrection) {
13764
13772
  const serverTime = errorException.ServerTime ?? getDateHeader(errorException.$response);
13765
13773
  if (serverTime) {
13766
13774
  const config2 = throwSigningPropertyError("config", signingProperties.config);
@@ -13781,7 +13789,7 @@ var init_AwsSdkSigV4Signer = __esm({
13781
13789
  };
13782
13790
  }
13783
13791
  successHandler(httpResponse, signingProperties) {
13784
- if (signingProperties._disableClockSkewCorrection) {
13792
+ if (signingProperties._skipClockSkewSampling || signingProperties._disableClockSkewCorrection) {
13785
13793
  return;
13786
13794
  }
13787
13795
  const dateHeader = getDateHeader(httpResponse);
@@ -16107,7 +16115,7 @@ var init_package = __esm({
16107
16115
  "node_modules/@aws-sdk/nested-clients/package.json"() {
16108
16116
  package_default = {
16109
16117
  name: "@aws-sdk/nested-clients",
16110
- version: "3.997.47",
16118
+ version: "3.997.48",
16111
16119
  description: "Nested clients for AWS SDK packages.",
16112
16120
  homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
16113
16121
  license: "Apache-2.0",
@@ -16207,7 +16215,7 @@ var init_package = __esm({
16207
16215
  "test:watch": "yarn g:vitest watch"
16208
16216
  },
16209
16217
  dependencies: {
16210
- "@aws-sdk/core": "^3.978.2",
16218
+ "@aws-sdk/core": "^3.978.3",
16211
16219
  "@aws-sdk/signature-v4-multi-region": "^3.996.48",
16212
16220
  "@aws-sdk/types": "^3.974.6",
16213
16221
  "@smithy/core": "^3.35.2",
@@ -26166,7 +26174,7 @@ var require_dist_cjs16 = __commonJS({
26166
26174
  Region: { type: "builtInParams", name: "region" },
26167
26175
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
26168
26176
  };
26169
- var version2 = "3.1148.0";
26177
+ var version2 = "3.1149.0";
26170
26178
  var packageInfo = {
26171
26179
  version: version2
26172
26180
  };
@@ -27957,7 +27965,7 @@ var require_dist_cjs17 = __commonJS({
27957
27965
  Region: { type: "builtInParams", name: "region" },
27958
27966
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
27959
27967
  };
27960
- var version2 = "3.1148.0";
27968
+ var version2 = "3.1149.0";
27961
27969
  var packageInfo = {
27962
27970
  version: version2
27963
27971
  };
@@ -50285,6 +50293,7 @@ __export(util_exports, {
50285
50293
  required: () => required,
50286
50294
  safeExtend: () => safeExtend,
50287
50295
  shallowClone: () => shallowClone,
50296
+ sizeCaps: () => sizeCaps,
50288
50297
  slugify: () => slugify,
50289
50298
  stringifyPrimitive: () => stringifyPrimitive,
50290
50299
  toZod: () => toZod,
@@ -50804,6 +50813,18 @@ function prefixIssues(path, issues) {
50804
50813
  function unwrapMessage(message2) {
50805
50814
  return typeof message2 === "string" ? message2 : message2?.message;
50806
50815
  }
50816
+ function sizeCaps(defChecks) {
50817
+ const caps = [];
50818
+ for (const ch of defChecks ?? []) {
50819
+ const d5 = ch._zod.def;
50820
+ if (!/_(length|size)$|_equals$/.test(d5.check))
50821
+ break;
50822
+ const max = d5.maximum ?? d5.length ?? d5.size;
50823
+ if (max >= 0)
50824
+ caps.push([max, ch]);
50825
+ }
50826
+ return caps;
50827
+ }
50807
50828
  function attachSchema(issues, start, inst) {
50808
50829
  var _a4;
50809
50830
  for (let i5 = start; i5 < issues.length; i5++) {
@@ -52224,7 +52245,7 @@ ${content.join("\n")}
52224
52245
  var version = {
52225
52246
  major: 4,
52226
52247
  minor: 6,
52227
- patch: 5
52248
+ patch: 7
52228
52249
  };
52229
52250
 
52230
52251
  // node_modules/zod/v4/core/schemas.js
@@ -52980,6 +53001,31 @@ var $ZodDate = /* @__PURE__ */ $constructor("$ZodDate", (inst, def) => {
52980
53001
  return payload2;
52981
53002
  };
52982
53003
  });
53004
+ function capSize(inst, size) {
53005
+ const caps = sizeCaps(inst._zod.def.checks);
53006
+ if (!caps.length)
53007
+ return;
53008
+ const cap = Math.min(...caps.map((c5) => c5[0]));
53009
+ const parse3 = inst._zod.parse;
53010
+ inst._zod.parse = (payload2, ctx) => {
53011
+ const n3 = size(payload2.value);
53012
+ if (n3 > cap && !ctx?.skipChecks && ctx?.direction !== "backward") {
53013
+ for (const [max, ch] of sizeCaps(inst._zod.def.checks)) {
53014
+ if (n3 > max && ch._zod.def.when(payload2)) {
53015
+ const start = payload2.issues.length;
53016
+ ch._zod.check(payload2);
53017
+ payload2.issues[start].continue = false;
53018
+ attachSchema(payload2.issues, start, inst);
53019
+ return payload2;
53020
+ }
53021
+ }
53022
+ }
53023
+ return parse3(payload2, ctx);
53024
+ };
53025
+ }
53026
+ var arraySize = (input2) => Array.isArray(input2) ? input2.length : -1;
53027
+ var mapSize = (input2) => input2 instanceof Map ? input2.size : -1;
53028
+ var setSize = (input2) => input2 instanceof Set ? input2.size : -1;
52983
53029
  function handleArrayResult(result, final, index) {
52984
53030
  if (result.issues.length) {
52985
53031
  final.issues.push(...prefixIssues(index, result.issues));
@@ -53023,6 +53069,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
53023
53069
  }
53024
53070
  return payload2;
53025
53071
  };
53072
+ capSize(inst, arraySize);
53026
53073
  });
53027
53074
  function handlePropertyResult(result, final, key, input2, optin, optout) {
53028
53075
  const isPresent = key in input2;
@@ -53979,6 +54026,7 @@ var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
53979
54026
  return Promise.all(proms).then(() => payload2);
53980
54027
  return payload2;
53981
54028
  };
54029
+ capSize(inst, mapSize);
53982
54030
  });
53983
54031
  function handleMapResult(keyResult, valueResult, final, key, input2, inst, ctx) {
53984
54032
  if (keyResult.issues.length) {
@@ -54045,6 +54093,7 @@ var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
54045
54093
  return Promise.all(proms).then(() => payload2);
54046
54094
  return payload2;
54047
54095
  };
54096
+ capSize(inst, setSize);
54048
54097
  });
54049
54098
  function handleSetResult(result, final) {
54050
54099
  if (result.issues.length) {
@@ -63575,9 +63624,15 @@ function generateNullableCheck(doc, ctx, schema, accessor, buildsValue = true) {
63575
63624
  doc.write(`}`);
63576
63625
  return outputVar;
63577
63626
  }
63627
+ function generateSizeGate(doc, schema, size) {
63628
+ for (const [max, check2] of sizeCaps(schema._zod.def.checks)) {
63629
+ doc.write(`if (${size} > ${numericOperand(max, check2._zod.def.check)}) return INVALID;`);
63630
+ }
63631
+ }
63578
63632
  function generateArrayCheck(doc, ctx, schema, accessor, buildsValue = true) {
63579
63633
  const def = schema._zod.def;
63580
63634
  doc.write(`if (!Array.isArray(${accessor})) return INVALID;`);
63635
+ generateSizeGate(doc, schema, `${accessor}.length`);
63581
63636
  const outputVar = buildsValue ? newVar(ctx) : null;
63582
63637
  const iVar = newVar(ctx);
63583
63638
  const elemVar = newVar(ctx);
@@ -63977,6 +64032,7 @@ function literalPropertyKey(ctx, key) {
63977
64032
  function generateMapCheck(doc, ctx, schema, accessor) {
63978
64033
  const def = schema._zod.def;
63979
64034
  doc.write(`if (!(${accessor} instanceof Map)) return INVALID;`);
64035
+ generateSizeGate(doc, schema, `${accessor}.size`);
63980
64036
  const outputVar = newVar(ctx);
63981
64037
  const kVar = newVar(ctx);
63982
64038
  const valVar = newVar(ctx);
@@ -63993,6 +64049,7 @@ function generateMapCheck(doc, ctx, schema, accessor) {
63993
64049
  function generateSetCheck(doc, ctx, schema, accessor) {
63994
64050
  const def = schema._zod.def;
63995
64051
  doc.write(`if (!(${accessor} instanceof Set)) return INVALID;`);
64052
+ generateSizeGate(doc, schema, `${accessor}.size`);
63996
64053
  const outputVar = newVar(ctx);
63997
64054
  const valVar = newVar(ctx);
63998
64055
  doc.write(`const ${outputVar} = new Set();`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-excellence/ze-great-dashboard-aws",
3
- "version": "0.31.27",
3
+ "version": "0.31.29",
4
4
  "type": "module",
5
5
  "description": "AWS server runtime and CloudFormation deployment tooling for Ze Great Dashboard.",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "dependencies": {
37
37
  "fflate": "^0.8.3",
38
38
  "yaml": "^2.9.1",
39
- "zod": "^4.6.5"
39
+ "zod": "^4.6.7"
40
40
  },
41
41
  "devDependencies": {
42
42
  "esbuild": "^0.28.2",