getobsrv 0.12.0 → 0.14.0

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/out/shared/url.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ALLOWED_URL_SCHEMES = void 0;
4
4
  exports.normalizeUrl = normalizeUrl;
5
5
  exports.urlSchemeError = urlSchemeError;
6
+ exports.isBlankUrl = isBlankUrl;
6
7
  /** `scheme:` prefix, e.g. `https:`, `about:`, `file:`. */
7
8
  const SCHEME = /^[a-z][a-z0-9+.-]*:/i;
8
9
  /** Loopback host with optional port, e.g. `localhost:5173`, `127.0.0.1/a`. */
@@ -52,3 +53,17 @@ function urlSchemeError(url) {
52
53
  `${exports.ALLOWED_URL_SCHEMES.map(s => `${s}//`).join(', ')} URLs only ` +
53
54
  `(bare hosts like example.com also work; they normalise to http(s)).`);
54
55
  }
56
+ /**
57
+ * True when a tab has never been navigated. Both the renderer's empty state and
58
+ * main's native-view visibility ask this question, and they must agree — a
59
+ * disagreement shows as a white OS overlay sitting on top of the empty state,
60
+ * or an empty state over a live page.
61
+ *
62
+ * `about:blank` is deliberately *not* blank here. It is a real destination a
63
+ * user can type and history can hold, and a tab showing it has a page — an
64
+ * empty one. Counting it would put the empty state over a page the user asked
65
+ * for, and take the native pane off screen underneath it.
66
+ */
67
+ function isBlankUrl(url) {
68
+ return url === '';
69
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getobsrv",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "See your site the way 1x screens see it",
5
5
  "main": "./out/main/index.js",
6
6
  "bin": {