qiscus-sdk-core 2.12.4 → 2.12.6-logger
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/qiscus-sdk-core.min.js +6 -8
- package/dist/qiscus-sdk-core.min.js.map +1 -1
- package/lib/index.js +1137 -1521
- package/lib/lib/Comment.js +20 -31
- package/lib/lib/Room.js +6 -19
- package/lib/lib/adapters/auth.js +2 -13
- package/lib/lib/adapters/custom-event.js +2 -13
- package/lib/lib/adapters/expired-token.js +84 -133
- package/lib/lib/adapters/hook.js +2 -8
- package/lib/lib/adapters/http.js +57 -58
- package/lib/lib/adapters/mqtt.js +386 -336
- package/lib/lib/adapters/room.js +2 -10
- package/lib/lib/adapters/sync.js +226 -328
- package/lib/lib/adapters/user.js +2 -20
- package/lib/lib/match.js +19 -61
- package/lib/lib/url-builder.js +0 -5
- package/lib/lib/util.js +5 -14
- package/lib/lib/utils.js +10 -24
- package/lib/logger.js +125 -0
- package/package.json +5 -3
package/lib/lib/adapters/room.js
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var RoomAdapter = /*#__PURE__*/function () {
|
|
10
|
+
var RoomAdapter = exports["default"] = /*#__PURE__*/function () {
|
|
15
11
|
/**
|
|
16
12
|
* Params used in this class
|
|
17
13
|
* @method constructor
|
|
@@ -23,8 +19,7 @@ var RoomAdapter = /*#__PURE__*/function () {
|
|
|
23
19
|
this.HTTPAdapter = HTTPAdapter;
|
|
24
20
|
this.token = HTTPAdapter.token;
|
|
25
21
|
}
|
|
26
|
-
|
|
27
|
-
(0, _createClass2["default"])(RoomAdapter, [{
|
|
22
|
+
return (0, _createClass2["default"])(RoomAdapter, [{
|
|
28
23
|
key: "getOrCreateRoom",
|
|
29
24
|
value: function getOrCreateRoom(email, options, distinctId) {
|
|
30
25
|
var params = {
|
|
@@ -161,8 +156,5 @@ var RoomAdapter = /*#__PURE__*/function () {
|
|
|
161
156
|
});
|
|
162
157
|
}
|
|
163
158
|
}]);
|
|
164
|
-
return RoomAdapter;
|
|
165
159
|
}();
|
|
166
|
-
|
|
167
|
-
exports["default"] = RoomAdapter;
|
|
168
160
|
module.exports = exports.default;
|