@sap-ux/nodejs-utils 0.2.10 → 0.2.12

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,4 +1,4 @@
1
- import { type SpawnOptionsWithoutStdio } from 'child_process';
1
+ import { type SpawnOptionsWithoutStdio } from 'node:child_process';
2
2
  import type { Logger } from '@sap-ux/logger';
3
3
  /**
4
4
  *
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CommandRunner = void 0;
4
- const child_process_1 = require("child_process");
4
+ const node_child_process_1 = require("node:child_process");
5
5
  /**
6
6
  *
7
7
  */
@@ -23,7 +23,7 @@ class CommandRunner {
23
23
  return new Promise((resolve, reject) => {
24
24
  const stack = [];
25
25
  const spawnOpts = process.platform === 'win32' ? { ...opts, shell: true } : opts;
26
- const spawnedCmd = (0, child_process_1.spawn)(cmd, args, spawnOpts);
26
+ const spawnedCmd = (0, node_child_process_1.spawn)(cmd, args, spawnOpts);
27
27
  spawnedCmd.stdout.setEncoding('utf8');
28
28
  let response;
29
29
  spawnedCmd.stdout.on('data', (data) => {
@@ -4,20 +4,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.setGlobalRejectUnauthorized = setGlobalRejectUnauthorized;
7
- const https_1 = __importDefault(require("https"));
7
+ const node_https_1 = __importDefault(require("node:https"));
8
8
  /**
9
9
  * Set the rejectUnauthorized option of the global https agent.
10
10
  *
11
11
  * @param rejectUnauthorized - true to reject unauthorized certificates, false to accept them
12
12
  */
13
13
  function setGlobalRejectUnauthorized(rejectUnauthorized) {
14
- if (https_1.default.globalAgent.options) {
15
- https_1.default.globalAgent.options.rejectUnauthorized = rejectUnauthorized;
14
+ if (node_https_1.default.globalAgent.options) {
15
+ node_https_1.default.globalAgent.options.rejectUnauthorized = rejectUnauthorized;
16
16
  }
17
17
  //@ts-expect-error - fallbackAgent is only present in BoundHttpsProxyAgent implementation and is not part of the Node.js API
18
- if (https_1.default.globalAgent.fallbackAgent?.options) {
18
+ if (node_https_1.default.globalAgent.fallbackAgent?.options) {
19
19
  //@ts-expect-error - fallbackAgent is not typed in Node.js API
20
- https_1.default.globalAgent.fallbackAgent.options.rejectUnauthorized = rejectUnauthorized;
20
+ node_https_1.default.globalAgent.fallbackAgent.options.rejectUnauthorized = rejectUnauthorized;
21
21
  }
22
22
  }
23
23
  //# sourceMappingURL=httpsUtils.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap-ux/nodejs-utils",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Nodejs utility wrappers",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,13 +17,13 @@
17
17
  "fast-glob": "3.3.1",
18
18
  "read-pkg-up": "7.0.1",
19
19
  "semver": "7.5.4",
20
- "@sap-ux/btp-utils": "1.1.6"
20
+ "@sap-ux/btp-utils": "1.1.7"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/semver": "7.5.2",
24
24
  "@types/vscode": "1.73.1",
25
25
  "mock-spawn": "0.2.6",
26
- "@sap-ux/logger": "0.7.2"
26
+ "@sap-ux/logger": "0.8.1"
27
27
  },
28
28
  "files": [
29
29
  "dist",