@jsforce/jsforce-node 3.2.4 → 3.3.1

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/VERSION.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "3.2.4";
1
+ declare const _default: "3.3.1";
2
2
  export default _default;
package/lib/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '3.2.4';
3
+ exports.default = '3.3.1';
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_extra_1 = __importDefault(require("fs-extra"));
6
+ const node_fs_1 = __importDefault(require("node:fs"));
7
7
  const xml2js_1 = __importDefault(require("xml2js"));
8
8
  const soap_1 = require("../../soap");
9
9
  const function_1 = require("../../util/function");
@@ -122,7 +122,7 @@ function toJsType(xsdType, simpleTypes) {
122
122
  *
123
123
  */
124
124
  async function readWSDLFile(filePath) {
125
- const xmlData = await fs_extra_1.default.readFile(filePath, 'utf8');
125
+ const xmlData = await node_fs_1.default.promises.readFile(filePath, 'utf8');
126
126
  const json = await xml2js_1.default.parseStringPromise(xmlData, {
127
127
  explicitArray: false,
128
128
  });
@@ -202,7 +202,7 @@ const GENERATED_MESSAGE_COMMENT = `/**
202
202
  *
203
203
  */
204
204
  async function dumpSchema(schemas, outFile) {
205
- const out = fs_extra_1.default.createWriteStream(outFile, 'utf8');
205
+ const out = node_fs_1.default.createWriteStream(outFile, 'utf8');
206
206
  const print = (str, indent = 0) => {
207
207
  for (let i = 0; i < indent; i++) {
208
208
  out.write(' ');
package/lib/http-api.js CHANGED
@@ -192,6 +192,8 @@ class HttpApi extends events_1.EventEmitter {
192
192
  return parseBody(response.body);
193
193
  }
194
194
  catch (e) {
195
+ // TODO(next major): we could throw a new "invalid response body" error instead.
196
+ this._logger.debug(`Failed to parse body of content-type: ${contentType}. Error: ${e.message}`);
195
197
  return response.body;
196
198
  }
197
199
  }
package/lib/transport.js CHANGED
@@ -43,7 +43,7 @@ function normalizeApiHost(apiHost) {
43
43
  return apiHost;
44
44
  }
45
45
  (0, request_1.setDefaults)({
46
- httpProxy: process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? undefined,
46
+ httpProxy: process.env.https_proxy ?? process.env.http_proxy ?? process.env.HTTPS_PROXY ?? process.env.HTTP_PROXY ?? undefined,
47
47
  timeout: process.env.HTTP_TIMEOUT
48
48
  ? parseInt(process.env.HTTP_TIMEOUT, 10)
49
49
  : undefined,
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "database.com"
11
11
  ],
12
12
  "homepage": "http://github.com/jsforce/jsforce",
13
- "version": "3.2.4",
13
+ "version": "3.3.1",
14
14
  "repository": {
15
15
  "type": "git",
16
16
  "url": "git://github.com/jsforce/jsforce.git"
@@ -200,7 +200,6 @@
200
200
  "csv-stringify": "^6.4.4",
201
201
  "faye": "^1.4.0",
202
202
  "form-data": "^4.0.0",
203
- "fs-extra": "^8.1.0",
204
203
  "https-proxy-agent": "^5.0.0",
205
204
  "multistream": "^3.1.0",
206
205
  "node-fetch": "^2.6.1",
@@ -214,7 +213,6 @@
214
213
  "@babel/preset-env": "^7.22.20",
215
214
  "@babel/preset-typescript": "^7.23.0",
216
215
  "@babel/register": "^7.22.15",
217
- "@types/fs-extra": "^8.0.1",
218
216
  "@types/inquirer": "^6.5.0",
219
217
  "@types/jest": "^29.5.5",
220
218
  "@types/multistream": "^2.1.1",