conductor-node 11.2.3 → 11.2.4
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/dist/package.json +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +12 -9
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -33,15 +33,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
33
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.
|
|
34
34
|
const Client_1 = __importDefault(require("./Client"));
|
|
35
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`.
|
|
43
|
-
exports.default = Client_1.default;
|
|
44
|
-
__exportStar(require("./utils/error"), exports);
|
|
45
36
|
/**
|
|
46
37
|
* CommonJS usage:
|
|
47
38
|
* const Conductor = require("conductor-node");
|
|
@@ -52,3 +43,15 @@ if (module.exports !== undefined) {
|
|
|
52
43
|
// Extend `module.exports` with the exports from `ErrorModule`.
|
|
53
44
|
Object.assign(module.exports, ErrorModule);
|
|
54
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* ESM usage:
|
|
48
|
+
* import Conductor from "conductor-node";
|
|
49
|
+
* import { ConductorIntegrationError } from "conductor-node";
|
|
50
|
+
* import type { QbdTypes } from "conductor-node";
|
|
51
|
+
*/
|
|
52
|
+
// eslint-disable-next-line unicorn/prefer-export-from -- `Client` must be the default export, which is impossible to define with `export from`.
|
|
53
|
+
exports.default = Client_1.default;
|
|
54
|
+
// Must come after `module.exports` above. Otherwise, it breaks the following in
|
|
55
|
+
// JavaScript ESM:
|
|
56
|
+
// const { ConductorIntegrationError } = require("conductor-node");
|
|
57
|
+
__exportStar(require("./utils/error"), exports);
|