conductor-node 3.8.0 → 3.8.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Conductor API wrapper",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",
@@ -71,7 +71,10 @@ class Client {
71
71
  console.log(JSON.stringify(error, undefined, 2));
72
72
  }
73
73
  if (error instanceof graphql_request_1.ClientError) {
74
- throw new Error(error.response.errors?.[0]?.message ?? "An unknown error occurred.");
74
+ const errorMessage = error.response.errors?.[0]?.message;
75
+ if (errorMessage !== undefined) {
76
+ throw new Error(errorMessage);
77
+ }
75
78
  }
76
79
  throw error;
77
80
  }
@@ -82,7 +85,7 @@ class Client {
82
85
  .toString()
83
86
  .trim();
84
87
  if (currentVersion !== latestVersion) {
85
- console.warn(`Warning: You are using ${package_json_1.default.name} version ${currentVersion} but the latest version is ${latestVersion}. Please run "yarn add ${package_json_1.default.name}@${latestVersion}" to update to the latest version.`);
88
+ 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 add ${package_json_1.default.name}@latest" to update.`);
86
89
  }
87
90
  }
88
91
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "3.8.0",
3
+ "version": "3.8.2",
4
4
  "description": "Conductor API wrapper",
5
5
  "author": "Danny Nemer <hi@DannyNemer.com>",
6
6
  "license": "MIT",