@pygmalionjs/pygmalion 0.2.12 → 0.2.14

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.
@@ -1,4 +1,4 @@
1
- import { F as s, N as a, e as r, s as i, a as t } from "./App-B0w9z2Br.js";
1
+ import { F as s, N as a, e as r, s as i, a as t } from "./App-CiSnd2mV.js";
2
2
  export {
3
3
  s as FrozenRoutePreviewView,
4
4
  a as NodeModel,
@@ -46,8 +46,8 @@ function requestedCaptureBaseUrl(url, requestHost) {
46
46
  return null;
47
47
  }
48
48
  try {
49
- const target = new URL(value);
50
49
  const requestOrigin = new URL(`http://${requestHost}`);
50
+ const target = new URL(value, requestOrigin);
51
51
  if (
52
52
  !['http:', 'https:'].includes(target.protocol) ||
53
53
  target.host.toLowerCase() !== requestOrigin.host.toLowerCase() ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pygmalionjs/pygmalion",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "description": "Code-backed DOM design sandbox and visual QA editor",
5
5
  "license": "UNLICENSED",
6
6
  "publishConfig": {
package/types.d.ts CHANGED
@@ -1549,6 +1549,12 @@ export interface PygmalionProjectRuntime {
1549
1549
  ready: boolean;
1550
1550
  appOrigin: string | null;
1551
1551
  previewRevision: string;
1552
+ /**
1553
+ * Source SHA of previewRevision, without the session mutation counter.
1554
+ * Artifact bundles are stamped with this, so hosts must build artifact cache
1555
+ * namespaces from it instead of parsing previewRevision themselves.
1556
+ */
1557
+ previewSourceRevision: string;
1552
1558
  refresh(manual?: boolean): Promise<void>;
1553
1559
  previewVisual(payload: InspectApplyPayload): Promise<InspectPreviewResult>;
1554
1560
  inspectImpact(componentFiles: string[]): Promise<InspectImpactResult>;