extension 4.0.23 → 4.0.24
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/cli.cjs
CHANGED
|
@@ -8955,6 +8955,10 @@ Cross-browser compatibility
|
|
|
8955
8955
|
if (!raw) return false;
|
|
8956
8956
|
return '0' === raw || 'false' === raw || 'off' === raw || 'no' === raw;
|
|
8957
8957
|
}
|
|
8958
|
+
function envExplicitlyEnables() {
|
|
8959
|
+
const raw = String(process.env.EXTENSION_TELEMETRY ?? '').trim().toLowerCase();
|
|
8960
|
+
return '1' === raw || 'true' === raw || 'on' === raw || 'yes' === raw;
|
|
8961
|
+
}
|
|
8958
8962
|
function resolveTelemetryConsent(argv = process.argv) {
|
|
8959
8963
|
if (envDisables()) return {
|
|
8960
8964
|
enabled: false,
|
|
@@ -8964,6 +8968,10 @@ Cross-browser compatibility
|
|
|
8964
8968
|
enabled: false,
|
|
8965
8969
|
source: 'flag'
|
|
8966
8970
|
};
|
|
8971
|
+
if (envExplicitlyEnables()) return {
|
|
8972
|
+
enabled: true,
|
|
8973
|
+
source: 'env'
|
|
8974
|
+
};
|
|
8967
8975
|
const storage = resolveTelemetryStorage();
|
|
8968
8976
|
if (storage) {
|
|
8969
8977
|
const stored = readConsentFile(storage.consentFile);
|
|
@@ -8976,6 +8984,10 @@ Cross-browser compatibility
|
|
|
8976
8984
|
source: 'config'
|
|
8977
8985
|
};
|
|
8978
8986
|
}
|
|
8987
|
+
if (isCI() && !process.stdout.isTTY) return {
|
|
8988
|
+
enabled: false,
|
|
8989
|
+
source: 'ci'
|
|
8990
|
+
};
|
|
8979
8991
|
return {
|
|
8980
8992
|
enabled: true,
|
|
8981
8993
|
source: 'default'
|
|
@@ -6,7 +6,7 @@ export type TelemetryProps = {
|
|
|
6
6
|
template?: string;
|
|
7
7
|
source?: string;
|
|
8
8
|
};
|
|
9
|
-
export type TelemetrySource = 'env' | 'flag' | 'config' | 'default';
|
|
9
|
+
export type TelemetrySource = 'env' | 'flag' | 'config' | 'ci' | 'default';
|
|
10
10
|
type TelemetryInit = {
|
|
11
11
|
app: string;
|
|
12
12
|
version: string;
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.0.
|
|
41
|
+
"version": "4.0.24",
|
|
42
42
|
"description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
|
|
43
43
|
"homepage": "https://extension.js.org/",
|
|
44
44
|
"bugs": {
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vivaldi-location2": "2.1.0",
|
|
107
107
|
"waterfox-location": "2.1.0",
|
|
108
108
|
"yandex-location": "2.1.0",
|
|
109
|
-
"extension-create": "4.0.
|
|
110
|
-
"extension-develop": "4.0.
|
|
111
|
-
"extension-install": "4.0.
|
|
109
|
+
"extension-create": "4.0.24",
|
|
110
|
+
"extension-develop": "4.0.24",
|
|
111
|
+
"extension-install": "4.0.24",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|