@sap-ux/deploy-tooling 0.16.53 → 0.16.55

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.
@@ -4,7 +4,7 @@ exports.createTransportRequest = createTransportRequest;
4
4
  exports.deploy = deploy;
5
5
  exports.undeploy = undeploy;
6
6
  const axios_extension_1 = require("@sap-ux/axios-extension");
7
- const fs_1 = require("fs");
7
+ const node_fs_1 = require("node:fs");
8
8
  const config_1 = require("./config");
9
9
  const prompt_1 = require("./prompt");
10
10
  const system_access_1 = require("@sap-ux/system-access");
@@ -258,7 +258,7 @@ async function tryDeploy(provider, config, logger, archive) {
258
258
  */
259
259
  async function deploy(archive, config, logger) {
260
260
  if (config.keep) {
261
- (0, fs_1.writeFileSync)(`archive.zip`, new Uint8Array(archive));
261
+ (0, node_fs_1.writeFileSync)(`archive.zip`, new Uint8Array(archive));
262
262
  }
263
263
  const provider = await createProvider(config, logger);
264
264
  logger.info(`Starting to deploy${config.test === true ? ' in test mode' : ''}.`);
@@ -8,7 +8,7 @@ exports.checkForCredentials = checkForCredentials;
8
8
  const axios_extension_1 = require("@sap-ux/axios-extension");
9
9
  const chalk_1 = require("chalk");
10
10
  const project_input_validator_1 = require("@sap-ux/project-input-validator");
11
- const os_1 = require("os");
11
+ const node_os_1 = require("node:os");
12
12
  const btp_utils_1 = require("@sap-ux/btp-utils");
13
13
  var SummaryStatus;
14
14
  (function (SummaryStatus) {
@@ -84,7 +84,7 @@ function formatSummary(summary) {
84
84
  return `${' '.repeat(4)}${statusSymbol} ${next.message}`;
85
85
  })
86
86
  .reduce((aggregated, current) => {
87
- return `${aggregated}${os_1.EOL}${current}`;
87
+ return `${aggregated}${node_os_1.EOL}${current}`;
88
88
  }, '');
89
89
  return summaryStr;
90
90
  }
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getArchive = getArchive;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const fs_1 = require("fs");
8
+ const node_fs_1 = require("node:fs");
9
9
  const adm_zip_1 = __importDefault(require("adm-zip"));
10
10
  const https_1 = require("https");
11
11
  /**
@@ -18,7 +18,7 @@ const https_1 = require("https");
18
18
  function getArchiveFromPath(logger, path) {
19
19
  logger.info(`Loading archive from ${path}`);
20
20
  return new Promise((resolve, reject) => {
21
- (0, fs_1.readFile)(path, (err, data) => {
21
+ (0, node_fs_1.readFile)(path, (err, data) => {
22
22
  if (err) {
23
23
  reject(`Loading archive has failed. Please ensure ${path} is valid and accessible.`);
24
24
  }
@@ -4,8 +4,8 @@ exports.getVersion = getVersion;
4
4
  exports.getDeploymentConfig = getDeploymentConfig;
5
5
  exports.mergeConfig = mergeConfig;
6
6
  const ui5_config_1 = require("@sap-ux/ui5-config");
7
- const fs_1 = require("fs");
8
- const path_1 = require("path");
7
+ const node_fs_1 = require("node:fs");
8
+ const node_path_1 = require("node:path");
9
9
  const types_1 = require("../types");
10
10
  /**
11
11
  * Tries to read the version of the modules package.json but in case of an error, it returns the manually maintained version matching major.minor of the module.
@@ -14,7 +14,7 @@ const types_1 = require("../types");
14
14
  */
15
15
  function getVersion() {
16
16
  try {
17
- const packageInfo = (0, fs_1.readFileSync)((0, path_1.join)(__dirname, '../../package.json'), 'utf-8');
17
+ const packageInfo = (0, node_fs_1.readFileSync)((0, node_path_1.join)(__dirname, '../../package.json'), 'utf-8');
18
18
  return JSON.parse(packageInfo).version;
19
19
  }
20
20
  catch (error) {
@@ -28,7 +28,7 @@ function getVersion() {
28
28
  * @returns the configuration object or throws an error if it cannot be read.
29
29
  */
30
30
  async function getDeploymentConfig(path) {
31
- const content = (0, fs_1.readFileSync)(path, 'utf-8');
31
+ const content = (0, node_fs_1.readFileSync)(path, 'utf-8');
32
32
  const ui5Config = await ui5_config_1.UI5Config.newInstance(content);
33
33
  const config = ui5Config.findCustomTask(types_1.NAME)?.configuration;
34
34
  if (!config) {
@@ -44,7 +44,7 @@ async function getDeploymentConfig(path) {
44
44
  */
45
45
  function readServiceKeyFromFile(path) {
46
46
  try {
47
- return JSON.parse((0, fs_1.readFileSync)(path, 'utf-8'));
47
+ return JSON.parse((0, node_fs_1.readFileSync)(path, 'utf-8'));
48
48
  }
49
49
  catch (error) {
50
50
  throw new Error(`Unable to read service key from from ${path}`);
@@ -178,11 +178,11 @@ async function mergeConfig(taskConfig, options) {
178
178
  if (!options.archiveUrl && !options.archivePath && !options.archiveFolder) {
179
179
  options.archiveFolder = 'dist';
180
180
  }
181
- if (options.config && options.archiveFolder && !(0, path_1.isAbsolute)(options.archiveFolder)) {
182
- options.archiveFolder = (0, path_1.join)((0, path_1.dirname)(options.config), options.archiveFolder);
181
+ if (options.config && options.archiveFolder && !(0, node_path_1.isAbsolute)(options.archiveFolder)) {
182
+ options.archiveFolder = (0, node_path_1.join)((0, node_path_1.dirname)(options.config), options.archiveFolder);
183
183
  }
184
- if (options.config && options.archivePath && !(0, path_1.isAbsolute)(options.archivePath)) {
185
- options.archivePath = (0, path_1.join)((0, path_1.dirname)(options.config), options.archivePath);
184
+ if (options.config && options.archivePath && !(0, node_path_1.isAbsolute)(options.archivePath)) {
185
+ options.archivePath = (0, node_path_1.join)((0, node_path_1.dirname)(options.config), options.archivePath);
186
186
  }
187
187
  return config;
188
188
  }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "bugs": {
10
10
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
11
11
  },
12
- "version": "0.16.53",
12
+ "version": "0.16.55",
13
13
  "license": "Apache-2.0",
14
14
  "author": "@SAP/ux-tools-team",
15
15
  "main": "dist/index.js",
@@ -32,18 +32,18 @@
32
32
  "prompts": "2.4.2",
33
33
  "adm-zip": "0.5.10",
34
34
  "chalk": "4.1.2",
35
- "@sap-ux/axios-extension": "1.22.9",
36
- "@sap-ux/btp-utils": "1.1.3",
37
- "@sap-ux/inquirer-common": "0.7.46",
35
+ "@sap-ux/axios-extension": "1.22.10",
36
+ "@sap-ux/btp-utils": "1.1.4",
37
+ "@sap-ux/inquirer-common": "0.7.48",
38
38
  "@sap-ux/logger": "0.7.0",
39
- "@sap-ux/system-access": "0.6.18",
40
- "@sap-ux/ui5-config": "0.29.6",
41
- "@sap-ux/project-input-validator": "0.6.23"
39
+ "@sap-ux/system-access": "0.6.19",
40
+ "@sap-ux/ui5-config": "0.29.7",
41
+ "@sap-ux/project-input-validator": "0.6.24"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/prompts": "2.4.4",
45
45
  "@types/adm-zip": "0.5.5",
46
- "@sap-ux/store": "1.1.4"
46
+ "@sap-ux/store": "1.1.5"
47
47
  },
48
48
  "ui5": {
49
49
  "dependencies": []