@tinacms/metrics 1.0.8 → 1.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.
Files changed (2) hide show
  1. package/dist/index.js +9 -7
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -17,17 +17,21 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
23
27
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
28
 
25
29
  // src/index.ts
26
- var src_exports = {};
27
- __export(src_exports, {
30
+ var index_exports = {};
31
+ __export(index_exports, {
28
32
  Telemetry: () => Telemetry
29
33
  });
30
- module.exports = __toCommonJS(src_exports);
34
+ module.exports = __toCommonJS(index_exports);
31
35
 
32
36
  // src/telemetry/telemetry.ts
33
37
  var import_crypto = require("crypto");
@@ -82,15 +86,13 @@ var _getPack = (rootDir) => {
82
86
  return pack;
83
87
  };
84
88
  var getTinaVersion = () => {
85
- var _a;
86
89
  const pack = _getPack(process.cwd());
87
- const version = (_a = pack == null ? void 0 : pack.dependencies) == null ? void 0 : _a.tinacms;
90
+ const version = pack?.dependencies?.tinacms;
88
91
  return version || "";
89
92
  };
90
93
  var getTinaCliVersion = () => {
91
- var _a, _b;
92
94
  const pack = _getPack(process.cwd());
93
- const version = ((_a = pack == null ? void 0 : pack.devDependencies) == null ? void 0 : _a["@tinacms/cli"]) || ((_b = pack == null ? void 0 : pack.dependencies) == null ? void 0 : _b["@tinacms/cli"]);
95
+ const version = pack?.devDependencies?.["@tinacms/cli"] || pack?.dependencies?.["@tinacms/cli"];
94
96
  return version || "";
95
97
  };
96
98
  var getYarnVersion = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinacms/metrics",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "files": [
@@ -22,10 +22,10 @@
22
22
  "devDependencies": {
23
23
  "@types/fs-extra": "^9.0.13",
24
24
  "@types/isomorphic-fetch": "^0.0.35",
25
- "fs-extra": "^11.2.0",
25
+ "fs-extra": "^11.3.0",
26
26
  "jest": "^29.7.0",
27
- "typescript": "^5.6.3",
28
- "@tinacms/scripts": "1.3.1"
27
+ "typescript": "^5.7.3",
28
+ "@tinacms/scripts": "1.4.0"
29
29
  },
30
30
  "publishConfig": {
31
31
  "registry": "https://registry.npmjs.org"