@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.
- package/dist-lib/{App-B0w9z2Br.js → App-CiSnd2mV.js} +2651 -2614
- package/dist-lib/pygmalion.js +465 -463
- package/dist-lib/testing.js +1 -1
- package/node/preview-artifact-plugin.mjs +1 -1
- package/package.json +1 -1
- package/types.d.ts +6 -0
package/dist-lib/testing.js
CHANGED
|
@@ -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
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>;
|