@floegence/redevplugin-ui 3.7.0 → 3.7.1
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/openapi.gen.d.ts +4 -1
- package/dist/surface.js +3 -1
- package/package.json +2 -2
package/dist/openapi.gen.d.ts
CHANGED
|
@@ -3632,7 +3632,10 @@ export interface components {
|
|
|
3632
3632
|
schema_version: "redevplugin.web_surface.v1";
|
|
3633
3633
|
/** Format: uri */
|
|
3634
3634
|
origin: string;
|
|
3635
|
-
/**
|
|
3635
|
+
/**
|
|
3636
|
+
* Format: uri
|
|
3637
|
+
* @description Exact canonical authenticated host origin: HTTPS, HTTP localhost, or HTTP canonical IPv4 127.0.0.0/8 or IPv6 ::1. Loopback IP permission applies only to the parent; child origins retain their independent allocated hostname.
|
|
3638
|
+
*/
|
|
3636
3639
|
parent_origin: string;
|
|
3637
3640
|
/** Format: uri */
|
|
3638
3641
|
bootstrap_url: string;
|
package/dist/surface.js
CHANGED
|
@@ -2513,7 +2513,9 @@ export function isWebSurfaceDocument(value) {
|
|
|
2513
2513
|
const origin = new URL(String(value.origin)), parent = new URL(String(value.parent_origin));
|
|
2514
2514
|
const bootstrap = new URL(String(value.bootstrap_url)), entry = new URL(String(value.entry_url));
|
|
2515
2515
|
const validOrigin = (u, raw) => u.origin === raw && !u.username && !u.password && (u.protocol === "https:" || (u.protocol === "http:" && (u.hostname === "localhost" || u.hostname.endsWith(".localhost"))));
|
|
2516
|
-
|
|
2516
|
+
const loopbackParent = parent.origin === value.parent_origin && !parent.username && !parent.password && parent.protocol === "http:" &&
|
|
2517
|
+
(parent.hostname === "[::1]" || /^127(?:\.(?:0|[1-9]\d{0,2})){3}$/.test(parent.hostname));
|
|
2518
|
+
return validOrigin(origin, value.origin) && (validOrigin(parent, value.parent_origin) || loopbackParent) && origin.hostname !== parent.hostname &&
|
|
2517
2519
|
bootstrap.origin === origin.origin && !bootstrap.username && !bootstrap.password && bootstrap.pathname === "/_redevplugin_web/bootstrap" && !bootstrap.search && /^#[a-f0-9]{64}$/.test(bootstrap.hash) &&
|
|
2518
2520
|
entry.origin === origin.origin && !entry.username && !entry.password && !entry.search && !entry.hash && !entry.pathname.startsWith("/_redevplugin_web/");
|
|
2519
2521
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floegence/redevplugin-ui",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dist"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@floegence/redevplugin-contracts": "3.7.
|
|
39
|
+
"@floegence/redevplugin-contracts": "3.7.1",
|
|
40
40
|
"@noble/hashes": "2.4.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|