@sap-ux/telemetry 0.5.63 → 0.5.64
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.
|
@@ -28,6 +28,7 @@ const types_1 = require("./types");
|
|
|
28
28
|
const child_process_1 = require("child_process");
|
|
29
29
|
const os_1 = __importDefault(require("os"));
|
|
30
30
|
const config_state_1 = require("./config-state");
|
|
31
|
+
const project_access_1 = require("@sap-ux/project-access");
|
|
31
32
|
/**
|
|
32
33
|
* Collect commone properties that needs to be added to telemetry event.
|
|
33
34
|
*
|
|
@@ -259,9 +260,10 @@ function getInternalVsExternal() {
|
|
|
259
260
|
* @returns {Promise<SourceTemplate>} A promise that resolves to the source template configuration object.
|
|
260
261
|
*/
|
|
261
262
|
async function getSourceTemplate(appPath) {
|
|
263
|
+
const webappPath = await (0, project_access_1.getWebappPath)(appPath);
|
|
262
264
|
const paths = {
|
|
263
|
-
manifest: path_1.default.join(
|
|
264
|
-
appdescr: path_1.default.join(
|
|
265
|
+
manifest: path_1.default.join(webappPath, 'manifest.json'),
|
|
266
|
+
appdescr: path_1.default.join(webappPath, 'manifest.appdescr_variant'),
|
|
265
267
|
ui5Yaml: path_1.default.join(appPath, 'ui5.yaml')
|
|
266
268
|
};
|
|
267
269
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/telemetry",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.64",
|
|
4
4
|
"description": "Library for sending usage telemetry data",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"performance-now": "2.1.0",
|
|
20
20
|
"yaml": "2.3.3",
|
|
21
21
|
"@sap-ux/store": "1.0.0",
|
|
22
|
-
"@sap-ux/project-access": "1.29.
|
|
22
|
+
"@sap-ux/project-access": "1.29.10",
|
|
23
23
|
"@sap-ux/btp-utils": "1.0.1",
|
|
24
24
|
"@sap-ux/ui5-config": "0.26.2",
|
|
25
25
|
"@sap-ux/logger": "0.6.0"
|