@tinacms/metrics 2.0.0 → 2.1.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/index.js +0 -3
- package/dist/interfaces/index.d.ts +9 -1
- package/package.json +2 -6
package/dist/index.js
CHANGED
|
@@ -21,9 +21,6 @@ function getID() {
|
|
|
21
21
|
return _getProjectIdByGit() || process.env.REPOSITORY_URL || process.cwd();
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
// src/telemetry/telemetry.ts
|
|
25
|
-
import fetch from "isomorphic-fetch";
|
|
26
|
-
|
|
27
24
|
// src/telemetry/getVersion.ts
|
|
28
25
|
import fse from "fs-extra";
|
|
29
26
|
import { execSync as execSync2 } from "child_process";
|
|
@@ -26,7 +26,15 @@ export interface TinaCMSServerError extends EventsBase {
|
|
|
26
26
|
name: 'tinacms:cli:server:error';
|
|
27
27
|
errorMessage: string;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export interface TinaCMSDevInvoke extends EventsBase {
|
|
30
|
+
name: 'tinacms:cli:dev:invoke';
|
|
31
|
+
hasLocalContentPath: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface TinaCMSBuildInvoke extends EventsBase {
|
|
34
|
+
name: 'tinacms:cli:build:invoke';
|
|
35
|
+
hasLocalContentPath: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type Events = CreateTinaAppInvoke | TinaCMSAuditInvoke | TinaCMSInitInvoke | TinaCMSServerStartInvoke | TinaCMSServerError | TinaCMSDevInvoke | TinaCMSBuildInvoke;
|
|
30
38
|
type Merge<A, B> = {
|
|
31
39
|
[K in keyof A]: K extends keyof B ? B[K] : A[K];
|
|
32
40
|
} & B extends infer O ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/metrics",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -22,11 +22,10 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/fs-extra": "^9.0.13",
|
|
25
|
-
"@types/isomorphic-fetch": "^0.0.35",
|
|
26
25
|
"fs-extra": "^11.3.0",
|
|
27
26
|
"jest": "^29.7.0",
|
|
28
27
|
"typescript": "^5.7.3",
|
|
29
|
-
"@tinacms/scripts": "1.
|
|
28
|
+
"@tinacms/scripts": "1.6.1"
|
|
30
29
|
},
|
|
31
30
|
"publishConfig": {
|
|
32
31
|
"registry": "https://registry.npmjs.org"
|
|
@@ -35,9 +34,6 @@
|
|
|
35
34
|
"url": "https://github.com/tinacms/tinacms.git",
|
|
36
35
|
"directory": "packages/@tinacms/cli"
|
|
37
36
|
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"isomorphic-fetch": "^3.0.0"
|
|
40
|
-
},
|
|
41
37
|
"scripts": {
|
|
42
38
|
"build": "tinacms-scripts build",
|
|
43
39
|
"test": "jest --passWithNoTests",
|