@cedarjs/telemetry 2.2.1-next.0 → 2.2.1-rc.23

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.
@@ -32,7 +32,7 @@ __export(sendTelemetry_exports, {
32
32
  sendTelemetry: () => sendTelemetry
33
33
  });
34
34
  module.exports = __toCommonJS(sendTelemetry_exports);
35
- var import_fs = __toESM(require("fs"));
35
+ var import_node_fs = __toESM(require("node:fs"));
36
36
  var import_os = __toESM(require("os"));
37
37
  var import_path = __toESM(require("path"));
38
38
  var import_fetch = require("@whatwg-node/fetch");
@@ -187,18 +187,18 @@ const uniqueId = (rootDir) => {
187
187
  const now = Date.now();
188
188
  const expires = now - 24 * 60 * 60 * 1e3;
189
189
  let uuid;
190
- if (!import_fs.default.existsSync(telemetryCachePath) || import_fs.default.statSync(telemetryCachePath).mtimeMs < expires) {
190
+ if (!import_node_fs.default.existsSync(telemetryCachePath) || import_node_fs.default.statSync(telemetryCachePath).mtimeMs < expires) {
191
191
  uuid = (0, import_uuid.v4)();
192
192
  try {
193
- if (!import_fs.default.existsSync(import_path.default.dirname(telemetryCachePath))) {
194
- import_fs.default.mkdirSync(import_path.default.dirname(telemetryCachePath), { recursive: true });
193
+ if (!import_node_fs.default.existsSync(import_path.default.dirname(telemetryCachePath))) {
194
+ import_node_fs.default.mkdirSync(import_path.default.dirname(telemetryCachePath), { recursive: true });
195
195
  }
196
- import_fs.default.writeFileSync(telemetryCachePath, uuid);
196
+ import_node_fs.default.writeFileSync(telemetryCachePath, uuid);
197
197
  } catch {
198
198
  console.error("\nCould not create telemetry.txt file\n");
199
199
  }
200
200
  } else {
201
- uuid = import_fs.default.readFileSync(telemetryCachePath).toString();
201
+ uuid = import_node_fs.default.readFileSync(telemetryCachePath).toString();
202
202
  }
203
203
  return uuid;
204
204
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/telemetry",
3
- "version": "2.2.1-next.0+2323281e7",
3
+ "version": "2.2.1-rc.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
@@ -21,18 +21,17 @@
21
21
  "test:watch": "vitest watch"
22
22
  },
23
23
  "dependencies": {
24
- "@cedarjs/project-config": "2.2.1-next.0+2323281e7",
25
- "@cedarjs/structure": "2.2.1-next.0+2323281e7",
24
+ "@cedarjs/project-config": "2.2.1-rc.23",
25
+ "@cedarjs/structure": "2.2.1-rc.23",
26
26
  "@whatwg-node/fetch": "0.10.13",
27
27
  "ci-info": "4.3.1",
28
28
  "envinfo": "7.21.0",
29
- "systeminformation": "5.27.17",
30
- "uuid": "10.0.0",
29
+ "systeminformation": "5.28.1",
30
+ "uuid": "11.1.0",
31
31
  "yargs": "17.7.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/envinfo": "7.8.4",
35
- "@types/uuid": "10.0.0",
36
35
  "@types/yargs": "17.0.35",
37
36
  "tsx": "4.21.0",
38
37
  "typescript": "5.9.3",
@@ -41,5 +40,5 @@
41
40
  "publishConfig": {
42
41
  "access": "public"
43
42
  },
44
- "gitHead": "2323281e7378c8b45faea9f1d70e8a1638144e8d"
43
+ "gitHead": "24dbb96b93c3cf4a316ac2965158d378c87a76db"
45
44
  }