@opendaw/lib-dom 0.0.17 → 0.0.19

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/browser.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare namespace Browser {
4
4
  const isWindows: () => boolean;
5
5
  const isFirefox: () => boolean;
6
6
  const isWeb: () => boolean;
7
+ const isVitest: boolean;
7
8
  const isTauriApp: () => boolean;
8
9
  const userAgent: string;
9
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAEA,yBAAiB,OAAO,CAAC;IAGd,MAAM,WAAW,eAA2D,CAAA;IAC5E,MAAM,OAAO,eAAiE,CAAA;IAC9E,MAAM,SAAS,eAAgE,CAAA;IAC/E,MAAM,SAAS,eAA8E,CAAA;IAC7F,MAAM,KAAK,eAAsB,CAAA;IACjC,MAAM,UAAU,eAA8B,CAAA;IAC9C,MAAM,SAAS,QAMH,CAAA;CACtB"}
1
+ {"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAEA,yBAAiB,OAAO,CAAC;IAGd,MAAM,WAAW,eAA2D,CAAA;IAC5E,MAAM,OAAO,eAAiE,CAAA;IAC9E,MAAM,SAAS,eAAgE,CAAA;IAC/E,MAAM,SAAS,eAA8E,CAAA;IAC7F,MAAM,KAAK,eAAsB,CAAA;IACjC,MAAM,QAAQ,SAAmE,CAAA;IACjF,MAAM,UAAU,eAA8B,CAAA;IAC9C,MAAM,SAAS,QAMH,CAAA;CACtB"}
package/dist/browser.js CHANGED
@@ -8,6 +8,7 @@ export var Browser;
8
8
  Browser.isWindows = () => hasNavigator && navigator.userAgent.includes("Windows");
9
9
  Browser.isFirefox = () => hasNavigator && navigator.userAgent.toLowerCase().includes("firefox");
10
10
  Browser.isWeb = () => !Browser.isTauriApp();
11
+ Browser.isVitest = typeof process !== "undefined" && process.env?.VITEST === "true";
11
12
  Browser.isTauriApp = () => "__TAURI__" in window;
12
13
  Browser.userAgent = hasNavigator ? navigator.userAgent
13
14
  .replace(/^Mozilla\/[\d.]+\s*/, "")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendaw/lib-dom",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "license": "LGPL-3.0-or-later",
@@ -22,13 +22,13 @@
22
22
  "test": "vitest run"
23
23
  },
24
24
  "dependencies": {
25
- "@opendaw/lib-runtime": "^0.0.17",
26
- "@opendaw/lib-std": "^0.0.17",
25
+ "@opendaw/lib-runtime": "^0.0.19",
26
+ "@opendaw/lib-std": "^0.0.19",
27
27
  "@types/wicg-file-system-access": "^2023.10.6"
28
28
  },
29
29
  "devDependencies": {
30
- "@opendaw/eslint-config": "^0.0.17",
31
- "@opendaw/typescript-config": "^0.0.17"
30
+ "@opendaw/eslint-config": "^0.0.18",
31
+ "@opendaw/typescript-config": "^0.0.19"
32
32
  },
33
- "gitHead": "53a72f6644986170d482c6e02e0e8460f9f6b1b8"
33
+ "gitHead": "8d9e873aad633820cd26f76dc447674728401495"
34
34
  }