@tachybase/module-message 1.3.21 → 1.3.23
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/client/base/notification-providers/providerTypes/index.d.ts +1 -1
- package/dist/client/configuration/Message.instruction.d.ts +2 -2
- package/dist/client/index.js +4 -4
- package/dist/client/plugin.d.ts +1 -1
- package/dist/common/collections/messages.d.ts +1 -1
- package/dist/common/collections/users.d.ts +1 -1
- package/dist/common/collections/users.js +2 -2
- package/dist/externalVersion.js +7 -9
- package/dist/node_modules/@alicloud/dysmsapi20170525/dist/client.js +2 -2
- package/dist/node_modules/@alicloud/dysmsapi20170525/package.json +1 -1
- package/dist/node_modules/@alicloud/openapi-client/dist/client.js +2 -2
- package/dist/node_modules/@alicloud/openapi-client/package.json +1 -1
- package/dist/node_modules/@alicloud/tea-util/dist/client.js +1 -1
- package/dist/node_modules/@alicloud/tea-util/package.json +1 -1
- package/dist/node_modules/tencentcloud-sdk-nodejs/node_modules/.bin/uuid +2 -2
- package/dist/node_modules/tencentcloud-sdk-nodejs/package.json +1 -1
- package/dist/node_modules/ws/index.js +1 -1
- package/dist/node_modules/ws/lib/permessage-deflate.js +14 -0
- package/dist/node_modules/ws/lib/sender.js +1 -1
- package/dist/node_modules/ws/lib/stream.js +2 -0
- package/dist/node_modules/ws/lib/websocket-server.js +14 -4
- package/dist/node_modules/ws/lib/websocket.js +1 -1
- package/dist/node_modules/ws/package.json +1 -1
- package/dist/server/MessageManager.d.ts +1 -2
- package/dist/server/MessageManager.js +1 -1
- package/dist/server/actions/messages.js +2 -12
- package/dist/server/plugin.d.ts +1 -2
- package/dist/server/plugin.js +2 -3
- package/package.json +15 -21
|
@@ -708,7 +708,7 @@ function initAsClient(websocket, address, protocols, options) {
|
|
|
708
708
|
if (parsedUrl.protocol !== 'ws:' && !isSecure && !isIpcUrl) {
|
|
709
709
|
invalidUrlMessage =
|
|
710
710
|
'The URL\'s protocol must be one of "ws:", "wss:", ' +
|
|
711
|
-
'"http:", "https", or "ws+unix:"';
|
|
711
|
+
'"http:", "https:", or "ws+unix:"';
|
|
712
712
|
} else if (isIpcUrl && !parsedUrl.pathname) {
|
|
713
713
|
invalidUrlMessage = "The URL's pathname is empty";
|
|
714
714
|
} else if (parsedUrl.hash) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"ws","version":"8.18.
|
|
1
|
+
{"name":"ws","version":"8.18.3","description":"Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js","keywords":["HyBi","Push","RFC-6455","WebSocket","WebSockets","real-time"],"homepage":"https://github.com/websockets/ws","bugs":"https://github.com/websockets/ws/issues","repository":{"type":"git","url":"git+https://github.com/websockets/ws.git"},"author":"Einar Otto Stangvik <einaros@gmail.com> (http://2x.io)","license":"MIT","main":"index.js","exports":{".":{"browser":"./browser.js","import":"./wrapper.mjs","require":"./index.js"},"./package.json":"./package.json"},"browser":"browser.js","engines":{"node":">=10.0.0"},"files":["browser.js","index.js","lib/*.js","wrapper.mjs"],"scripts":{"test":"nyc --reporter=lcov --reporter=text mocha --throw-deprecation test/*.test.js","integration":"mocha --throw-deprecation test/*.integration.js","lint":"eslint . && prettier --check --ignore-path .gitignore \"**/*.{json,md,yaml,yml}\""},"peerDependencies":{"bufferutil":"^4.0.1","utf-8-validate":">=5.0.2"},"peerDependenciesMeta":{"bufferutil":{"optional":true},"utf-8-validate":{"optional":true}},"devDependencies":{"benchmark":"^2.1.4","bufferutil":"^4.0.1","eslint":"^9.0.0","eslint-config-prettier":"^10.0.1","eslint-plugin-prettier":"^5.0.0","globals":"^16.0.0","mocha":"^8.4.0","nyc":"^15.0.0","prettier":"^3.0.0","utf-8-validate":"^6.0.0"},"_lastModified":"2025-08-02T21:30:56.364Z"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Repository } from '@
|
|
2
|
-
import Application, { WSServer } from '@tachybase/server';
|
|
1
|
+
import { Application, Repository, WSServer } from '@tego/server';
|
|
3
2
|
import type { IMessage, IMessageService } from '../types/types';
|
|
4
3
|
export declare class MessageService implements IMessageService {
|
|
5
4
|
app: Application;
|
|
@@ -30,7 +30,7 @@ __export(MessageManager_exports, {
|
|
|
30
30
|
MessageService: () => MessageService
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(MessageManager_exports);
|
|
33
|
-
var import_server = require("@
|
|
33
|
+
var import_server = require("@tego/server");
|
|
34
34
|
var import_constants = require("../common/constants");
|
|
35
35
|
var import_plugin = __toESM(require("./plugin"));
|
|
36
36
|
class MessageService {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
5
|
var __export = (target, all) => {
|
|
8
6
|
for (var name in all)
|
|
@@ -16,25 +14,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
14
|
}
|
|
17
15
|
return to;
|
|
18
16
|
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
18
|
var messages_exports = {};
|
|
29
19
|
__export(messages_exports, {
|
|
30
20
|
messages: () => messages
|
|
31
21
|
});
|
|
32
22
|
module.exports = __toCommonJS(messages_exports);
|
|
33
|
-
var
|
|
23
|
+
var import_server = require("@tego/server");
|
|
34
24
|
var import_constants = require("../../common/constants");
|
|
35
25
|
const messages = {
|
|
36
26
|
async update(context, next) {
|
|
37
|
-
await
|
|
27
|
+
await import_server.actions.update(context, next);
|
|
38
28
|
context.app.noticeManager.notify(import_constants.MESSAGES_UPDATE_BADGE_COUNT, {
|
|
39
29
|
msg: import_constants.MESSAGES_UPDATE_BADGE_COUNT
|
|
40
30
|
});
|
package/dist/server/plugin.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Plugin } from '@
|
|
2
|
-
import { Registry } from '@tachybase/utils';
|
|
1
|
+
import { Plugin, Registry } from '@tego/server';
|
|
3
2
|
import { Provider } from './providers/Provider';
|
|
4
3
|
declare class ModuleMessagesServer extends Plugin {
|
|
5
4
|
providers: Registry<typeof Provider>;
|
package/dist/server/plugin.js
CHANGED
|
@@ -31,8 +31,7 @@ __export(plugin_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(plugin_exports);
|
|
33
33
|
var import_module_workflow = require("@tachybase/module-workflow");
|
|
34
|
-
var import_server = require("@
|
|
35
|
-
var import_utils = require("@tachybase/utils");
|
|
34
|
+
var import_server = require("@tego/server");
|
|
36
35
|
var import_messages_providers = require("../common/collections/messages_providers");
|
|
37
36
|
var import_actions = require("./actions");
|
|
38
37
|
var import_constants = require("./constants");
|
|
@@ -42,7 +41,7 @@ var import_providers = __toESM(require("./providers"));
|
|
|
42
41
|
class ModuleMessagesServer extends import_server.Plugin {
|
|
43
42
|
constructor() {
|
|
44
43
|
super(...arguments);
|
|
45
|
-
this.providers = new
|
|
44
|
+
this.providers = new import_server.Registry();
|
|
46
45
|
}
|
|
47
46
|
async install() {
|
|
48
47
|
const {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/module-message",
|
|
3
3
|
"displayName": "Message",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.23",
|
|
5
5
|
"description": "Send messages to users.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"System management"
|
|
@@ -12,30 +12,24 @@
|
|
|
12
12
|
"@alicloud/dysmsapi20170525": "2.0.24",
|
|
13
13
|
"@alicloud/openapi-client": "0.4.15",
|
|
14
14
|
"@alicloud/tea-util": "1.4.9",
|
|
15
|
-
"@ant-design/icons": "
|
|
16
|
-
"
|
|
15
|
+
"@ant-design/icons": "^5.6.1",
|
|
16
|
+
"@tachybase/schema": "^1.3.43",
|
|
17
|
+
"@tachybase/test": "^1.3.43",
|
|
18
|
+
"@tego/client": "^1.3.43",
|
|
19
|
+
"@tego/server": "^1.3.43",
|
|
20
|
+
"ahooks": "^3.9.0",
|
|
17
21
|
"antd": "5.22.5",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
22
|
+
"dayjs": "^1.11.13",
|
|
23
|
+
"jsonwebtoken": "^8.5.1",
|
|
24
|
+
"lodash": "4.17.21",
|
|
25
|
+
"react-i18next": "15.2.0",
|
|
21
26
|
"react-router-dom": "6.28.1",
|
|
22
27
|
"tencentcloud-sdk-nodejs": "^4.0.996",
|
|
23
|
-
"ws": "^8.18.
|
|
24
|
-
"@tachybase/
|
|
25
|
-
"@tachybase/
|
|
26
|
-
"@tachybase/utils": "1.3.21"
|
|
27
|
-
},
|
|
28
|
-
"peerDependencies": {
|
|
29
|
-
"@tachybase/client": "1.3.21",
|
|
30
|
-
"@tachybase/module-workflow": "1.3.21",
|
|
31
|
-
"@tachybase/database": "1.3.21",
|
|
32
|
-
"@tachybase/schema": "1.3.21",
|
|
33
|
-
"@tachybase/server": "1.3.21",
|
|
34
|
-
"@tachybase/test": "1.3.21"
|
|
28
|
+
"ws": "^8.18.3",
|
|
29
|
+
"@tachybase/client": "1.3.23",
|
|
30
|
+
"@tachybase/module-workflow": "1.3.23"
|
|
35
31
|
},
|
|
36
32
|
"description.zh-CN": "用于给用户发送消息",
|
|
37
33
|
"displayName.zh-CN": "消息通知",
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build": "tachybase-build --no-dts @tachybase/module-message"
|
|
40
|
-
}
|
|
34
|
+
"scripts": {}
|
|
41
35
|
}
|