@tideworthy/tidysites-platform 0.10.14 → 0.10.15
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/package.json +1 -1
- package/src/lib/frame.ts +2 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tideworthy/tidysites-platform",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.15",
|
|
4
4
|
"description": "The Tidysites platform integration for EmDash sites: bootstrap, sessions, maintenance, health, and publish hooks under /_tidy/*.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/src/lib/frame.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* get a `frame-ancestors` policy naming them instead. Nothing changes without
|
|
7
7
|
* the variable.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
/** An https origin, or a local dev page (http://localhost, any port) for the brand preview. */
|
|
10
|
+
const ORIGIN = /^(?:https:\/\/[a-z0-9.-]+(?::\d+)?|http:\/\/localhost(?::(?:\d+|\*))?)$/i;
|
|
10
11
|
|
|
11
12
|
/** The origins allowed to frame the site, from the variable's value; invalid entries are dropped. */
|
|
12
13
|
export function frameAncestors(value: unknown): string[] {
|
package/src/version.ts
CHANGED