conductor-node 11.2.2 → 11.2.3

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/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  Execute _any_ read or write QuickBooks Desktop API through async TypeScript and receive a fully-typed response.
4
4
 
5
5
  <!-- markdownlint-disable MD033 -->
6
- <img src="https://user-images.githubusercontent.com/170023/213273732-83dd6881-0b36-4787-820b-bd55cdc8444f.jpg" alt="QuickBooks Desktop autocomplete" width="600"/>
6
+ <img src="https://user-images.githubusercontent.com/170023/213273732-83dd6881-0b36-4787-820b-bd55cdc8444f.jpg" alt="QuickBooks Desktop autocomplete" width="700"/>
7
7
 
8
- ## Documentation
8
+ ## [Documentation 🚀](https://docs.conductor.is)
9
9
 
10
10
  1. [Get Started](https://docs.conductor.is/overview/get-started)
11
11
  2. [Quickstart](https://docs.conductor.is/overview/quickstart)
package/dist/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.2.2",
3
+ "version": "11.2.3",
4
4
  "description": "Easily integrate the entire QuickBooks Desktop API using fully-typed async TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks Desktop",
7
+ "QuickBooks Enterprise",
7
8
  "QuickBooks",
8
9
  "Intuit",
9
10
  "QuickBooks Web Connector",
10
11
  "qbXML",
11
12
  "QBWC",
13
+ "QB Desktop",
12
14
  "QBD"
13
15
  ],
14
16
  "homepage": "https://conductor.is",
@@ -1,4 +1,10 @@
1
1
  import Client from "./Client";
2
+ /**
3
+ * TypeScript/ESM usage:
4
+ * import Conductor from "conductor-node";
5
+ * import { ConductorIntegrationError } from "conductor-node";
6
+ * import type { QbdTypes } from "conductor-node";
7
+ */
2
8
  export default Client;
3
9
  export type { ClientOptions } from "./Client";
4
10
  export type * as QbdTypes from "./integrations/qbd/qbdTypes";
package/dist/src/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ /* eslint-disable import/no-import-module-exports -- We must use both `import` declarations and CommonJS exports to support both TypeScript/ESM and CommonJS. */
2
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
4
  if (k2 === undefined) k2 = k;
4
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -10,6 +11,18 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
10
11
  if (k2 === undefined) k2 = k;
11
12
  o[k2] = m[k];
12
13
  }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || function (mod) {
20
+ if (mod && mod.__esModule) return mod;
21
+ var result = {};
22
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
+ __setModuleDefault(result, mod);
24
+ return result;
25
+ };
13
26
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
28
  };
@@ -17,8 +30,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
30
  return (mod && mod.__esModule) ? mod : { "default": mod };
18
31
  };
19
32
  Object.defineProperty(exports, "__esModule", { value: true });
20
- // eslint-disable-next-line consistent-default-export-name/default-export-match-filename -- This file defines the exports for the `conductor-node` package, as defined by `main` in `package.json`. Hence, we do not import this file internally so we can ignore this error.
33
+ // eslint-disable-next-line consistent-default-export-name/default-export-match-filename -- This error complains, "The directory 'src' must be named 'Client', after the exported value of its index file". However, `src/` is the package root, not a typical module. The exported name is set via `main` in `package.json`, not by the directory name. Thus, we can ignore this error.
21
34
  const Client_1 = __importDefault(require("./Client"));
22
- // eslint-disable-next-line unicorn/prefer-export-from -- We need `Client` to be the default export, which is impossible to define with `export from`.
35
+ const ErrorModule = __importStar(require("./utils/error"));
36
+ /**
37
+ * TypeScript/ESM usage:
38
+ * import Conductor from "conductor-node";
39
+ * import { ConductorIntegrationError } from "conductor-node";
40
+ * import type { QbdTypes } from "conductor-node";
41
+ */
42
+ // eslint-disable-next-line unicorn/prefer-export-from -- `Client` must be the default export, which is impossible to define with `export from`.
23
43
  exports.default = Client_1.default;
24
44
  __exportStar(require("./utils/error"), exports);
45
+ /**
46
+ * CommonJS usage:
47
+ * const Conductor = require("conductor-node");
48
+ * const { ConductorIntegrationError } = require("conductor-node");
49
+ */
50
+ if (module.exports !== undefined) {
51
+ module.exports = Client_1.default;
52
+ // Extend `module.exports` with the exports from `ErrorModule`.
53
+ Object.assign(module.exports, ErrorModule);
54
+ }
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "11.2.2",
3
+ "version": "11.2.3",
4
4
  "description": "Easily integrate the entire QuickBooks Desktop API using fully-typed async TypeScript",
5
5
  "keywords": [
6
6
  "QuickBooks Desktop",
7
+ "QuickBooks Enterprise",
7
8
  "QuickBooks",
8
9
  "Intuit",
9
10
  "QuickBooks Web Connector",
10
11
  "qbXML",
11
12
  "QBWC",
13
+ "QB Desktop",
12
14
  "QBD"
13
15
  ],
14
16
  "homepage": "https://conductor.is",