@tinacms/metrics 0.0.2 → 0.0.3
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/CHANGELOG.md +9 -1
- package/dist/index.js +2 -1
- package/dist/interfaces/index.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# @tinacms/metrics
|
|
2
2
|
|
|
3
|
+
## 0.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ef450a53a: - Update tinacms CLI to support schemaFileType option (default 'ts') to allow user to specify the schema file type
|
|
8
|
+
- Update telemetry module to optionally check NO_TELEMETRY environment variable for disabling telemetry
|
|
9
|
+
|
|
3
10
|
## 0.0.2
|
|
11
|
+
|
|
4
12
|
### Patch Changes
|
|
5
13
|
|
|
6
14
|
- 8bf0ac832: Update the shape of the mertics payload
|
|
7
15
|
- a05546eb4: Added basic open source telemetry
|
|
8
|
-
|
|
16
|
+
|
|
9
17
|
See [this discussion](https://github.com/tinacms/tinacms/discussions/2451) for more information and how to opt out.
|
package/dist/index.js
CHANGED
|
@@ -149,7 +149,8 @@ var Telemetry = class {
|
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
this.projectIDRaw = getID();
|
|
152
|
-
|
|
152
|
+
const { NO_TELEMETRY } = process.env;
|
|
153
|
+
this._disabled = NO_TELEMETRY === "1" || NO_TELEMETRY === "true" || Boolean(disabled);
|
|
153
154
|
}
|
|
154
155
|
get projectId() {
|
|
155
156
|
return this.oneWayHash(this.projectIDRaw);
|
|
@@ -25,6 +25,7 @@ export interface TinaCMSAuditInvoke extends EventsBase {
|
|
|
25
25
|
}
|
|
26
26
|
export interface TinaCMSInitInvoke extends EventsBase {
|
|
27
27
|
name: 'tinacms:cli:init:invoke';
|
|
28
|
+
schemaFileType?: string;
|
|
28
29
|
}
|
|
29
30
|
export interface TinaCMSServerStartInvoke extends EventsBase {
|
|
30
31
|
name: 'tinacms:cli:server:start:invoke';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/metrics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"fs-extra": "^9.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@tinacms/scripts": "0.50.
|
|
23
|
+
"@tinacms/scripts": "0.50.7",
|
|
24
24
|
"@types/fs-extra": "^9.0.11",
|
|
25
25
|
"@types/isomorphic-fetch": "^0.0.35",
|
|
26
26
|
"fs-extra": "^9.0.1",
|