conductor-node 8.0.0 → 8.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/README.md CHANGED
@@ -60,7 +60,7 @@ The response includes the following:
60
60
  // ❗ Display this URL to your end-user: The URL for the QWC config file
61
61
  // that your end-user must download and open on their computer to
62
62
  // connect their QBD instance to Conductor.
63
- qwcFileDownloadUrl: 'https://production.api.conductor.is/qwc/{UUID}'
63
+ qwcFileDownloadUrl: 'https://api.conductor.is/qwc/{UUID}'
64
64
  // ❗ Display this password/access-code to your end-user: The unique
65
65
  // password that your end-user must enter into QuickBooks Web
66
66
  // Connector after loading the config file. This value will never be
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "8.0.0",
3
+ "version": "8.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",
@@ -4,5 +4,6 @@ export declare const currentEnvironment: {
4
4
  isTest: boolean;
5
5
  isDevelopment: boolean;
6
6
  isProduction: boolean;
7
+ isLocal: boolean;
7
8
  };
8
9
  export declare function getServerUrlForEnvironment(environment: Environment): string;
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getServerUrlForEnvironment = exports.currentEnvironment = void 0;
4
- const currentEnvironmentName = process.env["NODE_ENV"] ?? "development";
4
+ const currentEnvironmentName = (process.env["NODE_ENV"] ??
5
+ "development");
5
6
  exports.currentEnvironment = {
6
7
  name: currentEnvironmentName,
7
8
  isTest: currentEnvironmentName === "test",
8
9
  isDevelopment: currentEnvironmentName === "development",
9
10
  isProduction: currentEnvironmentName === "production",
11
+ isLocal: ["test", "development"].includes(currentEnvironmentName),
10
12
  };
11
13
  function getServerUrlForEnvironment(environment) {
12
14
  switch (environment) {
@@ -18,7 +20,7 @@ function getServerUrlForEnvironment(environment) {
18
20
  return "https://conductor.ngrok.io";
19
21
  }
20
22
  case "production": {
21
- return "https://production.api.conductor.is";
23
+ return "https://api.conductor.is";
22
24
  }
23
25
  default: {
24
26
  throw new Error("Invalid environment");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conductor-node",
3
- "version": "8.0.0",
3
+ "version": "8.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",