@react-native-windows/telemetry 0.67.1 → 0.68.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/lib-commonjs/index.d.ts +5 -2
- package/lib-commonjs/index.js +14 -6
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/telemetry.d.ts +75 -20
- package/lib-commonjs/telemetry.js +284 -168
- package/lib-commonjs/telemetry.js.map +1 -1
- package/lib-commonjs/test/{sanitize.test.d.ts → basePropUtils.test.d.ts} +0 -0
- package/lib-commonjs/test/basePropUtils.test.js +116 -0
- package/lib-commonjs/test/basePropUtils.test.js.map +1 -0
- package/lib-commonjs/test/errorUtils.test.d.ts +7 -0
- package/lib-commonjs/test/errorUtils.test.js +159 -0
- package/lib-commonjs/test/errorUtils.test.js.map +1 -0
- package/lib-commonjs/test/projectUtils.test.d.ts +7 -0
- package/lib-commonjs/test/projectUtils.test.js +84 -0
- package/lib-commonjs/test/projectUtils.test.js.map +1 -0
- package/lib-commonjs/test/sanitizeUtils.test.d.ts +7 -0
- package/lib-commonjs/test/sanitizeUtils.test.js +94 -0
- package/lib-commonjs/test/sanitizeUtils.test.js.map +1 -0
- package/lib-commonjs/test/telemetry.test.d.ts +26 -0
- package/lib-commonjs/test/telemetry.test.js +469 -0
- package/lib-commonjs/test/telemetry.test.js.map +1 -0
- package/lib-commonjs/test/versionUtils.test.d.ts +7 -0
- package/lib-commonjs/test/versionUtils.test.js +111 -0
- package/lib-commonjs/test/versionUtils.test.js.map +1 -0
- package/lib-commonjs/utils/basePropUtils.d.ts +66 -0
- package/lib-commonjs/utils/basePropUtils.js +131 -0
- package/lib-commonjs/utils/basePropUtils.js.map +1 -0
- package/lib-commonjs/{CodedError.d.ts → utils/errorUtils.d.ts} +27 -8
- package/lib-commonjs/utils/errorUtils.js +164 -0
- package/lib-commonjs/utils/errorUtils.js.map +1 -0
- package/lib-commonjs/utils/optionUtils.d.ts +45 -0
- package/lib-commonjs/utils/optionUtils.js +96 -0
- package/lib-commonjs/utils/optionUtils.js.map +1 -0
- package/lib-commonjs/utils/projectUtils.d.ts +50 -0
- package/lib-commonjs/utils/projectUtils.js +187 -0
- package/lib-commonjs/utils/projectUtils.js.map +1 -0
- package/lib-commonjs/utils/sanitizeUtils.d.ts +12 -0
- package/lib-commonjs/utils/sanitizeUtils.js +82 -0
- package/lib-commonjs/utils/sanitizeUtils.js.map +1 -0
- package/lib-commonjs/utils/versionUtils.d.ts +38 -0
- package/lib-commonjs/utils/versionUtils.js +156 -0
- package/lib-commonjs/utils/versionUtils.js.map +1 -0
- package/package.json +20 -9
- package/CHANGELOG.json +0 -618
- package/CHANGELOG.md +0 -260
- package/lib-commonjs/CodedError.js +0 -77
- package/lib-commonjs/CodedError.js.map +0 -1
- package/lib-commonjs/test/sanitize.test.js +0 -259
- package/lib-commonjs/test/sanitize.test.js.map +0 -1
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
* @format
|
|
6
|
+
*/
|
|
7
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
+
};
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.getVersionsOfNuGetPackages = exports.getVersionOfNpmPackage = exports.getVisualStudioVersion = exports.getYarnVersion = exports.getNpmVersion = exports.getNodeVersion = void 0;
|
|
12
|
+
const envinfo_1 = __importDefault(require("envinfo"));
|
|
13
|
+
const fs_1 = __importDefault(require("@react-native-windows/fs"));
|
|
14
|
+
const path_1 = __importDefault(require("path"));
|
|
15
|
+
const xmldom_1 = require("@xmldom/xmldom");
|
|
16
|
+
const xpath_1 = __importDefault(require("xpath"));
|
|
17
|
+
const msbuildSelect = xpath_1.default.useNamespaces({
|
|
18
|
+
msbuild: 'http://schemas.microsoft.com/developer/msbuild/2003',
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Gets the version of node being used.
|
|
22
|
+
* @returns The version of node being used.
|
|
23
|
+
*/
|
|
24
|
+
async function getNodeVersion() {
|
|
25
|
+
return process.version.slice(1);
|
|
26
|
+
}
|
|
27
|
+
exports.getNodeVersion = getNodeVersion;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the version of npm installed, if available.
|
|
30
|
+
* @returns The version of npm installed, if available.
|
|
31
|
+
*/
|
|
32
|
+
async function getNpmVersion() {
|
|
33
|
+
try {
|
|
34
|
+
const info = await envinfo_1.default.helpers.getnpmInfo();
|
|
35
|
+
return info[1];
|
|
36
|
+
}
|
|
37
|
+
catch (_a) { }
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
exports.getNpmVersion = getNpmVersion;
|
|
41
|
+
/**
|
|
42
|
+
* Gets the version of yarn installed, if available.
|
|
43
|
+
* @returns The version of yarn installed, if available.
|
|
44
|
+
*/
|
|
45
|
+
async function getYarnVersion() {
|
|
46
|
+
try {
|
|
47
|
+
const info = await envinfo_1.default.helpers.getYarnInfo();
|
|
48
|
+
return info[1];
|
|
49
|
+
}
|
|
50
|
+
catch (_a) { }
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
exports.getYarnVersion = getYarnVersion;
|
|
54
|
+
/**
|
|
55
|
+
* Gets the latest version of Visual Studio installed, if available.
|
|
56
|
+
* @returns The latest version of Visual Studio installed, if available.
|
|
57
|
+
*/
|
|
58
|
+
async function getVisualStudioVersion() {
|
|
59
|
+
try {
|
|
60
|
+
const info = await envinfo_1.default.helpers.getVisualStudioInfo();
|
|
61
|
+
const versions = info[1];
|
|
62
|
+
return versions.sort().slice(-1)[0].split(' ')[0];
|
|
63
|
+
}
|
|
64
|
+
catch (_a) { }
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
exports.getVisualStudioVersion = getVisualStudioVersion;
|
|
68
|
+
/**
|
|
69
|
+
* Gets the version installed of the specified npm package.
|
|
70
|
+
* @param pkgName The npm package name.
|
|
71
|
+
* @returns The version installed, if available.
|
|
72
|
+
*/
|
|
73
|
+
async function getVersionOfNpmPackage(pkgName) {
|
|
74
|
+
try {
|
|
75
|
+
const pkgJsonPath = require.resolve(`${pkgName.trim()}/package.json`, {
|
|
76
|
+
paths: [process.cwd(), __dirname],
|
|
77
|
+
});
|
|
78
|
+
const pkgJson = await fs_1.default.readJsonFile(pkgJsonPath);
|
|
79
|
+
if (pkgJson.name === pkgName) {
|
|
80
|
+
return pkgJson.version;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (_a) { }
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
exports.getVersionOfNpmPackage = getVersionOfNpmPackage;
|
|
87
|
+
/**
|
|
88
|
+
* Reads and parses an XML file into a Document.
|
|
89
|
+
* @param filePath The path to the XML file.
|
|
90
|
+
* @returns The parsed Document.
|
|
91
|
+
*/
|
|
92
|
+
async function readXmlFile(filePath) {
|
|
93
|
+
const contents = await fs_1.default.readFile(filePath, 'utf-8');
|
|
94
|
+
return new xmldom_1.DOMParser().parseFromString(contents);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Gets the versions of the specified NuGet packages referenced in a packages.config file.
|
|
98
|
+
* @param projectDoc The XML document of the packages.connfig file.
|
|
99
|
+
* @param nugetPackages The NuGet package names to look for.
|
|
100
|
+
* @returns The mapping of NuGet package names and their versions.
|
|
101
|
+
*/
|
|
102
|
+
function getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages) {
|
|
103
|
+
const versions = {};
|
|
104
|
+
for (const pkgName of nugetPackages) {
|
|
105
|
+
const version = xpath_1.default.select1(`//packages/package[@id='${pkgName}']/@version`, packagesConfigDoc);
|
|
106
|
+
if (version) {
|
|
107
|
+
const versionValue = version.nodeValue;
|
|
108
|
+
if (versionValue !== null) {
|
|
109
|
+
versions[pkgName] = versionValue;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return versions;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Gets the versions of the specified NuGet packages referenced in a project file.
|
|
117
|
+
* @param projectDoc The XML document of the project file.
|
|
118
|
+
* @param nugetPackages The NuGet package names to look for.
|
|
119
|
+
* @returns The mapping of NuGet package names and their versions.
|
|
120
|
+
*/
|
|
121
|
+
function getVersionsFromProjectFile(projectDoc, nugetPackages) {
|
|
122
|
+
const versions = {};
|
|
123
|
+
for (const pkgName of nugetPackages) {
|
|
124
|
+
const version = msbuildSelect(`//msbuild:ItemGroup/msbuild:PackageReference[@Include='${pkgName}']/msbuild:Version`, projectDoc, true);
|
|
125
|
+
if (version) {
|
|
126
|
+
const versionValue = version.textContent;
|
|
127
|
+
if (versionValue !== null) {
|
|
128
|
+
versions[pkgName] = versionValue;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return versions;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Gets the versions of the specified NuGet packages referenced in a project file.
|
|
136
|
+
* @param projectFile Path to the native project file.
|
|
137
|
+
* @param nugetPackages The NuGet package names to look for.
|
|
138
|
+
* @returns The mapping of NuGet package names and their versions.
|
|
139
|
+
*/
|
|
140
|
+
async function getVersionsOfNuGetPackages(projectFile, nugetPackages) {
|
|
141
|
+
try {
|
|
142
|
+
// First check for the presence of a packages.config file
|
|
143
|
+
const packagesConfigFile = path_1.default.join(path_1.default.dirname(projectFile), 'packages.config');
|
|
144
|
+
const packagesConfigDoc = await readXmlFile(packagesConfigFile);
|
|
145
|
+
return getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages);
|
|
146
|
+
}
|
|
147
|
+
catch (_a) { }
|
|
148
|
+
try {
|
|
149
|
+
const projectDoc = await readXmlFile(projectFile);
|
|
150
|
+
return getVersionsFromProjectFile(projectDoc, nugetPackages);
|
|
151
|
+
}
|
|
152
|
+
catch (_b) { }
|
|
153
|
+
return {};
|
|
154
|
+
}
|
|
155
|
+
exports.getVersionsOfNuGetPackages = getVersionsOfNuGetPackages;
|
|
156
|
+
//# sourceMappingURL=versionUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"versionUtils.js","sourceRoot":"","sources":["../../src/utils/versionUtils.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n * @format\n */\n\nimport envinfo from 'envinfo';\nimport fs from '@react-native-windows/fs';\nimport path from 'path';\nimport {DOMParser} from '@xmldom/xmldom';\nimport xpath from 'xpath';\n\nconst msbuildSelect = xpath.useNamespaces({\n msbuild: 'http://schemas.microsoft.com/developer/msbuild/2003',\n});\n\n/**\n * Gets the version of node being used.\n * @returns The version of node being used.\n */\nexport async function getNodeVersion(): Promise<string | null> {\n return process.version.slice(1);\n}\n\n/**\n * Gets the version of npm installed, if available.\n * @returns The version of npm installed, if available.\n */\nexport async function getNpmVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getnpmInfo();\n return info[1] as string;\n } catch {}\n return null;\n}\n\n/**\n * Gets the version of yarn installed, if available.\n * @returns The version of yarn installed, if available.\n */\nexport async function getYarnVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getYarnInfo();\n return info[1] as string;\n } catch {}\n return null;\n}\n\n/**\n * Gets the latest version of Visual Studio installed, if available.\n * @returns The latest version of Visual Studio installed, if available.\n */\nexport async function getVisualStudioVersion(): Promise<string | null> {\n try {\n const info: any = await envinfo.helpers.getVisualStudioInfo();\n const versions = info[1] as string[];\n return versions.sort().slice(-1)[0].split(' ')[0];\n } catch {}\n return null;\n}\n\n/**\n * Gets the version installed of the specified npm package.\n * @param pkgName The npm package name.\n * @returns The version installed, if available.\n */\nexport async function getVersionOfNpmPackage(\n pkgName: string,\n): Promise<string | null> {\n try {\n const pkgJsonPath = require.resolve(`${pkgName.trim()}/package.json`, {\n paths: [process.cwd(), __dirname],\n });\n const pkgJson = await fs.readJsonFile<{name: string; version: string}>(\n pkgJsonPath,\n );\n if (pkgJson.name === pkgName) {\n return pkgJson.version;\n }\n } catch {}\n return null;\n}\n\n/**\n * Reads and parses an XML file into a Document.\n * @param filePath The path to the XML file.\n * @returns The parsed Document.\n */\nasync function readXmlFile(filePath: string): Promise<Document> {\n const contents = await fs.readFile(filePath, 'utf-8');\n return new DOMParser().parseFromString(contents);\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a packages.config file.\n * @param projectDoc The XML document of the packages.connfig file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nfunction getVersionsFromPackagesConfig(\n packagesConfigDoc: Document,\n nugetPackages: string[],\n): Record<string, string> {\n const versions: Record<string, string> = {};\n for (const pkgName of nugetPackages) {\n const version = xpath.select1(\n `//packages/package[@id='${pkgName}']/@version`,\n packagesConfigDoc,\n );\n\n if (version) {\n const versionValue = (version as Attr).nodeValue;\n if (versionValue !== null) {\n versions[pkgName] = versionValue;\n }\n }\n }\n return versions;\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a project file.\n * @param projectDoc The XML document of the project file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nfunction getVersionsFromProjectFile(\n projectDoc: Document,\n nugetPackages: string[],\n): Record<string, string> {\n const versions: Record<string, string> = {};\n for (const pkgName of nugetPackages) {\n const version = msbuildSelect(\n `//msbuild:ItemGroup/msbuild:PackageReference[@Include='${pkgName}']/msbuild:Version`,\n projectDoc,\n true,\n );\n\n if (version) {\n const versionValue = (version as Node).textContent;\n if (versionValue !== null) {\n versions[pkgName] = versionValue;\n }\n }\n }\n return versions;\n}\n\n/**\n * Gets the versions of the specified NuGet packages referenced in a project file.\n * @param projectFile Path to the native project file.\n * @param nugetPackages The NuGet package names to look for.\n * @returns The mapping of NuGet package names and their versions.\n */\nexport async function getVersionsOfNuGetPackages(\n projectFile: string,\n nugetPackages: string[],\n): Promise<Record<string, string>> {\n try {\n // First check for the presence of a packages.config file\n const packagesConfigFile = path.join(\n path.dirname(projectFile),\n 'packages.config',\n );\n const packagesConfigDoc = await readXmlFile(packagesConfigFile);\n return getVersionsFromPackagesConfig(packagesConfigDoc, nugetPackages);\n } catch {}\n\n try {\n const projectDoc = await readXmlFile(projectFile);\n return getVersionsFromProjectFile(projectDoc, nugetPackages);\n } catch {}\n\n return {};\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-windows/telemetry",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.68.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"typings": "lib-commonjs/index.d.ts",
|
|
@@ -18,28 +18,39 @@
|
|
|
18
18
|
"watch": "rnw-scripts watch"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"
|
|
21
|
+
"@react-native-windows/fs": "0.68.0",
|
|
22
|
+
"@xmldom/xmldom": "^0.7.5",
|
|
23
|
+
"applicationinsights": "^2.1.5",
|
|
24
|
+
"ci-info": "^3.2.0",
|
|
25
|
+
"envinfo": "^7.8.1",
|
|
26
|
+
"lodash": "^4.17.21",
|
|
27
|
+
"node-machine-id": "^1.1.12",
|
|
28
|
+
"os-locale": "^5.0.0",
|
|
29
|
+
"xpath": "^0.0.27"
|
|
22
30
|
},
|
|
23
31
|
"devDependencies": {
|
|
24
|
-
"@rnw-scripts/eslint-config": "1.1.
|
|
25
|
-
"@rnw-scripts/jest-unittest-config": "1.2.
|
|
26
|
-
"@rnw-scripts/just-task": "2.2.
|
|
32
|
+
"@rnw-scripts/eslint-config": "1.1.10",
|
|
33
|
+
"@rnw-scripts/jest-unittest-config": "1.2.5",
|
|
34
|
+
"@rnw-scripts/just-task": "2.2.2",
|
|
27
35
|
"@rnw-scripts/ts-config": "2.0.1",
|
|
36
|
+
"@types/envinfo": "^7.8.1",
|
|
28
37
|
"@types/jest": "^26.0.20",
|
|
29
38
|
"@types/node": "^14.14.22",
|
|
30
39
|
"@types/semver": "^7.3.3",
|
|
31
40
|
"babel-jest": "^26.3.0",
|
|
32
|
-
"eslint": "7.
|
|
41
|
+
"eslint": "^7.32.0",
|
|
33
42
|
"jest": "^26.6.3",
|
|
34
43
|
"just-scripts": "^1.3.3",
|
|
35
|
-
"
|
|
44
|
+
"lookpath": "^1.2.1",
|
|
45
|
+
"prettier": "^2.4.1",
|
|
46
|
+
"semver": "^7.3.5",
|
|
36
47
|
"typescript": "^4.4.4"
|
|
37
48
|
},
|
|
38
49
|
"files": [
|
|
39
50
|
"lib-commonjs"
|
|
40
51
|
],
|
|
41
52
|
"beachball": {
|
|
42
|
-
"defaultNpmTag": "
|
|
53
|
+
"defaultNpmTag": "latest",
|
|
43
54
|
"disallowedChangeTypes": [
|
|
44
55
|
"major",
|
|
45
56
|
"minor",
|
|
@@ -49,6 +60,6 @@
|
|
|
49
60
|
"promoteRelease": true,
|
|
50
61
|
"windowsOnly": true,
|
|
51
62
|
"engines": {
|
|
52
|
-
"node": ">=
|
|
63
|
+
"node": ">= 14"
|
|
53
64
|
}
|
|
54
65
|
}
|