@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tideworthy/tidysites-platform",
3
- "version": "0.10.14",
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
- const ORIGIN = /^https:\/\/[a-z0-9.-]+(?::\d+)?$/i;
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
@@ -1,3 +1,3 @@
1
1
  /** Kept in step with package.json by the release checklist in MAINTAINING.md. */
2
- export const VERSION = "0.10.14";
2
+ export const VERSION = "0.10.15";
3
3
  export const PLUGIN_ID = "tidy-platform";