@privateaim/messenger-kit 0.7.4 → 0.7.6
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 +32 -0
- package/dist/index.cjs +16 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.7.6](https://github.com/PrivateAIM/hub/compare/v0.7.5...v0.7.6) (2025-01-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* realtime library/service split ([#474](https://github.com/PrivateAIM/hub/issues/474)) ([43c2dfa](https://github.com/PrivateAIM/hub/commit/43c2dfad654cc61ca9784914cbad56c684434088))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* devDependencies
|
|
15
|
+
* @privateaim/core-kit bumped from ^0.8.4 to ^0.8.5
|
|
16
|
+
* peerDependencies
|
|
17
|
+
* @privateaim/core-kit bumped from ^0.8.4 to ^0.8.5
|
|
18
|
+
|
|
19
|
+
## [0.7.5](https://github.com/PrivateAIM/hub/compare/v0.7.4...v0.7.5) (2024-10-24)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* realtime library/service split ([#474](https://github.com/PrivateAIM/hub/issues/474)) ([43c2dfa](https://github.com/PrivateAIM/hub/commit/43c2dfad654cc61ca9784914cbad56c684434088))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* The following workspace dependencies were updated
|
|
30
|
+
* devDependencies
|
|
31
|
+
* @privateaim/core-kit bumped from ^0.8.3 to ^0.8.4
|
|
32
|
+
* peerDependencies
|
|
33
|
+
* @privateaim/core-kit bumped from ^0.8.3 to ^0.8.4
|
|
34
|
+
|
|
3
35
|
## [0.7.4](https://github.com/PrivateAIM/hub/compare/v0.7.3...v0.7.4) (2024-09-19)
|
|
4
36
|
|
|
5
37
|
|
package/dist/index.cjs
CHANGED
|
@@ -5,36 +5,36 @@
|
|
|
5
5
|
* Author Peter Placzek (tada5hi)
|
|
6
6
|
* For the full copyright and license information,
|
|
7
7
|
* view the LICENSE file that was distributed with this source code.
|
|
8
|
-
*/
|
|
9
|
-
(function(STCConnectionEventName) {
|
|
8
|
+
*/ var STCConnectionEventName = /*#__PURE__*/ function(STCConnectionEventName) {
|
|
10
9
|
STCConnectionEventName["USER_CONNECTED"] = "userConnected";
|
|
11
10
|
STCConnectionEventName["USER_DISCONNECTED"] = "userDisconnected";
|
|
12
11
|
STCConnectionEventName["ROBOT_CONNECTED"] = "robotConnected";
|
|
13
12
|
STCConnectionEventName["ROBOT_DISCONNECTED"] = "robotDisconnected";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
return STCConnectionEventName;
|
|
14
|
+
}({});
|
|
15
|
+
var CTSConnectionEventName = /*#__PURE__*/ function(CTSConnectionEventName) {
|
|
17
16
|
CTSConnectionEventName["USER_CONNECTIONS"] = "userConnections";
|
|
18
17
|
CTSConnectionEventName["USER_CONNECTION_SUBSCRIBE"] = "userConnectionSubscribe";
|
|
19
18
|
CTSConnectionEventName["USER_CONNECTION_UNSUBSCRIBE"] = "userConnectionUnsubscribe";
|
|
20
19
|
CTSConnectionEventName["ROBOT_CONNECTIONS"] = "robotConnections";
|
|
21
20
|
CTSConnectionEventName["ROBOT_CONNECTION_SUBSCRIBE"] = "robotConnectionSubscribe";
|
|
22
21
|
CTSConnectionEventName["ROBOT_CONNECTION_UNSUBSCRIBE"] = "robotConnectionUnsubscribe";
|
|
23
|
-
|
|
22
|
+
return CTSConnectionEventName;
|
|
23
|
+
}({});
|
|
24
24
|
|
|
25
25
|
/*
|
|
26
26
|
* Copyright (c) 2024.
|
|
27
27
|
* Author Peter Placzek (tada5hi)
|
|
28
28
|
* For the full copyright and license information,
|
|
29
29
|
* view the LICENSE file that was distributed with this source code.
|
|
30
|
-
*/
|
|
31
|
-
(function(STCMessagingEventName) {
|
|
30
|
+
*/ var STCMessagingEventName = /*#__PURE__*/ function(STCMessagingEventName) {
|
|
32
31
|
STCMessagingEventName["SEND"] = "send";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
return STCMessagingEventName;
|
|
33
|
+
}({});
|
|
34
|
+
var CTSMessagingEventName = /*#__PURE__*/ function(CTSMessagingEventName) {
|
|
36
35
|
CTSMessagingEventName["SEND"] = "send";
|
|
37
|
-
|
|
36
|
+
return CTSMessagingEventName;
|
|
37
|
+
}({});
|
|
38
38
|
|
|
39
39
|
/*
|
|
40
40
|
* Copyright (c) 2021-2024.
|
|
@@ -51,6 +51,10 @@ function isEventTarget(input) {
|
|
|
51
51
|
return typeof input === 'number' || typeof input === 'string' || typeof input === 'undefined';
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
exports.CTSConnectionEventName = CTSConnectionEventName;
|
|
55
|
+
exports.CTSMessagingEventName = CTSMessagingEventName;
|
|
56
|
+
exports.STCConnectionEventName = STCConnectionEventName;
|
|
57
|
+
exports.STCMessagingEventName = STCMessagingEventName;
|
|
54
58
|
exports.isEventCallback = isEventCallback;
|
|
55
59
|
exports.isEventTarget = isEventTarget;
|
|
56
60
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/connection/constants.ts","../src/messaging/constants.ts","../src/utils.ts"],"sourcesContent":["/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCConnectionEventName {\n USER_CONNECTED = 'userConnected',\n USER_DISCONNECTED = 'userDisconnected',\n\n ROBOT_CONNECTED = 'robotConnected',\n ROBOT_DISCONNECTED = 'robotDisconnected',\n}\n\nexport enum CTSConnectionEventName {\n USER_CONNECTIONS = 'userConnections',\n USER_CONNECTION_SUBSCRIBE = 'userConnectionSubscribe',\n USER_CONNECTION_UNSUBSCRIBE = 'userConnectionUnsubscribe',\n\n ROBOT_CONNECTIONS = 'robotConnections',\n ROBOT_CONNECTION_SUBSCRIBE = 'robotConnectionSubscribe',\n ROBOT_CONNECTION_UNSUBSCRIBE = 'robotConnectionUnsubscribe',\n}\n","/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCMessagingEventName {\n SEND = 'send',\n}\n\nexport enum CTSMessagingEventName {\n SEND = 'send',\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { EventCallback } from './types';\n\nexport function isEventCallback(\n input: unknown,\n fnArgs?: number,\n) : input is EventCallback {\n if (typeof fnArgs === 'undefined') {\n return typeof input === 'function';\n }\n\n return typeof input === 'function' &&\n input.length >= fnArgs;\n}\n\nexport function isEventTarget(\n input: unknown,\n) : input is EventTarget {\n return typeof input === 'number' ||\n typeof input === 'string' ||\n typeof input === 'undefined';\n}\n"],"names":["STCConnectionEventName","CTSConnectionEventName","STCMessagingEventName","CTSMessagingEventName","isEventCallback","input","fnArgs","length","isEventTarget"],"mappings":";;AAAA;;;;;
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/connection/constants.ts","../src/messaging/constants.ts","../src/utils.ts"],"sourcesContent":["/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCConnectionEventName {\n USER_CONNECTED = 'userConnected',\n USER_DISCONNECTED = 'userDisconnected',\n\n ROBOT_CONNECTED = 'robotConnected',\n ROBOT_DISCONNECTED = 'robotDisconnected',\n}\n\nexport enum CTSConnectionEventName {\n USER_CONNECTIONS = 'userConnections',\n USER_CONNECTION_SUBSCRIBE = 'userConnectionSubscribe',\n USER_CONNECTION_UNSUBSCRIBE = 'userConnectionUnsubscribe',\n\n ROBOT_CONNECTIONS = 'robotConnections',\n ROBOT_CONNECTION_SUBSCRIBE = 'robotConnectionSubscribe',\n ROBOT_CONNECTION_UNSUBSCRIBE = 'robotConnectionUnsubscribe',\n}\n","/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCMessagingEventName {\n SEND = 'send',\n}\n\nexport enum CTSMessagingEventName {\n SEND = 'send',\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { EventCallback } from './types';\n\nexport function isEventCallback(\n input: unknown,\n fnArgs?: number,\n) : input is EventCallback {\n if (typeof fnArgs === 'undefined') {\n return typeof input === 'function';\n }\n\n return typeof input === 'function' &&\n input.length >= fnArgs;\n}\n\nexport function isEventTarget(\n input: unknown,\n) : input is EventTarget {\n return typeof input === 'number' ||\n typeof input === 'string' ||\n typeof input === 'undefined';\n}\n"],"names":["STCConnectionEventName","CTSConnectionEventName","STCMessagingEventName","CTSMessagingEventName","isEventCallback","input","fnArgs","length","isEventTarget"],"mappings":";;AAAA;;;;;IAOO,IAAKA,sBAAAA,iBAAAA,SAAAA,sBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,sBAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,sBAAKC,iBAAAA,SAAAA,sBAAAA,EAAAA;;;;;;;AAAAA,IAAAA,OAAAA,sBAAAA;AAQX,CAAA,CAAA,EAAA;;ACvBD;;;;;IAOO,IAAKC,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;;AAAAA,IAAAA,OAAAA,qBAAAA;AAEX,CAAA,CAAA,EAAA;AAEM,IAAA,qBAAKC,iBAAAA,SAAAA,qBAAAA,EAAAA;;AAAAA,IAAAA,OAAAA,qBAAAA;AAEX,CAAA,CAAA,EAAA;;ACbD;;;;;AAKC,IAIM,SAASC,eACZC,CAAAA,KAAc,EACdC,MAAe,EAAA;IAEf,IAAI,OAAOA,WAAW,WAAa,EAAA;AAC/B,QAAA,OAAO,OAAOD,KAAU,KAAA,UAAA;AAC5B;AAEA,IAAA,OAAO,OAAOA,KAAAA,KAAU,UACpBA,IAAAA,KAAAA,CAAME,MAAM,IAAID,MAAAA;AACxB;AAEO,SAASE,cACZH,KAAc,EAAA;AAEd,IAAA,OAAO,OAAOA,KAAU,KAAA,QAAA,IACpB,OAAOA,KAAU,KAAA,QAAA,IACjB,OAAOA,KAAU,KAAA,WAAA;AACzB;;;;;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -3,36 +3,36 @@
|
|
|
3
3
|
* Author Peter Placzek (tada5hi)
|
|
4
4
|
* For the full copyright and license information,
|
|
5
5
|
* view the LICENSE file that was distributed with this source code.
|
|
6
|
-
*/ var STCConnectionEventName
|
|
7
|
-
(function(STCConnectionEventName) {
|
|
6
|
+
*/ var STCConnectionEventName = /*#__PURE__*/ function(STCConnectionEventName) {
|
|
8
7
|
STCConnectionEventName["USER_CONNECTED"] = "userConnected";
|
|
9
8
|
STCConnectionEventName["USER_DISCONNECTED"] = "userDisconnected";
|
|
10
9
|
STCConnectionEventName["ROBOT_CONNECTED"] = "robotConnected";
|
|
11
10
|
STCConnectionEventName["ROBOT_DISCONNECTED"] = "robotDisconnected";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
return STCConnectionEventName;
|
|
12
|
+
}({});
|
|
13
|
+
var CTSConnectionEventName = /*#__PURE__*/ function(CTSConnectionEventName) {
|
|
15
14
|
CTSConnectionEventName["USER_CONNECTIONS"] = "userConnections";
|
|
16
15
|
CTSConnectionEventName["USER_CONNECTION_SUBSCRIBE"] = "userConnectionSubscribe";
|
|
17
16
|
CTSConnectionEventName["USER_CONNECTION_UNSUBSCRIBE"] = "userConnectionUnsubscribe";
|
|
18
17
|
CTSConnectionEventName["ROBOT_CONNECTIONS"] = "robotConnections";
|
|
19
18
|
CTSConnectionEventName["ROBOT_CONNECTION_SUBSCRIBE"] = "robotConnectionSubscribe";
|
|
20
19
|
CTSConnectionEventName["ROBOT_CONNECTION_UNSUBSCRIBE"] = "robotConnectionUnsubscribe";
|
|
21
|
-
|
|
20
|
+
return CTSConnectionEventName;
|
|
21
|
+
}({});
|
|
22
22
|
|
|
23
23
|
/*
|
|
24
24
|
* Copyright (c) 2024.
|
|
25
25
|
* Author Peter Placzek (tada5hi)
|
|
26
26
|
* For the full copyright and license information,
|
|
27
27
|
* view the LICENSE file that was distributed with this source code.
|
|
28
|
-
*/ var STCMessagingEventName
|
|
29
|
-
(function(STCMessagingEventName) {
|
|
28
|
+
*/ var STCMessagingEventName = /*#__PURE__*/ function(STCMessagingEventName) {
|
|
30
29
|
STCMessagingEventName["SEND"] = "send";
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return STCMessagingEventName;
|
|
31
|
+
}({});
|
|
32
|
+
var CTSMessagingEventName = /*#__PURE__*/ function(CTSMessagingEventName) {
|
|
34
33
|
CTSMessagingEventName["SEND"] = "send";
|
|
35
|
-
|
|
34
|
+
return CTSMessagingEventName;
|
|
35
|
+
}({});
|
|
36
36
|
|
|
37
37
|
/*
|
|
38
38
|
* Copyright (c) 2021-2024.
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/connection/constants.ts","../src/messaging/constants.ts","../src/utils.ts"],"sourcesContent":["/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCConnectionEventName {\n USER_CONNECTED = 'userConnected',\n USER_DISCONNECTED = 'userDisconnected',\n\n ROBOT_CONNECTED = 'robotConnected',\n ROBOT_DISCONNECTED = 'robotDisconnected',\n}\n\nexport enum CTSConnectionEventName {\n USER_CONNECTIONS = 'userConnections',\n USER_CONNECTION_SUBSCRIBE = 'userConnectionSubscribe',\n USER_CONNECTION_UNSUBSCRIBE = 'userConnectionUnsubscribe',\n\n ROBOT_CONNECTIONS = 'robotConnections',\n ROBOT_CONNECTION_SUBSCRIBE = 'robotConnectionSubscribe',\n ROBOT_CONNECTION_UNSUBSCRIBE = 'robotConnectionUnsubscribe',\n}\n","/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCMessagingEventName {\n SEND = 'send',\n}\n\nexport enum CTSMessagingEventName {\n SEND = 'send',\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { EventCallback } from './types';\n\nexport function isEventCallback(\n input: unknown,\n fnArgs?: number,\n) : input is EventCallback {\n if (typeof fnArgs === 'undefined') {\n return typeof input === 'function';\n }\n\n return typeof input === 'function' &&\n input.length >= fnArgs;\n}\n\nexport function isEventTarget(\n input: unknown,\n) : input is EventTarget {\n return typeof input === 'number' ||\n typeof input === 'string' ||\n typeof input === 'undefined';\n}\n"],"names":["STCConnectionEventName","CTSConnectionEventName","STCMessagingEventName","CTSMessagingEventName","isEventCallback","input","fnArgs","length","isEventTarget"],"mappings":"AAAA;;;;;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/connection/constants.ts","../src/messaging/constants.ts","../src/utils.ts"],"sourcesContent":["/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCConnectionEventName {\n USER_CONNECTED = 'userConnected',\n USER_DISCONNECTED = 'userDisconnected',\n\n ROBOT_CONNECTED = 'robotConnected',\n ROBOT_DISCONNECTED = 'robotDisconnected',\n}\n\nexport enum CTSConnectionEventName {\n USER_CONNECTIONS = 'userConnections',\n USER_CONNECTION_SUBSCRIBE = 'userConnectionSubscribe',\n USER_CONNECTION_UNSUBSCRIBE = 'userConnectionUnsubscribe',\n\n ROBOT_CONNECTIONS = 'robotConnections',\n ROBOT_CONNECTION_SUBSCRIBE = 'robotConnectionSubscribe',\n ROBOT_CONNECTION_UNSUBSCRIBE = 'robotConnectionUnsubscribe',\n}\n","/*\n * Copyright (c) 2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nexport enum STCMessagingEventName {\n SEND = 'send',\n}\n\nexport enum CTSMessagingEventName {\n SEND = 'send',\n}\n","/*\n * Copyright (c) 2021-2024.\n * Author Peter Placzek (tada5hi)\n * For the full copyright and license information,\n * view the LICENSE file that was distributed with this source code.\n */\n\nimport type { EventCallback } from './types';\n\nexport function isEventCallback(\n input: unknown,\n fnArgs?: number,\n) : input is EventCallback {\n if (typeof fnArgs === 'undefined') {\n return typeof input === 'function';\n }\n\n return typeof input === 'function' &&\n input.length >= fnArgs;\n}\n\nexport function isEventTarget(\n input: unknown,\n) : input is EventTarget {\n return typeof input === 'number' ||\n typeof input === 'string' ||\n typeof input === 'undefined';\n}\n"],"names":["STCConnectionEventName","CTSConnectionEventName","STCMessagingEventName","CTSMessagingEventName","isEventCallback","input","fnArgs","length","isEventTarget"],"mappings":"AAAA;;;;;IAOO,IAAKA,sBAAAA,iBAAAA,SAAAA,sBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,sBAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,sBAAKC,iBAAAA,SAAAA,sBAAAA,EAAAA;;;;;;;AAAAA,IAAAA,OAAAA,sBAAAA;AAQX,CAAA,CAAA,EAAA;;ACvBD;;;;;IAOO,IAAKC,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;;AAAAA,IAAAA,OAAAA,qBAAAA;AAEX,CAAA,CAAA,EAAA;AAEM,IAAA,qBAAKC,iBAAAA,SAAAA,qBAAAA,EAAAA;;AAAAA,IAAAA,OAAAA,qBAAAA;AAEX,CAAA,CAAA,EAAA;;ACbD;;;;;AAKC,IAIM,SAASC,eACZC,CAAAA,KAAc,EACdC,MAAe,EAAA;IAEf,IAAI,OAAOA,WAAW,WAAa,EAAA;AAC/B,QAAA,OAAO,OAAOD,KAAU,KAAA,UAAA;AAC5B;AAEA,IAAA,OAAO,OAAOA,KAAAA,KAAU,UACpBA,IAAAA,KAAAA,CAAME,MAAM,IAAID,MAAAA;AACxB;AAEO,SAASE,cACZH,KAAc,EAAA;AAEd,IAAA,OAAO,OAAOA,KAAU,KAAA,QAAA,IACpB,OAAOA,KAAU,KAAA,QAAA,IACjB,OAAOA,KAAU,KAAA,WAAA;AACzB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@privateaim/messenger-kit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"exports": {
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"build-watch": "rimraf ./dist && tsc -p tsconfig.build.json --watch"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@privateaim/core-kit": "^0.8.
|
|
29
|
+
"@privateaim/core-kit": "^0.8.5"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@privateaim/core-kit": "^0.8.
|
|
32
|
+
"@privateaim/core-kit": "^0.8.5"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|