conductor-node 8.0.3 → 8.2.0
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 +1 -1
- package/dist/package.json +1 -1
- package/dist/src/Client.d.ts +27 -18
- package/dist/src/Client.js +32 -29
- package/dist/src/graphql/graphqlOperationWrapper.d.ts +1 -1
- package/dist/src/graphql/graphqlOperationWrapper.js +4 -4
- package/dist/src/integrations/BaseIntegration.d.ts +5 -2
- package/dist/src/integrations/BaseIntegration.js +9 -3
- package/dist/src/integrations/qbd/QbdIntegration.d.ts +280 -0
- package/dist/src/integrations/qbd/QbdIntegration.js +281 -1
- package/dist/src/integrations/qbd/qbdTypes.d.ts +2905 -698
- package/dist/src/utils.d.ts +2 -0
- package/dist/src/{utils/checkForUpdates.js → utils.js} +10 -6
- package/package.json +1 -1
- package/dist/src/utils/checkForUpdates.d.ts +0 -1
- package/dist/src/utils/environment.d.ts +0 -9
- package/dist/src/utils/environment.js +0 -19
|
@@ -3,13 +3,10 @@ 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
|
-
|
|
7
|
-
const
|
|
6
|
+
exports.getServerUrlForEnvironment = exports.checkForUpdates = void 0;
|
|
7
|
+
const package_json_1 = __importDefault(require("./../package.json"));
|
|
8
8
|
const node_child_process_1 = require("node:child_process");
|
|
9
9
|
function checkForUpdates() {
|
|
10
|
-
if (environment_1.currentEnvironment.isTest) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
10
|
const currentVersion = package_json_1.default.version;
|
|
14
11
|
const latestVersion = (0, node_child_process_1.execSync)(`npm view ${package_json_1.default.name} version --silent`)
|
|
15
12
|
.toString()
|
|
@@ -18,4 +15,11 @@ function checkForUpdates() {
|
|
|
18
15
|
console.warn(`⚠️ A new version of Conductor is available! You are using "${package_json_1.default.name}" version ${currentVersion} but the latest version is ${latestVersion}. Please run "yarn upgrade ${package_json_1.default.name} --latest" to update.`);
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
|
-
exports.
|
|
18
|
+
exports.checkForUpdates = checkForUpdates;
|
|
19
|
+
function getServerUrlForEnvironment(environment) {
|
|
20
|
+
if (environment === "production") {
|
|
21
|
+
return "https://api.conductor.is";
|
|
22
|
+
}
|
|
23
|
+
return "http://localhost:4000";
|
|
24
|
+
}
|
|
25
|
+
exports.getServerUrlForEnvironment = getServerUrlForEnvironment;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function checkForUpdates(): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type Environment = "development" | "production" | "test";
|
|
2
|
-
export declare const currentEnvironment: {
|
|
3
|
-
name: Environment;
|
|
4
|
-
isTest: boolean;
|
|
5
|
-
isDevelopment: boolean;
|
|
6
|
-
isProduction: boolean;
|
|
7
|
-
isLocal: boolean;
|
|
8
|
-
};
|
|
9
|
-
export declare function getServerUrlForEnvironment(environment: Environment): string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getServerUrlForEnvironment = exports.currentEnvironment = void 0;
|
|
4
|
-
const currentEnvironmentName = (process.env["NODE_ENV"] ??
|
|
5
|
-
"development");
|
|
6
|
-
exports.currentEnvironment = {
|
|
7
|
-
name: currentEnvironmentName,
|
|
8
|
-
isTest: currentEnvironmentName === "test",
|
|
9
|
-
isDevelopment: currentEnvironmentName === "development",
|
|
10
|
-
isProduction: currentEnvironmentName === "production",
|
|
11
|
-
isLocal: ["test", "development"].includes(currentEnvironmentName),
|
|
12
|
-
};
|
|
13
|
-
function getServerUrlForEnvironment(environment) {
|
|
14
|
-
if (environment === "production") {
|
|
15
|
-
return "https://api.conductor.is";
|
|
16
|
-
}
|
|
17
|
-
return "http://localhost:4000";
|
|
18
|
-
}
|
|
19
|
-
exports.getServerUrlForEnvironment = getServerUrlForEnvironment;
|