@campfire-interactive/shell-header 0.8.1 → 0.8.3

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/index.js +2 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -569,7 +569,7 @@ function VersionSection({ title, version }) {
569
569
  /* @__PURE__ */ jsx5("code", { children: version.revisionId }),
570
570
  /* @__PURE__ */ jsxs5("span", { className: "cfi-sh-about-date", children: [
571
571
  " (",
572
- formatDate(version.revisionDate),
572
+ formatDateTime(version.revisionDate),
573
573
  ")"
574
574
  ] })
575
575
  ] }),
@@ -598,15 +598,10 @@ function formatClipboardPayload(about) {
598
598
  ].join("\n");
599
599
  }
600
600
  function formatLines(v) {
601
- const lines = [`Revision: ${v.revisionId} (${formatDate(v.revisionDate)})`];
601
+ const lines = [`Revision: ${v.revisionId} (${formatDateTime(v.revisionDate)})`];
602
602
  if (v.rolloutDate) lines.push(`Deployed: ${formatDateTime(v.rolloutDate)}`);
603
603
  return lines;
604
604
  }
605
- function formatDate(iso) {
606
- const d = new Date(iso);
607
- if (Number.isNaN(d.getTime())) return iso;
608
- return d.toISOString().slice(0, 10);
609
- }
610
605
  function formatDateTime(iso) {
611
606
  const d = new Date(iso);
612
607
  if (Number.isNaN(d.getTime())) return iso;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campfire-interactive/shell-header",
3
- "version": "0.8.1",
3
+ "version": "0.8.3",
4
4
  "description": "Shared shell header with app switcher for Campfire Suite",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",