conductor-node 7.0.0 → 7.0.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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "7.0.0",
3
+ "version": "7.0.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",
@@ -17,10 +17,10 @@ class Client {
17
17
  serverURL;
18
18
  graphqlClient;
19
19
  graphqlOperations;
20
- constructor(apiKey, { verbose = false, serverEnvironment = "staging" } = {}) {
20
+ constructor(apiKey, { verbose = false, serverEnvironment = "production" } = {}) {
21
21
  this.checkForUpdates();
22
22
  this.verbose = verbose;
23
- this.serverURL = (0, environment_1.envToBaseServerURL)(serverEnvironment);
23
+ this.serverURL = (0, environment_1.getServerUrlForEnvironment)(serverEnvironment);
24
24
  this.graphqlClient = new graphql_request_1.GraphQLClient(`${this.serverURL}/graphql`, {
25
25
  headers: {
26
26
  Authorization: `Bearer ${apiKey}`,
@@ -1,5 +1,5 @@
1
1
  export declare type Environment = "development" | "production" | "staging" | "test";
2
- export declare function envToBaseServerURL(environment: Environment): string;
2
+ export declare function getServerUrlForEnvironment(environment: Environment): string;
3
3
  export declare const currentEnvironment: {
4
4
  name: string;
5
5
  isTest: boolean;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.currentEnvironment = exports.envToBaseServerURL = void 0;
4
- function envToBaseServerURL(environment) {
3
+ exports.currentEnvironment = exports.getServerUrlForEnvironment = void 0;
4
+ function getServerUrlForEnvironment(environment) {
5
5
  switch (environment) {
6
6
  case "development": {
7
7
  return "https://conductor.ngrok.io";
@@ -17,7 +17,7 @@ function envToBaseServerURL(environment) {
17
17
  }
18
18
  }
19
19
  }
20
- exports.envToBaseServerURL = envToBaseServerURL;
20
+ exports.getServerUrlForEnvironment = getServerUrlForEnvironment;
21
21
  const currentEnvironmentName = process.env["NODE_ENV"] ?? "development";
22
22
  exports.currentEnvironment = {
23
23
  name: currentEnvironmentName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "7.0.0",
3
+ "version": "7.0.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",