@ghostery/config 0.0.9 → 0.0.10

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.
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // Copyright 2025-2026 Ghostery GmbH
3
+ //
4
+ // Use of this source code is governed by an MIT-style
5
+ // license that can be found in the LICENSE file or at
6
+ // https://opensource.org/licenses/MIT.
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.BROWSERS = exports.BROWSER_FIREFOX = exports.BROWSER_SAFARI = exports.BROWSER_YANDEX = exports.BROWSER_OCULUS = exports.BROWSER_BRAVE = exports.BROWSER_OPERA = exports.BROWSER_EDGE = exports.BROWSER_CHROME = void 0;
9
+ exports.isBrowser = isBrowser;
10
+ exports.BROWSER_CHROME = "chrome";
11
+ exports.BROWSER_EDGE = "edge";
12
+ exports.BROWSER_OPERA = "opera";
13
+ exports.BROWSER_BRAVE = "brave";
14
+ exports.BROWSER_OCULUS = "oculus";
15
+ exports.BROWSER_YANDEX = "yandex";
16
+ exports.BROWSER_SAFARI = "safari";
17
+ exports.BROWSER_FIREFOX = "firefox";
18
+ exports.BROWSERS = [
19
+ exports.BROWSER_CHROME,
20
+ exports.BROWSER_EDGE,
21
+ exports.BROWSER_OPERA,
22
+ exports.BROWSER_BRAVE,
23
+ exports.BROWSER_OCULUS,
24
+ exports.BROWSER_YANDEX,
25
+ exports.BROWSER_SAFARI,
26
+ exports.BROWSER_FIREFOX,
27
+ ];
28
+ function isBrowser(browser) {
29
+ return exports.BROWSERS.includes(browser);
30
+ }
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
+ __exportStar(require("./browsers.js"), exports);
22
23
  __exportStar(require("./platforms.js"), exports);
23
24
  __exportStar(require("./actions.js"), exports);
24
25
  __exportStar(require("./flags.js"), exports);
@@ -0,0 +1,26 @@
1
+ // Copyright 2025-2026 Ghostery GmbH
2
+ //
3
+ // Use of this source code is governed by an MIT-style
4
+ // license that can be found in the LICENSE file or at
5
+ // https://opensource.org/licenses/MIT.
6
+ export const BROWSER_CHROME = "chrome";
7
+ export const BROWSER_EDGE = "edge";
8
+ export const BROWSER_OPERA = "opera";
9
+ export const BROWSER_BRAVE = "brave";
10
+ export const BROWSER_OCULUS = "oculus";
11
+ export const BROWSER_YANDEX = "yandex";
12
+ export const BROWSER_SAFARI = "safari";
13
+ export const BROWSER_FIREFOX = "firefox";
14
+ export const BROWSERS = [
15
+ BROWSER_CHROME,
16
+ BROWSER_EDGE,
17
+ BROWSER_OPERA,
18
+ BROWSER_BRAVE,
19
+ BROWSER_OCULUS,
20
+ BROWSER_YANDEX,
21
+ BROWSER_SAFARI,
22
+ BROWSER_FIREFOX,
23
+ ];
24
+ export function isBrowser(browser) {
25
+ return BROWSERS.includes(browser);
26
+ }
package/dist/esm/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  // Use of this source code is governed by an MIT-style
4
4
  // license that can be found in the LICENSE file or at
5
5
  // https://opensource.org/licenses/MIT.
6
+ export * from "./browsers.js";
6
7
  export * from "./platforms.js";
7
8
  export * from "./actions.js";
8
9
  export * from "./flags.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostery/config",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Shared TypeScript types for Ghostery configuration",
5
5
  "files": [
6
6
  "dist"