@cedarjs/telemetry 5.0.7-next.336 → 5.0.7-rc.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/dist/index.js +22 -1
- package/dist/scripts/invoke.js +3 -2
- package/dist/sendTelemetry.d.ts.map +1 -1
- package/dist/sendTelemetry.js +72 -41
- package/dist/telemetry.d.ts +0 -14
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +45 -30
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -1 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var index_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(index_exports);
|
|
18
|
+
__reExport(index_exports, require("./telemetry.js"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./telemetry.js")
|
|
22
|
+
});
|
package/dist/scripts/invoke.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendTelemetry.d.ts","sourceRoot":"","sources":["../src/sendTelemetry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sendTelemetry.d.ts","sourceRoot":"","sources":["../src/sendTelemetry.ts"],"names":[],"mappings":"AAaA,UAAU,qBAAqB;IAC7B,IAAI,EAAE;QACJ,SAAS,EAAE,MAAM,EAAE,CAAA;QACnB,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,SAAS,EAAE,MAAM,EAAE,CAAA;KACpB,CAAA;IACD,CAAC,EAAE;QACD,SAAS,EAAE,MAAM,EAAE,CAAA;QACnB,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;KACrB,CAAA;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,MAAM,EAAE,CAAA;QACnB,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;KACrB,CAAA;IACD,MAAM,EAAE;QACN,SAAS,CAAC,EAAE,KAAK,CAAA;QACjB,OAAO,EAAE,MAAM,EAAE,CAAA;QACjB,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;KACrB,CAAA;IACD,IAAI,EAAE;QACJ,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;QACpB,OAAO,CAAC,EAAE,KAAK,CAAA;QACf,UAAU,EAAE,MAAM,EAAE,CAAA;QACpB,SAAS,EAAE,MAAM,EAAE,CAAA;KACpB,CAAA;CACF;AA+ED,eAAO,MAAM,YAAY,GACvB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,EAAE,GAAG,MAAM,EAAE,CAAC,WAyCjE,CAAA;AAiGD,eAAO,MAAM,aAAa,qBAsCzB,CAAA"}
|
package/dist/sendTelemetry.js
CHANGED
|
@@ -1,14 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var sendTelemetry_exports = {};
|
|
30
|
+
__export(sendTelemetry_exports, {
|
|
31
|
+
sanitizeArgv: () => sanitizeArgv,
|
|
32
|
+
sendTelemetry: () => sendTelemetry
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(sendTelemetry_exports);
|
|
35
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
36
|
+
var import_os = __toESM(require("os"));
|
|
37
|
+
var import_path = __toESM(require("path"));
|
|
38
|
+
var import_fetch = require("@whatwg-node/fetch");
|
|
39
|
+
var import_ci_info = __toESM(require("ci-info"));
|
|
40
|
+
var import_envinfo = __toESM(require("envinfo"));
|
|
41
|
+
var import_systeminformation = __toESM(require("systeminformation"));
|
|
42
|
+
var import_uuid = require("uuid");
|
|
43
|
+
var import_project_config = require("@cedarjs/project-config");
|
|
44
|
+
var import_RWProject = require("@cedarjs/structure/dist/model/RWProject");
|
|
12
45
|
const SENSITIVE_ARG_POSITIONS = {
|
|
13
46
|
exec: {
|
|
14
47
|
positions: [1],
|
|
@@ -34,7 +67,7 @@ const SENSITIVE_ARG_POSITIONS = {
|
|
|
34
67
|
};
|
|
35
68
|
const getInfo = async (presets = {}) => {
|
|
36
69
|
const info = JSON.parse(
|
|
37
|
-
await
|
|
70
|
+
await import_envinfo.default.run(
|
|
38
71
|
{
|
|
39
72
|
System: ["OS", "Shell"],
|
|
40
73
|
Binaries: ["Node", "Yarn", "npm"],
|
|
@@ -50,9 +83,9 @@ const getInfo = async (presets = {}) => {
|
|
|
50
83
|
} else if (shell?.path.match("\\")) {
|
|
51
84
|
info.System.Shell.name = info.System.Shell.path.split("\\").pop();
|
|
52
85
|
}
|
|
53
|
-
const cpu = await
|
|
54
|
-
const mem = await
|
|
55
|
-
const experiments = Object.keys(getRawConfig()["experimental"] || {});
|
|
86
|
+
const cpu = await import_systeminformation.default.cpu();
|
|
87
|
+
const mem = await import_systeminformation.default.mem();
|
|
88
|
+
const experiments = Object.keys((0, import_project_config.getRawConfig)()["experimental"] || {});
|
|
56
89
|
return {
|
|
57
90
|
os: info.System?.OS?.split(" ")[0],
|
|
58
91
|
osVersion: info.System?.OS?.split(" ")[1],
|
|
@@ -63,6 +96,8 @@ const getInfo = async (presets = {}) => {
|
|
|
63
96
|
vsCodeVersion: info.IDEs?.VSCode?.version,
|
|
64
97
|
cedarVersion: presets.cedarVersion || info.npmPackages?.["@cedarjs/core"]?.installed,
|
|
65
98
|
system: `${cpu.physicalCores}.${Math.round(mem.total / 1073741824)}`,
|
|
99
|
+
webBundler: "vite",
|
|
100
|
+
// Hardcoded as this is now the only supported bundler
|
|
66
101
|
experiments
|
|
67
102
|
};
|
|
68
103
|
};
|
|
@@ -99,7 +134,7 @@ const sanitizeArgv = (argv) => {
|
|
|
99
134
|
const buildPayload = async () => {
|
|
100
135
|
let payload = {};
|
|
101
136
|
const processArgv = [...process.argv];
|
|
102
|
-
if (
|
|
137
|
+
if (import_os.default.type() === "Windows_NT") {
|
|
103
138
|
const argvIndex = processArgv.findIndex((arg) => arg === "--argv") + 1;
|
|
104
139
|
let argvFormatted = argvIndex !== 0 ? processArgv[argvIndex] : null;
|
|
105
140
|
if (argvFormatted) {
|
|
@@ -109,28 +144,23 @@ const buildPayload = async () => {
|
|
|
109
144
|
processArgv[argvIndex] = argvFormatted;
|
|
110
145
|
}
|
|
111
146
|
}
|
|
112
|
-
const
|
|
113
|
-
const
|
|
114
|
-
const typeFlag = typeof rawArgv.type === "string" ? rawArgv.type : void 0;
|
|
115
|
-
const durationFlag = typeof rawArgv.duration === "string" ? rawArgv.duration : void 0;
|
|
116
|
-
const rwVersionFlag = typeof rawArgv.rwVersion === "string" ? rawArgv.rwVersion : void 0;
|
|
117
|
-
const errorFlag = typeof rawArgv.error === "string" ? rawArgv.error : void 0;
|
|
118
|
-
const command = argvFlag ? sanitizeArgv(JSON.parse(argvFlag)) : "";
|
|
147
|
+
const argv = require("yargs/yargs")(processArgv.slice(2)).parse();
|
|
148
|
+
const command = argv.argv ? sanitizeArgv(JSON.parse(argv.argv)) : "";
|
|
119
149
|
payload = {
|
|
120
|
-
type:
|
|
150
|
+
type: argv.type || "command",
|
|
121
151
|
command,
|
|
122
|
-
duration:
|
|
152
|
+
duration: argv.duration ? parseInt(argv.duration) : null,
|
|
123
153
|
uid: uniqueId(),
|
|
124
|
-
ci:
|
|
154
|
+
ci: import_ci_info.default.isCI,
|
|
125
155
|
cedarCi: !!process.env.CEDAR_CI,
|
|
126
156
|
NODE_ENV: process.env.NODE_ENV || null,
|
|
127
|
-
...await getInfo({ cedarVersion:
|
|
157
|
+
...await getInfo({ cedarVersion: argv.rwVersion, command })
|
|
128
158
|
};
|
|
129
|
-
if (
|
|
159
|
+
if (argv.error) {
|
|
130
160
|
payload.type = "error";
|
|
131
|
-
payload.error =
|
|
161
|
+
payload.error = argv.error.split("\n")[0].replace(/(\/[@\-\.\w]+)/g, "[path]");
|
|
132
162
|
}
|
|
133
|
-
const project = new RWProject();
|
|
163
|
+
const project = new import_RWProject.RWProject();
|
|
134
164
|
const routes = project.getRouter().routes;
|
|
135
165
|
const prerenderedRoutes = routes.filter((route) => route.hasPrerender);
|
|
136
166
|
payload = {
|
|
@@ -141,25 +171,25 @@ const buildPayload = async () => {
|
|
|
141
171
|
return payload;
|
|
142
172
|
};
|
|
143
173
|
function uniqueId() {
|
|
144
|
-
const telemetryCachePath =
|
|
145
|
-
getPaths().generated.base,
|
|
174
|
+
const telemetryCachePath = import_path.default.join(
|
|
175
|
+
(0, import_project_config.getPaths)().generated.base,
|
|
146
176
|
"telemetry.txt"
|
|
147
177
|
);
|
|
148
178
|
const now = Date.now();
|
|
149
179
|
const expires = now - 24 * 60 * 60 * 1e3;
|
|
150
180
|
let uuid;
|
|
151
|
-
if (!
|
|
152
|
-
uuid =
|
|
181
|
+
if (!import_node_fs.default.existsSync(telemetryCachePath) || import_node_fs.default.statSync(telemetryCachePath).mtimeMs < expires) {
|
|
182
|
+
uuid = (0, import_uuid.v4)();
|
|
153
183
|
try {
|
|
154
|
-
if (!
|
|
155
|
-
|
|
184
|
+
if (!import_node_fs.default.existsSync(import_path.default.dirname(telemetryCachePath))) {
|
|
185
|
+
import_node_fs.default.mkdirSync(import_path.default.dirname(telemetryCachePath), { recursive: true });
|
|
156
186
|
}
|
|
157
|
-
|
|
187
|
+
import_node_fs.default.writeFileSync(telemetryCachePath, uuid);
|
|
158
188
|
} catch {
|
|
159
189
|
console.error("\nCould not create telemetry.txt file\n");
|
|
160
190
|
}
|
|
161
191
|
} else {
|
|
162
|
-
uuid =
|
|
192
|
+
uuid = import_node_fs.default.readFileSync(telemetryCachePath).toString();
|
|
163
193
|
}
|
|
164
194
|
return uuid;
|
|
165
195
|
}
|
|
@@ -171,7 +201,7 @@ const sendTelemetry = async () => {
|
|
|
171
201
|
if (verboseTelemetry) {
|
|
172
202
|
console.info("Cedar Telemetry Payload", payload);
|
|
173
203
|
}
|
|
174
|
-
const response = await fetch(telemetryUrl, {
|
|
204
|
+
const response = await (0, import_fetch.fetch)(telemetryUrl, {
|
|
175
205
|
method: "post",
|
|
176
206
|
body: JSON.stringify(payload),
|
|
177
207
|
headers: { "Content-Type": "application/json" }
|
|
@@ -188,7 +218,8 @@ const sendTelemetry = async () => {
|
|
|
188
218
|
}
|
|
189
219
|
}
|
|
190
220
|
};
|
|
191
|
-
export
|
|
221
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
222
|
+
0 && (module.exports = {
|
|
192
223
|
sanitizeArgv,
|
|
193
224
|
sendTelemetry
|
|
194
|
-
};
|
|
225
|
+
});
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Quotes a single argument for a Windows shell command string.
|
|
3
|
-
*
|
|
4
|
-
* On Windows we spawn with `shell: true` and a command string, so every
|
|
5
|
-
* argument is re-parsed by the shell. Without quoting, anything containing a
|
|
6
|
-
* space is split: a project at `C:\Users\Ada Lovelace\app` makes node try to
|
|
7
|
-
* load `C:\Users\Ada`, and the process dies with MODULE_NOT_FOUND. The JSON
|
|
8
|
-
* payloads passed below need it too, since they contain double quotes.
|
|
9
|
-
*
|
|
10
|
-
* Follows the usual Windows argument-encoding rules: backslashes immediately
|
|
11
|
-
* before a double quote are doubled, the quote itself is escaped, and trailing
|
|
12
|
-
* backslashes are doubled so they can't escape the closing quote.
|
|
13
|
-
*/
|
|
14
|
-
export declare function quoteForWindowsShell(arg: string): string;
|
|
15
1
|
export declare const timedTelemetry: (argv: string[], options: Record<string, unknown>, func: (...args: any[]) => any) => Promise<any>;
|
|
16
2
|
export declare const errorTelemetry: (argv: string[], error: any) => Promise<void>;
|
|
17
3
|
export declare const telemetryMiddleware: () => Promise<void>;
|
package/dist/telemetry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAmDA,eAAO,MAAM,cAAc,GACzB,MAAM,MAAM,EAAE,EACd,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,iBAuB9B,CAAA;AAED,eAAO,MAAM,cAAc,GAAU,MAAM,MAAM,EAAE,EAAE,OAAO,GAAG,kBAS9D,CAAA;AAGD,eAAO,MAAM,mBAAmB,qBAS/B,CAAA"}
|
package/dist/telemetry.js
CHANGED
|
@@ -1,25 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
backslashes = 0;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
17
|
}
|
|
19
|
-
return
|
|
20
|
-
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var telemetry_exports = {};
|
|
30
|
+
__export(telemetry_exports, {
|
|
31
|
+
errorTelemetry: () => errorTelemetry,
|
|
32
|
+
telemetryMiddleware: () => telemetryMiddleware,
|
|
33
|
+
timedTelemetry: () => timedTelemetry
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(telemetry_exports);
|
|
36
|
+
var import_child_process = require("child_process");
|
|
37
|
+
var import_os = __toESM(require("os"));
|
|
38
|
+
var import_path = __toESM(require("path"));
|
|
21
39
|
const spawnProcess = (...args) => {
|
|
22
|
-
const isWindows =
|
|
40
|
+
const isWindows = import_os.default.type() === "Windows_NT";
|
|
41
|
+
const execPath = isWindows ? `"${process.execPath}"` : process.execPath;
|
|
23
42
|
const spawnOptions = isWindows ? {
|
|
24
43
|
stdio: process.env.CEDAR_VERBOSE_TELEMETRY || process.env.REDWOOD_VERBOSE_TELEMETRY ? ["ignore", "inherit", "inherit"] : "ignore",
|
|
25
44
|
// The following options run the process in the background without a console window, even though they don't look like they would.
|
|
@@ -32,15 +51,11 @@ const spawnProcess = (...args) => {
|
|
|
32
51
|
detached: process.env.CEDAR_VERBOSE_TELEMETRY || process.env.REDWOOD_VERBOSE_TELEMETRY ? false : true,
|
|
33
52
|
windowsHide: true
|
|
34
53
|
};
|
|
35
|
-
const scriptArgs = [
|
|
36
|
-
path.join(import.meta.dirname, "scripts", "invoke.js"),
|
|
37
|
-
...args
|
|
38
|
-
];
|
|
54
|
+
const scriptArgs = [import_path.default.join(__dirname, "scripts", "invoke.js"), ...args];
|
|
39
55
|
if (isWindows) {
|
|
40
|
-
|
|
41
|
-
spawn(command, [], spawnOptions).unref();
|
|
56
|
+
(0, import_child_process.spawn)([execPath, ...scriptArgs].join(" "), [], spawnOptions).unref();
|
|
42
57
|
} else {
|
|
43
|
-
spawn(process.execPath, scriptArgs, spawnOptions).unref();
|
|
58
|
+
(0, import_child_process.spawn)(process.execPath, scriptArgs, spawnOptions).unref();
|
|
44
59
|
}
|
|
45
60
|
};
|
|
46
61
|
const timedTelemetry = async (argv, options, func) => {
|
|
@@ -72,9 +87,9 @@ const telemetryMiddleware = async () => {
|
|
|
72
87
|
}
|
|
73
88
|
spawnProcess("--argv", JSON.stringify(process.argv));
|
|
74
89
|
};
|
|
75
|
-
export
|
|
90
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
91
|
+
0 && (module.exports = {
|
|
76
92
|
errorTelemetry,
|
|
77
|
-
quoteForWindowsShell,
|
|
78
93
|
telemetryMiddleware,
|
|
79
94
|
timedTelemetry
|
|
80
|
-
};
|
|
95
|
+
});
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/telemetry",
|
|
3
|
-
"version": "5.0.7-
|
|
3
|
+
"version": "5.0.7-rc.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
7
7
|
"directory": "packages/telemetry"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"type": "
|
|
10
|
+
"type": "commonjs",
|
|
11
11
|
"main": "./dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "node build.mts",
|
|
17
|
+
"build": "node build.mts && yarn build:types",
|
|
18
18
|
"build:pack": "yarn pack -o cedarjs-telemetry.tgz",
|
|
19
|
-
"build:types": "tsc --build --verbose
|
|
19
|
+
"build:types": "tsc --build --verbose",
|
|
20
20
|
"prepublishOnly": "NODE_ENV=production yarn build",
|
|
21
21
|
"test": "vitest run",
|
|
22
22
|
"test:watch": "vitest watch"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@cedarjs/project-config": "5.0.7-
|
|
26
|
-
"@cedarjs/structure": "5.0.7-
|
|
25
|
+
"@cedarjs/project-config": "5.0.7-rc.3",
|
|
26
|
+
"@cedarjs/structure": "5.0.7-rc.3",
|
|
27
27
|
"@whatwg-node/fetch": "0.10.13",
|
|
28
28
|
"ci-info": "4.4.0",
|
|
29
29
|
"envinfo": "7.21.0",
|
|
30
|
-
"systeminformation": "5.
|
|
30
|
+
"systeminformation": "5.31.7",
|
|
31
31
|
"uuid": "11.1.0",
|
|
32
32
|
"yargs": "17.7.3"
|
|
33
33
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@types/envinfo": "7.8.4",
|
|
36
36
|
"@types/yargs": "17.0.35",
|
|
37
37
|
"typescript": "5.9.3",
|
|
38
|
-
"vitest": "
|
|
38
|
+
"vitest": "3.2.6"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=24"
|