botversion-sdk 2.2.1 → 2.2.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.
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
4
  var path = require("path");
@@ -29,7 +29,7 @@ var BotVersionClient = require("../client");
29
29
 
30
30
  var apiKey = process.env.BOTVERSION_API_KEY;
31
31
  var platformUrl =
32
- process.env.BOTVERSION_PLATFORM_URL || "http://localhost:3000";
32
+ process.env.BOTVERSION_PLATFORM_URL || "https://console.botversion.com";
33
33
 
34
34
  if (!apiKey) {
35
35
  console.error(
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
  "use strict";
3
3
 
4
4
  var path = require("path");
@@ -30,7 +30,7 @@ var sdk = require("../index");
30
30
 
31
31
  var apiKey = process.env.BOTVERSION_API_KEY;
32
32
  var platformUrl =
33
- process.env.BOTVERSION_PLATFORM_URL || "http://localhost:3000";
33
+ process.env.BOTVERSION_PLATFORM_URL || "https://console.botversion.com";
34
34
 
35
35
  if (!apiKey) {
36
36
  console.error(
package/client.js CHANGED
@@ -11,7 +11,7 @@ const url = require("url");
11
11
  */
12
12
  function BotVersionClient(options) {
13
13
  this.apiKey = options.apiKey;
14
- this.platformUrl = options.platformUrl || "http://localhost:3000";
14
+ this.platformUrl = options.platformUrl || "https://console.botversion.com";
15
15
  this.debug = options.debug || false;
16
16
  this.timeout = options.timeout || 30000;
17
17
 
package/index.js CHANGED
@@ -424,7 +424,7 @@ var BotVersion = {
424
424
 
425
425
  this._client = new BotVersionClient({
426
426
  apiKey: options.apiKey,
427
- platformUrl: options.platformUrl || "http://localhost:3000",
427
+ platformUrl: options.platformUrl || "https://console.botversion.com",
428
428
  debug: options.debug || false,
429
429
  timeout: options.timeout || 30000,
430
430
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "botversion-sdk",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "BotVersion SDK — auto-detect and register your API endpoints",
5
5
  "main": "index.js",
6
6
  "bin": {