@continuous-excellence/ze-great-dashboard-aws 0.30.2 → 0.30.4

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/dist/cli.js CHANGED
@@ -61,6 +61,19 @@ var durationSchema = z.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/, {
61
61
  message: 'must be a positive duration like "30s", "5m", or "1h"'
62
62
  }).brand();
63
63
 
64
+ // packages/shared/src/running-animations.ts
65
+ var visibleRunningAnimations = [
66
+ "radial",
67
+ "runway",
68
+ "orbit",
69
+ "signal-field",
70
+ "telemetry-bloom",
71
+ "release-transit",
72
+ "status-weather",
73
+ "falling-shapes",
74
+ "snowman"
75
+ ];
76
+
64
77
  // packages/shared/src/board-config.ts
65
78
  var positionSchema = z2.union([
66
79
  z2.object({
@@ -97,17 +110,6 @@ var httpValueScalarPanelSchema = httpValuePanelIdentitySchema.extend({
97
110
  var httpValueGroupedPanelSchema = httpValuePanelIdentitySchema.extend({
98
111
  facts: z2.array(httpValueFactSchema).min(1).max(4)
99
112
  });
100
- var visibleRunningAnimations = [
101
- "radial",
102
- "runway",
103
- "orbit",
104
- "signal-field",
105
- "telemetry-bloom",
106
- "release-transit",
107
- "status-weather",
108
- "falling-shapes",
109
- "snowman"
110
- ];
111
113
  var runningAnimationSchema = z2.enum([...visibleRunningAnimations, "off"]);
112
114
  var panelSchema = z2.looseObject({
113
115
  /** Presentation-only wall label. `id` remains the stable proxy and allowlist address. */
@@ -271,7 +273,7 @@ var gitlabCiSourceSchema = z2.looseObject({
271
273
  token_env: z2.string().min(1),
272
274
  /** The branch or tag whose newest pipeline the dashboard represents. */
273
275
  branch: z2.string().min(1).optional(),
274
- /** HTTPS GitLab.com or a self-managed instance, optionally below a path prefix. */
276
+ /** HTTPS GitLab instance, optionally below a self-managed path prefix. */
275
277
  url: gitlabInstanceUrlSchema.optional().default("https://gitlab.com")
276
278
  });
277
279
  var sourceSchema = z2.looseObject({ type: z2.string().min(1), ...sourceAuthenticationSchema }).superRefine(exactlyOneGithubAuthenticationMode);
package/dist/index.js CHANGED
@@ -742,6 +742,19 @@ var durationSchema = z.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/, {
742
742
  message: 'must be a positive duration like "30s", "5m", or "1h"'
743
743
  }).brand();
744
744
 
745
+ // packages/shared/src/running-animations.ts
746
+ var visibleRunningAnimations = [
747
+ "radial",
748
+ "runway",
749
+ "orbit",
750
+ "signal-field",
751
+ "telemetry-bloom",
752
+ "release-transit",
753
+ "status-weather",
754
+ "falling-shapes",
755
+ "snowman"
756
+ ];
757
+
745
758
  // packages/shared/src/board-config.ts
746
759
  var positionSchema = z2.union([
747
760
  z2.object({
@@ -778,17 +791,6 @@ var httpValueScalarPanelSchema = httpValuePanelIdentitySchema.extend({
778
791
  var httpValueGroupedPanelSchema = httpValuePanelIdentitySchema.extend({
779
792
  facts: z2.array(httpValueFactSchema).min(1).max(4)
780
793
  });
781
- var visibleRunningAnimations = [
782
- "radial",
783
- "runway",
784
- "orbit",
785
- "signal-field",
786
- "telemetry-bloom",
787
- "release-transit",
788
- "status-weather",
789
- "falling-shapes",
790
- "snowman"
791
- ];
792
794
  var runningAnimationSchema = z2.enum([...visibleRunningAnimations, "off"]);
793
795
  var panelSchema = z2.looseObject({
794
796
  /** Presentation-only wall label. `id` remains the stable proxy and allowlist address. */
@@ -952,7 +954,7 @@ var gitlabCiSourceSchema = z2.looseObject({
952
954
  token_env: z2.string().min(1),
953
955
  /** The branch or tag whose newest pipeline the dashboard represents. */
954
956
  branch: z2.string().min(1).optional(),
955
- /** HTTPS GitLab.com or a self-managed instance, optionally below a path prefix. */
957
+ /** HTTPS GitLab instance, optionally below a self-managed path prefix. */
956
958
  url: gitlabInstanceUrlSchema.optional().default("https://gitlab.com")
957
959
  });
958
960
  var sourceSchema = z2.looseObject({ type: z2.string().min(1), ...sourceAuthenticationSchema }).superRefine(exactlyOneGithubAuthenticationMode);
package/dist/lambda.mjs CHANGED
@@ -42395,36 +42395,38 @@ var require_Alias = __commonJS({
42395
42395
  if (node2.anchor === this.source)
42396
42396
  found = node2;
42397
42397
  }
42398
+ if (found && ctx) {
42399
+ const { anchors: anchors2, doc: doc2, maxAliasCount } = ctx;
42400
+ let data = anchors2.get(found);
42401
+ if (!data) {
42402
+ toJS.toJS(found, null, ctx);
42403
+ data = anchors2.get(found);
42404
+ }
42405
+ if (data?.res === void 0) {
42406
+ const msg = "This should not happen: Alias anchor was not resolved?";
42407
+ throw new ReferenceError(msg);
42408
+ }
42409
+ if (maxAliasCount >= 0) {
42410
+ data.count += 1;
42411
+ if (data.aliasCount === 0)
42412
+ data.aliasCount = getAliasCount(doc2, found, anchors2);
42413
+ if (data.count * data.aliasCount > maxAliasCount) {
42414
+ const msg = "Excessive alias count indicates a resource exhaustion attack";
42415
+ throw new ReferenceError(msg);
42416
+ }
42417
+ }
42418
+ }
42398
42419
  return found;
42399
42420
  }
42400
42421
  toJSON(_arg, ctx) {
42401
42422
  if (!ctx)
42402
42423
  return { source: this.source };
42403
- const { anchors: anchors2, doc, maxAliasCount } = ctx;
42404
- const source = this.resolve(doc, ctx);
42424
+ const source = this.resolve(ctx.doc, ctx);
42405
42425
  if (!source) {
42406
42426
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
42407
42427
  throw new ReferenceError(msg);
42408
42428
  }
42409
- let data = anchors2.get(source);
42410
- if (!data) {
42411
- toJS.toJS(source, null, ctx);
42412
- data = anchors2.get(source);
42413
- }
42414
- if (data?.res === void 0) {
42415
- const msg = "This should not happen: Alias anchor was not resolved?";
42416
- throw new ReferenceError(msg);
42417
- }
42418
- if (maxAliasCount >= 0) {
42419
- data.count += 1;
42420
- if (data.aliasCount === 0)
42421
- data.aliasCount = getAliasCount(doc, source, anchors2);
42422
- if (data.count * data.aliasCount > maxAliasCount) {
42423
- const msg = "Excessive alias count indicates a resource exhaustion attack";
42424
- throw new ReferenceError(msg);
42425
- }
42426
- }
42427
- return data.res;
42429
+ return ctx.anchors.get(source).res;
42428
42430
  }
42429
42431
  toString(ctx, _onComment, _onChompKeep) {
42430
42432
  const src = `*${this.source}`;
@@ -46426,37 +46428,38 @@ var require_resolve_flow_scalar = __commonJS({
46426
46428
  }
46427
46429
  if (badChar)
46428
46430
  onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
46429
- return foldLines(source);
46431
+ return unfoldLines(source);
46430
46432
  }
46431
46433
  function singleQuotedValue(source, onError) {
46432
46434
  if (source[source.length - 1] !== "'" || source.length === 1)
46433
46435
  onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
46434
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
46436
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
46435
46437
  }
46436
- function foldLines(source) {
46437
- let first, line;
46438
+ function unfoldLines(source) {
46439
+ const line = /(.*?)\r?\n/sy;
46440
+ let match2 = line.exec(source);
46441
+ if (!match2)
46442
+ return source;
46443
+ let trimEnd, trimBoth;
46438
46444
  try {
46439
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
46440
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
46445
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
46446
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
46441
46447
  } catch {
46442
- first = /(.*?)[ \t]*\r?\n/sy;
46443
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
46448
+ trimEnd = /[ \t]+$/;
46449
+ trimBoth = /^[ \t]+|[ \t]+$/g;
46444
46450
  }
46445
- let match2 = first.exec(source);
46446
- if (!match2)
46447
- return source;
46448
- let res = match2[1];
46451
+ let res = match2[1].replace(trimEnd, "");
46449
46452
  let sep2 = " ";
46450
- let pos2 = first.lastIndex;
46451
- line.lastIndex = pos2;
46453
+ let pos2 = line.lastIndex;
46452
46454
  while (match2 = line.exec(source)) {
46453
- if (match2[1] === "") {
46455
+ const lm = match2[1].replace(trimBoth, "");
46456
+ if (lm === "") {
46454
46457
  if (sep2 === "\n")
46455
46458
  res += sep2;
46456
46459
  else
46457
46460
  sep2 = "\n";
46458
46461
  } else {
46459
- res += sep2 + match2[1];
46462
+ res += sep2 + lm;
46460
46463
  sep2 = " ";
46461
46464
  }
46462
46465
  pos2 = line.lastIndex;
@@ -69101,6 +69104,19 @@ var durationSchema = external_exports.string().regex(/^[1-9][0-9]*(?:ms|s|m|h)$/
69101
69104
  message: 'must be a positive duration like "30s", "5m", or "1h"'
69102
69105
  }).brand();
69103
69106
 
69107
+ // packages/shared/src/running-animations.ts
69108
+ var visibleRunningAnimations = [
69109
+ "radial",
69110
+ "runway",
69111
+ "orbit",
69112
+ "signal-field",
69113
+ "telemetry-bloom",
69114
+ "release-transit",
69115
+ "status-weather",
69116
+ "falling-shapes",
69117
+ "snowman"
69118
+ ];
69119
+
69104
69120
  // packages/shared/src/board-config.ts
69105
69121
  var positionSchema = external_exports.union([
69106
69122
  external_exports.object({
@@ -69137,17 +69153,6 @@ var httpValueScalarPanelSchema = httpValuePanelIdentitySchema.extend({
69137
69153
  var httpValueGroupedPanelSchema = httpValuePanelIdentitySchema.extend({
69138
69154
  facts: external_exports.array(httpValueFactSchema).min(1).max(4)
69139
69155
  });
69140
- var visibleRunningAnimations = [
69141
- "radial",
69142
- "runway",
69143
- "orbit",
69144
- "signal-field",
69145
- "telemetry-bloom",
69146
- "release-transit",
69147
- "status-weather",
69148
- "falling-shapes",
69149
- "snowman"
69150
- ];
69151
69156
  var runningAnimationSchema = external_exports.enum([...visibleRunningAnimations, "off"]);
69152
69157
  var panelSchema = external_exports.looseObject({
69153
69158
  /** Presentation-only wall label. `id` remains the stable proxy and allowlist address. */
@@ -69311,7 +69316,7 @@ var gitlabCiSourceSchema = external_exports.looseObject({
69311
69316
  token_env: external_exports.string().min(1),
69312
69317
  /** The branch or tag whose newest pipeline the dashboard represents. */
69313
69318
  branch: external_exports.string().min(1).optional(),
69314
- /** HTTPS GitLab.com or a self-managed instance, optionally below a path prefix. */
69319
+ /** HTTPS GitLab instance, optionally below a self-managed path prefix. */
69315
69320
  url: gitlabInstanceUrlSchema.optional().default("https://gitlab.com")
69316
69321
  });
69317
69322
  var sourceSchema = external_exports.looseObject({ type: external_exports.string().min(1), ...sourceAuthenticationSchema }).superRefine(exactlyOneGithubAuthenticationMode);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-excellence/ze-great-dashboard-aws",
3
- "version": "0.30.2",
3
+ "version": "0.30.4",
4
4
  "type": "module",
5
5
  "description": "AWS server runtime and CloudFormation deployment tooling for Ze Great Dashboard.",
6
6
  "keywords": [
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "dependencies": {
37
37
  "fflate": "^0.8.3",
38
- "yaml": "^2.9.0",
38
+ "yaml": "^2.9.1",
39
39
  "zod": "^4.6.2"
40
40
  },
41
41
  "devDependencies": {