@tillhub/javascript-sdk 4.187.0 → 4.188.0
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/CHANGELOG.md +16 -0
- package/package.json +1 -2
- package/dist/realtime.js +0 -39
- package/dist/realtime.js.map +0 -1
- package/dist/types/realtime.d.ts +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# [4.188.0](https://github.com/tillhub/tillhub-sdk-javascript/compare/v4.187.1...v4.188.0) (2025-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **sonar:** add sonar - UOD-1259 ([fa87bf5](https://github.com/tillhub/tillhub-sdk-javascript/commit/fa87bf58f27c2805653de3562b7cd8f5d7097ba8))
|
|
7
|
+
* **workflows:** add prebuild workflow for frontend CI - UOD-1259 ([5cfab79](https://github.com/tillhub/tillhub-sdk-javascript/commit/5cfab79c940347865d2fc81b9f6f911855eb4776))
|
|
8
|
+
* **workflows:** add SonarQube workflow configuration - UOD-1259 ([fcdf7a8](https://github.com/tillhub/tillhub-sdk-javascript/commit/fcdf7a84a3384f1733b61fe0edb36adbd923ee66))
|
|
9
|
+
|
|
10
|
+
## [4.187.1](https://github.com/tillhub/tillhub-sdk-javascript/compare/v4.187.0...v4.187.1) (2025-04-17)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **realtime:** remove unused class and dependencies (UNTIL-13547) ([#639](https://github.com/tillhub/tillhub-sdk-javascript/issues/639)) ([9072c29](https://github.com/tillhub/tillhub-sdk-javascript/commit/9072c290579fa60969cfb245a2a785d7b776e61d))
|
|
16
|
+
|
|
1
17
|
# [4.187.0](https://github.com/tillhub/tillhub-sdk-javascript/compare/v4.186.0...v4.187.0) (2025-04-09)
|
|
2
18
|
|
|
3
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tillhub/javascript-sdk",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.188.0",
|
|
4
4
|
"description": "The JavaScript (Browser) SDK for the Tillhub API.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"main": "dist/tillhub-js.js",
|
|
@@ -149,7 +149,6 @@
|
|
|
149
149
|
"just-has": "^1.0.0",
|
|
150
150
|
"just-safe-get": "^2.0.0",
|
|
151
151
|
"just-typeof": "^2.0.0",
|
|
152
|
-
"mqtt": "^4.2.6",
|
|
153
152
|
"qs": "^6.9.6",
|
|
154
153
|
"serialize-error": "^8.0.1"
|
|
155
154
|
},
|
package/dist/realtime.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
var mqtt_1 = require("mqtt");
|
|
5
|
-
var events_1 = tslib_1.__importDefault(require("events"));
|
|
6
|
-
var Realtime = (function (_super) {
|
|
7
|
-
tslib_1.__extends(Realtime, _super);
|
|
8
|
-
function Realtime(options) {
|
|
9
|
-
var _this = _super.call(this) || this;
|
|
10
|
-
_this.initialized = false;
|
|
11
|
-
_this.connected = false;
|
|
12
|
-
_this.options = tslib_1.__assign({ endpoint: 'wss://wss.tillhub.com' }, options);
|
|
13
|
-
_this.client = mqtt_1.connect(_this.options.endpoint);
|
|
14
|
-
_this.initialized = true;
|
|
15
|
-
_this.client.on('connect', function () {
|
|
16
|
-
_this.connected = true;
|
|
17
|
-
});
|
|
18
|
-
_this.client.on('close', function () {
|
|
19
|
-
_this.connected = false;
|
|
20
|
-
});
|
|
21
|
-
return _this;
|
|
22
|
-
}
|
|
23
|
-
Realtime.prototype.isInitialized = function () {
|
|
24
|
-
return this.initialized;
|
|
25
|
-
};
|
|
26
|
-
Realtime.prototype.isConnected = function () {
|
|
27
|
-
return this.connected;
|
|
28
|
-
};
|
|
29
|
-
Realtime.prototype.destroy = function () {
|
|
30
|
-
if (!this.client) {
|
|
31
|
-
throw new Error('cannot destroy instance, because a client is not initialized');
|
|
32
|
-
}
|
|
33
|
-
this.client.end();
|
|
34
|
-
this.initialized = false;
|
|
35
|
-
};
|
|
36
|
-
return Realtime;
|
|
37
|
-
}(events_1.default.EventEmitter));
|
|
38
|
-
exports.default = Realtime;
|
|
39
|
-
//# sourceMappingURL=realtime.js.map
|
package/dist/realtime.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"realtime.js","sourceRoot":"","sources":["../src/realtime.ts"],"names":[],"mappings":";;;AAAA,6BAA0C;AAC1C,0DAA2B;AAM3B;IAAsC,oCAAmB;IAMvD,kBAAa,OAAyB;QAAtC,YACE,iBAAO,SAgBR;QAtBO,iBAAW,GAAG,KAAK,CAAA;QACnB,eAAS,GAAG,KAAK,CAAA;QAOvB,KAAI,CAAC,OAAO,sBACV,QAAQ,EAAE,uBAAuB,IAC9B,OAAO,CACX,CAAA;QAED,KAAI,CAAC,MAAM,GAAG,cAAO,CAAC,KAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAA;QAC5C,KAAI,CAAC,WAAW,GAAG,IAAI,CAAA;QAEvB,KAAI,CAAC,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE;YACxB,KAAI,CAAC,SAAS,GAAG,IAAI,CAAA;QACvB,CAAC,CAAC,CAAA;QACF,KAAI,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE;YACtB,KAAI,CAAC,SAAS,GAAG,KAAK,CAAA;QACxB,CAAC,CAAC,CAAA;;IACJ,CAAC;IAED,gCAAa,GAAb;QACE,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;IAED,8BAAW,GAAX;QACE,OAAO,IAAI,CAAC,SAAS,CAAA;IACvB,CAAC;IAED,0BAAO,GAAP;QACE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAAE,MAAM,IAAI,KAAK,CAAC,8DAA8D,CAAC,CAAA;SAAE;QAErG,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;QACjB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;IAC1B,CAAC;IACH,eAAC;AAAD,CAAC,AAvCD,CAAsC,gBAAM,CAAC,YAAY,GAuCxD"}
|
package/dist/types/realtime.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import events from 'events';
|
|
3
|
-
interface RealtimeOptions {
|
|
4
|
-
endpoint?: string;
|
|
5
|
-
}
|
|
6
|
-
export default class Realtime extends events.EventEmitter {
|
|
7
|
-
private initialized;
|
|
8
|
-
private connected;
|
|
9
|
-
private readonly client?;
|
|
10
|
-
options: RealtimeOptions;
|
|
11
|
-
constructor(options?: RealtimeOptions);
|
|
12
|
-
isInitialized(): boolean;
|
|
13
|
-
isConnected(): boolean;
|
|
14
|
-
destroy(): void;
|
|
15
|
-
}
|
|
16
|
-
export {};
|