roboto-js 1.6.15 → 1.6.17

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.
@@ -108,7 +108,7 @@ var Roboto = exports["default"] = /*#__PURE__*/function () {
108
108
  _createClass(Roboto, [{
109
109
  key: "getVersion",
110
110
  value: function getVersion() {
111
- return '1.6.15';
111
+ return '1.6.17';
112
112
  }
113
113
  }, {
114
114
  key: "setSiteEnv",
@@ -150,15 +150,16 @@ var RbtMetricsApi = exports["default"] = /*#__PURE__*/function (_EventEmitter) {
150
150
  /**
151
151
  * Count-based metric event (requires `count` param).
152
152
  * Example:
153
- * roboto.metrics.countEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
153
+ * roboto.metrics.countEvents("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
154
+ *
154
155
  * is equivalent to:
155
156
  * roboto.metrics.sendEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
156
157
  */
157
158
  )
158
159
  }, {
159
- key: "countEvent",
160
+ key: "countEvents",
160
161
  value: (function () {
161
- var _countEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(eventOrObj) {
162
+ var _countEvents = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(eventOrObj) {
162
163
  var paramsObj,
163
164
  _args2 = arguments;
164
165
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -178,10 +179,10 @@ var RbtMetricsApi = exports["default"] = /*#__PURE__*/function (_EventEmitter) {
178
179
  }
179
180
  }, _callee2, this);
180
181
  }));
181
- function countEvent(_x2) {
182
- return _countEvent.apply(this, arguments);
182
+ function countEvents(_x2) {
183
+ return _countEvents.apply(this, arguments);
183
184
  }
184
- return countEvent;
185
+ return countEvents;
185
186
  }())
186
187
  }]);
187
188
  return RbtMetricsApi;
package/dist/esm/index.js CHANGED
@@ -8,7 +8,7 @@ export { RbtApi, RbtObject, RbtFile
8
8
  };
9
9
  export default class Roboto {
10
10
  getVersion() {
11
- return '1.6.15';
11
+ return '1.6.17';
12
12
  }
13
13
  constructor({
14
14
  host,
@@ -86,11 +86,12 @@ export default class RbtMetricsApi extends EventEmitter {
86
86
  /**
87
87
  * Count-based metric event (requires `count` param).
88
88
  * Example:
89
- * roboto.metrics.countEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
89
+ * roboto.metrics.countEvents("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
90
+ *
90
91
  * is equivalent to:
91
92
  * roboto.metrics.sendEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
92
93
  */
93
- async countEvent(eventOrObj, paramsObj = {}) {
94
+ async countEvents(eventOrObj, paramsObj = {}) {
94
95
  if (!paramsObj || typeof paramsObj.count !== 'number') {
95
96
  throw new Error('countEvent requires a count param (number)');
96
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.6.15",
3
+ "version": "1.6.17",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/index.js CHANGED
@@ -15,7 +15,7 @@ export {
15
15
  export default class Roboto{
16
16
 
17
17
  getVersion(){
18
- return '1.6.15';
18
+ return '1.6.17';
19
19
  }
20
20
 
21
21
  constructor({ host, accessKey, localStorageAdaptor, disableWebSocket = false, metricsHost }, proxyReq = null) {
@@ -92,15 +92,16 @@ export default class RbtMetricsApi extends EventEmitter {
92
92
  /**
93
93
  * Count-based metric event (requires `count` param).
94
94
  * Example:
95
- * roboto.metrics.countEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
95
+ * roboto.metrics.countEvents("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
96
+ *
96
97
  * is equivalent to:
97
98
  * roboto.metrics.sendEvent("PGPT.Tool.SendSMS", { count: 4, agentId: "ABC" })
98
99
  */
99
- async countEvent(eventOrObj, paramsObj = {}) {
100
+ async countEvents(eventOrObj, paramsObj = {}) {
100
101
  if (!paramsObj || typeof paramsObj.count !== 'number') {
101
102
  throw new Error('countEvent requires a count param (number)');
102
103
  }
103
104
  return this.sendEvent(eventOrObj, paramsObj);
104
105
  }
105
-
106
+
106
107
  }