@continuous-excellence/ze-great-dashboard-aws 0.31.55 → 0.31.56

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 +5 -2
  2. package/package.json +1 -1
package/dist/lambda.mjs CHANGED
@@ -76559,7 +76559,8 @@ function validateClaimsSet(protectedHeader, claimsSetBytes, options = {}) {
76559
76559
  throw new TypeError("Invalid clockTolerance option type");
76560
76560
  tolerance = clockTolerance;
76561
76561
  }
76562
- validateInput("clockTolerance option", tolerance);
76562
+ if (validateInput("clockTolerance option", tolerance), tolerance < 0)
76563
+ throw new TypeError("Invalid clockTolerance option input");
76563
76564
  const { currentDate } = options, now = validateInput("currentDate option", epoch(currentDate === void 0 ? /* @__PURE__ */ new Date() : currentDate)), iat = validateNumericDate(claimsSet, "iat", maxTokenAge !== void 0), nbf = validateNumericDate(claimsSet, "nbf");
76564
76565
  if (nbf !== void 0 && nbf > now + tolerance)
76565
76566
  throw new JWTClaimValidationFailed('"nbf" claim timestamp check failed', claimsSet, "nbf", checkFailed);
@@ -76645,7 +76646,7 @@ function isCloudflareWorkers() {
76645
76646
  return typeof WebSocketPair < "u" || typeof navigator < "u" && navigator.userAgent === "Cloudflare-Workers" || typeof EdgeRuntime < "u" && EdgeRuntime === "vercel";
76646
76647
  }
76647
76648
  var USER_AGENT2;
76648
- (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT2 = "jose/v6.2.14");
76649
+ (typeof navigator > "u" || !navigator.userAgent?.startsWith?.("Mozilla/5.0 ")) && (USER_AGENT2 = "jose/v6.2.15");
76649
76650
  var customFetch = /* @__PURE__ */ Symbol();
76650
76651
  async function fetchJwks(url2, headers, signal, fetchImpl = fetch) {
76651
76652
  const response = await fetchImpl(url2, {
@@ -76671,6 +76672,8 @@ function isFreshFor(timestamp4, duration3) {
76671
76672
  function validateDuration(value, fallback2, option) {
76672
76673
  if (Number.isNaN(value))
76673
76674
  throw new TypeError(`"${option}" option must not be NaN`);
76675
+ if (typeof value == "number" && value < 0)
76676
+ throw new TypeError(`"${option}" option must not be negative`);
76674
76677
  return typeof value == "number" ? value : fallback2;
76675
76678
  }
76676
76679
  function createRemoteJWKSet(url2, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-excellence/ze-great-dashboard-aws",
3
- "version": "0.31.55",
3
+ "version": "0.31.56",
4
4
  "type": "module",
5
5
  "description": "AWS server runtime and CloudFormation deployment tooling for Ze Great Dashboard.",
6
6
  "keywords": [