@sap-ux/project-access 1.32.16 → 1.32.17
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.execNpmCommand = execNpmCommand;
|
|
4
|
-
const
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
5
|
/**
|
|
6
6
|
* Execute an npm command.
|
|
7
7
|
*
|
|
@@ -21,7 +21,7 @@ async function execNpmCommand(commandArguments, options) {
|
|
|
21
21
|
const logger = options?.logger;
|
|
22
22
|
const cwd = options?.cwd;
|
|
23
23
|
const spawnOptions = typeof cwd === 'string' ? { ...defaultSpawnOptions, cwd } : defaultSpawnOptions;
|
|
24
|
-
const spawnProcess = (0,
|
|
24
|
+
const spawnProcess = (0, node_child_process_1.spawn)(npmCommand, commandArguments, spawnOptions);
|
|
25
25
|
let stdOut = '';
|
|
26
26
|
let stdErr = '';
|
|
27
27
|
spawnProcess.stdout.on('data', (data) => {
|
package/dist/project/cap.js
CHANGED
|
@@ -20,7 +20,7 @@ exports.checkCdsUi5PluginEnabled = checkCdsUi5PluginEnabled;
|
|
|
20
20
|
exports.getWorkspaceInfo = getWorkspaceInfo;
|
|
21
21
|
exports.satisfiesMinCdsVersion = satisfiesMinCdsVersion;
|
|
22
22
|
exports.hasMinCdsVersion = hasMinCdsVersion;
|
|
23
|
-
const
|
|
23
|
+
const node_child_process_1 = require("node:child_process");
|
|
24
24
|
const node_path_1 = require("node:path");
|
|
25
25
|
const constants_1 = require("../constants");
|
|
26
26
|
const file_1 = require("../file");
|
|
@@ -583,7 +583,7 @@ function clearGlobalCdsModulePromiseCache() {
|
|
|
583
583
|
async function getCdsVersionInfo(cwd) {
|
|
584
584
|
return new Promise((resolve, reject) => {
|
|
585
585
|
let out = '';
|
|
586
|
-
const cdsVersionInfo = (0,
|
|
586
|
+
const cdsVersionInfo = (0, node_child_process_1.spawn)('cds', ['--version'], { cwd, shell: true });
|
|
587
587
|
cdsVersionInfo.stdout.on('data', (data) => {
|
|
588
588
|
out += data.toString();
|
|
589
589
|
});
|
|
@@ -8,7 +8,7 @@ const i18n_1 = require("@sap-ux/i18n");
|
|
|
8
8
|
const __1 = require("..");
|
|
9
9
|
const node_path_1 = require("node:path");
|
|
10
10
|
const file_1 = require("../../file");
|
|
11
|
-
const promises_1 = require("fs/promises");
|
|
11
|
+
const promises_1 = require("node:fs/promises");
|
|
12
12
|
/**
|
|
13
13
|
* Maintains new translation entries in CAP i18n files.
|
|
14
14
|
*
|
|
@@ -38,7 +38,7 @@ exports.loadModuleFromProject = loadModuleFromProject;
|
|
|
38
38
|
exports.getModule = getModule;
|
|
39
39
|
exports.deleteModule = deleteModule;
|
|
40
40
|
const node_fs_1 = require("node:fs");
|
|
41
|
-
const promises_1 = require("fs/promises");
|
|
41
|
+
const promises_1 = require("node:fs/promises");
|
|
42
42
|
const node_path_1 = require("node:path");
|
|
43
43
|
const dependencies_1 = require("./dependencies");
|
|
44
44
|
const constants_1 = require("../constants");
|
|
@@ -5,7 +5,7 @@ exports.getSpecification = getSpecification;
|
|
|
5
5
|
exports.refreshSpecificationDistTags = refreshSpecificationDistTags;
|
|
6
6
|
exports.getSpecificationPath = getSpecificationPath;
|
|
7
7
|
const node_fs_1 = require("node:fs");
|
|
8
|
-
const promises_1 = require("fs/promises");
|
|
8
|
+
const promises_1 = require("node:fs/promises");
|
|
9
9
|
const node_path_1 = require("node:path");
|
|
10
10
|
const semver_1 = require("semver");
|
|
11
11
|
const module_loader_1 = require("./module-loader");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/project-access",
|
|
3
|
-
"version": "1.32.
|
|
3
|
+
"version": "1.32.17",
|
|
4
4
|
"description": "Library to access SAP Fiori tools projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"mem-fs": "2.1.0",
|
|
30
30
|
"mem-fs-editor": "9.4.0",
|
|
31
31
|
"semver": "7.5.4",
|
|
32
|
-
"@sap-ux/i18n": "0.3.
|
|
33
|
-
"@sap-ux/ui5-config": "0.29.
|
|
32
|
+
"@sap-ux/i18n": "0.3.7",
|
|
33
|
+
"@sap-ux/ui5-config": "0.29.12"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/mem-fs": "1.1.2",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/semver": "7.5.2",
|
|
39
39
|
"@ui5/manifest": "1.81.0",
|
|
40
40
|
"vscode-uri": "3.0.7",
|
|
41
|
-
"@sap-ux/logger": "0.7.
|
|
41
|
+
"@sap-ux/logger": "0.7.3"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsc --build",
|