botium-core 1.13.14 → 1.13.15
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/botium-cjs.js +1 -1
- package/dist/botium-es.js +1 -1
- package/package.json +1 -1
- package/report.js +6 -5
package/dist/botium-cjs.js
CHANGED
|
@@ -81,7 +81,7 @@ var express__default = /*#__PURE__*/_interopDefaultLegacy(express);
|
|
|
81
81
|
var bodyParser__default = /*#__PURE__*/_interopDefaultLegacy(bodyParser);
|
|
82
82
|
|
|
83
83
|
var name = "botium-core";
|
|
84
|
-
var version$1 = "1.13.
|
|
84
|
+
var version$1 = "1.13.15";
|
|
85
85
|
var description = "The Selenium for Chatbots";
|
|
86
86
|
var main = "index.js";
|
|
87
87
|
var module$1 = "dist/botium-es.js";
|
package/dist/botium-es.js
CHANGED
|
@@ -37,7 +37,7 @@ import express from 'express';
|
|
|
37
37
|
import bodyParser from 'body-parser';
|
|
38
38
|
|
|
39
39
|
var name = "botium-core";
|
|
40
|
-
var version$1 = "1.13.
|
|
40
|
+
var version$1 = "1.13.15";
|
|
41
41
|
var description = "The Selenium for Chatbots";
|
|
42
42
|
var main = "index.js";
|
|
43
43
|
var module = "dist/botium-es.js";
|
package/package.json
CHANGED
package/report.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
const path = require('path')
|
|
2
2
|
const os = require('os')
|
|
3
|
-
const localDevPort = process.env.BOTIUM_ANALYTICS_LOCAL_PORT
|
|
4
|
-
const https = localDevPort ? require('http') : require('https')
|
|
5
3
|
|
|
6
|
-
const botiumAnalyticsHost =
|
|
4
|
+
const botiumAnalyticsHost = process.env.BOTIUM_ANALYTICS_HOST || 'v1.license.botium.cyaraportal.us'
|
|
5
|
+
const botiumAnalyticsPort = process.env.BOTIUM_ANALYTICS_PORT || 443
|
|
6
|
+
const https = botiumAnalyticsPort === 443 ? require('https') : require('http')
|
|
7
|
+
|
|
7
8
|
const execTimeout = 10000
|
|
8
9
|
|
|
9
10
|
function logIfVerbose (toLog, stream) {
|
|
@@ -29,9 +30,9 @@ async function reportPostInstall () {
|
|
|
29
30
|
|
|
30
31
|
const reqOptions = {
|
|
31
32
|
host: botiumAnalyticsHost,
|
|
32
|
-
port:
|
|
33
|
+
port: botiumAnalyticsPort,
|
|
33
34
|
method: 'POST',
|
|
34
|
-
path: '/
|
|
35
|
+
path: '/metrics/installation/core',
|
|
35
36
|
headers: {
|
|
36
37
|
'Content-Type': 'application/json',
|
|
37
38
|
'Content-Length': data.length
|