summaryrefslogtreecommitdiff
path: root/packages/telemetry
diff options
context:
space:
mode:
Diffstat (limited to 'packages/telemetry')
-rw-r--r--packages/telemetry/src/project-info.ts5
-rw-r--r--packages/telemetry/src/system-info.ts8
-rw-r--r--packages/telemetry/test/config.test.js6
-rw-r--r--packages/telemetry/test/index.test.js6
4 files changed, 14 insertions, 11 deletions
diff --git a/packages/telemetry/src/project-info.ts b/packages/telemetry/src/project-info.ts
index afb6c83bb..66b83c5ac 100644
--- a/packages/telemetry/src/project-info.ts
+++ b/packages/telemetry/src/project-info.ts
@@ -65,7 +65,10 @@ function createAnonymousValue(payload: BinaryLike): string {
function getProjectIdFromGit(): string | null {
try {
- const originBuffer = execSync(`git rev-list --max-parents=0 HEAD`, {timeout: 500, stdio: [0, 'pipe', 0]});
+ const originBuffer = execSync(`git rev-list --max-parents=0 HEAD`, {
+ timeout: 500,
+ stdio: [0, 'pipe', 0],
+ });
return String(originBuffer).trim();
} catch (_) {
return null;
diff --git a/packages/telemetry/src/system-info.ts b/packages/telemetry/src/system-info.ts
index 0f0de7025..9fe628ff0 100644
--- a/packages/telemetry/src/system-info.ts
+++ b/packages/telemetry/src/system-info.ts
@@ -7,16 +7,16 @@ import os from 'node:os';
* Astro Telemetry -- System Info
*
* To better understand our telemetry insights, Astro collects the following anonymous information
- * about the system that it runs on. This helps us prioritize fixes and new features based on a
+ * about the system that it runs on. This helps us prioritize fixes and new features based on a
* better understanding of our real-world system requirements.
- *
+ *
* ~~~
*
* Q: Can this system info be traced back to me?
*
* A: No personally identifiable information is contained in the system info that we collect. It could
- * be possible for someone with direct access to your machine to collect this information themselves
- * and then attempt to match it all together with our collected telemetry data, however most users'
+ * be possible for someone with direct access to your machine to collect this information themselves
+ * and then attempt to match it all together with our collected telemetry data, however most users'
* systems are probably not uniquely identifiable via their system info alone.
*
* ~~~
diff --git a/packages/telemetry/test/config.test.js b/packages/telemetry/test/config.test.js
index 97408ec0d..a74e8d6f0 100644
--- a/packages/telemetry/test/config.test.js
+++ b/packages/telemetry/test/config.test.js
@@ -1,9 +1,9 @@
import { expect } from 'chai';
-import {GlobalConfig} from '../dist/config.js';
+import { GlobalConfig } from '../dist/config.js';
describe('GlobalConfig', () => {
it('initializes when expected arguments are given', () => {
- const config = new GlobalConfig({ name: 'TEST_NAME' });
- expect(config).to.be.instanceOf(GlobalConfig);
+ const config = new GlobalConfig({ name: 'TEST_NAME' });
+ expect(config).to.be.instanceOf(GlobalConfig);
});
});
diff --git a/packages/telemetry/test/index.test.js b/packages/telemetry/test/index.test.js
index 208522136..29ade53f9 100644
--- a/packages/telemetry/test/index.test.js
+++ b/packages/telemetry/test/index.test.js
@@ -1,9 +1,9 @@
import { expect } from 'chai';
-import {AstroTelemetry} from '../dist/index.js';
+import { AstroTelemetry } from '../dist/index.js';
describe('AstroTelemetry', () => {
it('initializes when expected arguments are given', () => {
- const telemetry = new AstroTelemetry({ version: '0.0.0-test.1' });
- expect(telemetry).to.be.instanceOf(AstroTelemetry);
+ const telemetry = new AstroTelemetry({ version: '0.0.0-test.1' });
+ expect(telemetry).to.be.instanceOf(AstroTelemetry);
});
});