@ghostery/config 0.0.8 → 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.
- package/dist/commonjs/browsers.js +30 -0
- package/dist/commonjs/flags.js +2 -3
- package/dist/commonjs/index.js +1 -0
- package/dist/esm/browsers.js +26 -0
- package/dist/esm/flags.js +2 -3
- package/dist/esm/index.js +1 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
package/dist/commonjs/flags.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.FLAG_FIREFOX_CONTENT_SCRIPT_SCRIPTLETS = exports.FLAG_EXTENDED_SELECTORS = exports.FLAG_DYNAMIC_DNR_FIXES = exports.FLAGS = exports.FLAG_SUBFRAME_SCRIPTING = exports.FLAG_NOTIFICATION_REVIEW = exports.FLAG_ONBOARDING_SURVEY = exports.FLAG_REDIRECT_PROTECTION = exports.FLAG_PAUSE_ASSISTANT = exports.FLAG_MODES = exports.FLAG_INJECTION_TARGET_DOCUMENT_ID = exports.FLAG_CHROMIUM_INJECT_COSMETICS_ON_RESPONSE_STARTED = void 0;
|
|
9
9
|
exports.isFlag = isFlag;
|
|
10
|
-
// Active flags
|
|
10
|
+
// ---- Active flags ----
|
|
11
11
|
exports.FLAG_CHROMIUM_INJECT_COSMETICS_ON_RESPONSE_STARTED = "chromium-inject-cosmetics-on-response-started";
|
|
12
12
|
exports.FLAG_INJECTION_TARGET_DOCUMENT_ID = "injection-target-document-id";
|
|
13
13
|
exports.FLAG_MODES = "modes";
|
|
@@ -16,7 +16,6 @@ exports.FLAG_REDIRECT_PROTECTION = "redirect-protection";
|
|
|
16
16
|
exports.FLAG_ONBOARDING_SURVEY = "onboarding-survey";
|
|
17
17
|
exports.FLAG_NOTIFICATION_REVIEW = "notification-review";
|
|
18
18
|
exports.FLAG_SUBFRAME_SCRIPTING = "subframe-scripting";
|
|
19
|
-
// List of active flags
|
|
20
19
|
exports.FLAGS = [
|
|
21
20
|
exports.FLAG_CHROMIUM_INJECT_COSMETICS_ON_RESPONSE_STARTED,
|
|
22
21
|
exports.FLAG_INJECTION_TARGET_DOCUMENT_ID,
|
|
@@ -27,7 +26,7 @@ exports.FLAGS = [
|
|
|
27
26
|
exports.FLAG_NOTIFICATION_REVIEW,
|
|
28
27
|
exports.FLAG_SUBFRAME_SCRIPTING,
|
|
29
28
|
];
|
|
30
|
-
// Completed flags
|
|
29
|
+
// ---- Completed flags ----
|
|
31
30
|
exports.FLAG_DYNAMIC_DNR_FIXES = "dynamic-dnr-fixes";
|
|
32
31
|
exports.FLAG_EXTENDED_SELECTORS = "extended-selectors";
|
|
33
32
|
exports.FLAG_FIREFOX_CONTENT_SCRIPT_SCRIPTLETS = "firefox-content-script-scriptlets";
|
package/dist/commonjs/index.js
CHANGED
|
@@ -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/flags.js
CHANGED
|
@@ -3,7 +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
|
-
// Active flags
|
|
6
|
+
// ---- Active flags ----
|
|
7
7
|
export const FLAG_CHROMIUM_INJECT_COSMETICS_ON_RESPONSE_STARTED = "chromium-inject-cosmetics-on-response-started";
|
|
8
8
|
export const FLAG_INJECTION_TARGET_DOCUMENT_ID = "injection-target-document-id";
|
|
9
9
|
export const FLAG_MODES = "modes";
|
|
@@ -12,7 +12,6 @@ export const FLAG_REDIRECT_PROTECTION = "redirect-protection";
|
|
|
12
12
|
export const FLAG_ONBOARDING_SURVEY = "onboarding-survey";
|
|
13
13
|
export const FLAG_NOTIFICATION_REVIEW = "notification-review";
|
|
14
14
|
export const FLAG_SUBFRAME_SCRIPTING = "subframe-scripting";
|
|
15
|
-
// List of active flags
|
|
16
15
|
export const FLAGS = [
|
|
17
16
|
FLAG_CHROMIUM_INJECT_COSMETICS_ON_RESPONSE_STARTED,
|
|
18
17
|
FLAG_INJECTION_TARGET_DOCUMENT_ID,
|
|
@@ -23,7 +22,7 @@ export const FLAGS = [
|
|
|
23
22
|
FLAG_NOTIFICATION_REVIEW,
|
|
24
23
|
FLAG_SUBFRAME_SCRIPTING,
|
|
25
24
|
];
|
|
26
|
-
// Completed flags
|
|
25
|
+
// ---- Completed flags ----
|
|
27
26
|
export const FLAG_DYNAMIC_DNR_FIXES = "dynamic-dnr-fixes";
|
|
28
27
|
export const FLAG_EXTENDED_SELECTORS = "extended-selectors";
|
|
29
28
|
export const FLAG_FIREFOX_CONTENT_SCRIPT_SCRIPTLETS = "firefox-content-script-scriptlets";
|
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";
|