conductor-node 9.3.0 → 9.4.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.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
+ /* eslint-disable max-classes-per-file -- Use one module for all error classes. */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  exports.generateConductorErrorFromType = exports.ConductorUnknownError = exports.ConductorInternalError = exports.ConductorConnectionError = exports.ConductorAuthenticationError = exports.ConductorInvalidRequestError = exports.ConductorIntegrationConnectionError = exports.ConductorIntegrationError = exports.ConductorError = exports.DEFAULT_END_USER_MESSAGE = void 0;
4
- /* eslint-disable max-classes-per-file -- Use one module for all error classes. */
5
- // Matches server-side default value.
5
+ // Matches server-side value.
6
6
  exports.DEFAULT_END_USER_MESSAGE = "An internal server error occurred. Please try again later.";
7
7
  /**
8
8
  * The base error from which all other more specific Conductor errors derive.
@@ -63,7 +63,9 @@ class ConductorError extends Error {
63
63
  */
64
64
  rawType;
65
65
  constructor(options) {
66
- super(options.message);
66
+ // Do not pass `options.message` to the superclass `Error` constructor to
67
+ // avoid this bug: https://twitter.com/DannyNemer/status/1638997876176195584
68
+ super();
67
69
  // Set `name` to the constructor name so that the error appears in logs as
68
70
  // `[ConductorError: foo]` instead of `[Error: foo]`.
69
71
  this.name = this.constructor.name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "9.3.0",
3
+ "version": "9.4.1",
4
4
  "description": "Easily integrate with the entire QuickBooks Desktop API with fully-typed async TypeScript",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",