@contentful/experience-design-system-cli 2.25.2-dev-build-5281fd5.0 → 2.25.2-dev-build-38898d2.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/dist/package.json
CHANGED
|
@@ -3,7 +3,10 @@ import { Analytics } from '@segment/analytics-node';
|
|
|
3
3
|
const require = createRequire(import.meta.url);
|
|
4
4
|
const pkg = require('../../package.json');
|
|
5
5
|
// Anonymous usage telemetry for the CLI. Disabled when DISABLE_ANALYTICS is set
|
|
6
|
-
// or when
|
|
6
|
+
// or when the setup preference opts out. Never blocks command execution.
|
|
7
|
+
// Public write key scoped to data source. Grants write-only event ingest; a
|
|
8
|
+
// distributed CLI cannot hold a secret, so this ships in source by design.
|
|
9
|
+
const DEFAULT_WRITE_KEY = '6DmxiEPN3SV1vbRTTMcNqDzCvkfwT06N';
|
|
7
10
|
let analyticsClient = null;
|
|
8
11
|
let persistedDisabled = false;
|
|
9
12
|
export function cliVersion() {
|
|
@@ -18,9 +21,11 @@ export function setPersistedAnalyticsDisabled(disabled) {
|
|
|
18
21
|
export function analyticsEnabled() {
|
|
19
22
|
return !persistedDisabled && !process.env.DISABLE_ANALYTICS && Boolean(resolveWriteKey());
|
|
20
23
|
}
|
|
24
|
+
// SEGMENT_WRITE_KEY overrides the default so engineers can point a local run at
|
|
25
|
+
// their own staging connection.
|
|
21
26
|
function resolveWriteKey() {
|
|
22
27
|
const key = (process.env.SEGMENT_WRITE_KEY ?? '').trim();
|
|
23
|
-
return key.length > 0 ? key :
|
|
28
|
+
return key.length > 0 ? key : DEFAULT_WRITE_KEY;
|
|
24
29
|
}
|
|
25
30
|
function getClient() {
|
|
26
31
|
if (!analyticsEnabled())
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.25.2-dev-build-
|
|
3
|
+
"version": "2.25.2-dev-build-38898d2.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"react": "^18.3.1",
|
|
35
35
|
"react-devtools-core": "^4.19.1",
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
37
|
-
"@contentful/experience-design-system-client": "2.25.2-dev-build-
|
|
38
|
-
"@contentful/experience-design-system-
|
|
39
|
-
"@contentful/experience-design-system-types": "2.25.2-dev-build-
|
|
40
|
-
"@contentful/experience-design-system-
|
|
37
|
+
"@contentful/experience-design-system-client": "2.25.2-dev-build-38898d2.0",
|
|
38
|
+
"@contentful/experience-design-system-extraction": "2.25.2-dev-build-38898d2.0",
|
|
39
|
+
"@contentful/experience-design-system-types": "2.25.2-dev-build-38898d2.0",
|
|
40
|
+
"@contentful/experience-design-system-generation": "2.25.2-dev-build-38898d2.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@tsconfig/node24": "^24.0.4",
|