@simplysm/service-server 13.0.0-beta.16 → 13.0.0-beta.18
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/core/service-base.js +1 -1
- package/dist/core/service-executor.js +1 -1
- package/dist/index.js +19 -19
- package/dist/service-server.js +8 -8
- package/dist/services/auto-update-service.js +1 -1
- package/dist/services/crypto-service.js +1 -1
- package/dist/services/orm-service.js +2 -2
- package/dist/services/smtp-service.js +1 -1
- package/dist/transport/socket/service-socket.js +1 -1
- package/dist/transport/socket/websocket-handler.js +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export * from "./types/server-options";
|
|
2
|
-
export * from "./auth/auth.decorators";
|
|
3
|
-
export * from "./auth/auth-token-payload";
|
|
4
|
-
export * from "./auth/jwt-manager";
|
|
5
|
-
export * from "./core/service-base";
|
|
6
|
-
export * from "./core/service-executor";
|
|
7
|
-
export * from "./transport/socket/websocket-handler";
|
|
8
|
-
export * from "./transport/socket/service-socket";
|
|
9
|
-
export * from "./transport/http/http-request-handler";
|
|
10
|
-
export * from "./transport/http/upload-handler";
|
|
11
|
-
export * from "./transport/http/static-file-handler";
|
|
12
|
-
export * from "./protocol/protocol-wrapper";
|
|
13
|
-
export * from "./services/orm-service";
|
|
14
|
-
export * from "./services/crypto-service";
|
|
15
|
-
export * from "./services/smtp-service";
|
|
16
|
-
export * from "./services/auto-update-service";
|
|
17
|
-
export * from "./utils/config-manager";
|
|
18
|
-
export * from "./legacy/v1-auto-update-handler";
|
|
19
|
-
export * from "./service-server";
|
|
1
|
+
export * from "./types/server-options.js";
|
|
2
|
+
export * from "./auth/auth.decorators.js";
|
|
3
|
+
export * from "./auth/auth-token-payload.js";
|
|
4
|
+
export * from "./auth/jwt-manager.js";
|
|
5
|
+
export * from "./core/service-base.js";
|
|
6
|
+
export * from "./core/service-executor.js";
|
|
7
|
+
export * from "./transport/socket/websocket-handler.js";
|
|
8
|
+
export * from "./transport/socket/service-socket.js";
|
|
9
|
+
export * from "./transport/http/http-request-handler.js";
|
|
10
|
+
export * from "./transport/http/upload-handler.js";
|
|
11
|
+
export * from "./transport/http/static-file-handler.js";
|
|
12
|
+
export * from "./protocol/protocol-wrapper.js";
|
|
13
|
+
export * from "./services/orm-service.js";
|
|
14
|
+
export * from "./services/crypto-service.js";
|
|
15
|
+
export * from "./services/smtp-service.js";
|
|
16
|
+
export * from "./services/auto-update-service.js";
|
|
17
|
+
export * from "./utils/config-manager.js";
|
|
18
|
+
export * from "./legacy/v1-auto-update-handler.js";
|
|
19
|
+
export * from "./service-server.js";
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/service-server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { StaticFileHandler } from "./transport/http/static-file-handler";
|
|
2
|
-
import { HttpRequestHandler } from "./transport/http/http-request-handler";
|
|
3
|
-
import { ServiceExecutor } from "./core/service-executor";
|
|
1
|
+
import { StaticFileHandler } from "./transport/http/static-file-handler.js";
|
|
2
|
+
import { HttpRequestHandler } from "./transport/http/http-request-handler.js";
|
|
3
|
+
import { ServiceExecutor } from "./core/service-executor.js";
|
|
4
4
|
import { jsonStringify, jsonParse, EventEmitter, env } from "@simplysm/core-common";
|
|
5
5
|
import fastify from "fastify";
|
|
6
6
|
import fastifyWebsocket from "@fastify/websocket";
|
|
@@ -10,11 +10,11 @@ import fastifyHelmet from "@fastify/helmet";
|
|
|
10
10
|
import fastifyCors from "@fastify/cors";
|
|
11
11
|
import path from "path";
|
|
12
12
|
import { Buffer } from "node:buffer";
|
|
13
|
-
import { UploadHandler } from "./transport/http/upload-handler";
|
|
14
|
-
import { WebSocketHandler } from "./transport/socket/websocket-handler";
|
|
15
|
-
import { JwtManager } from "./auth/jwt-manager";
|
|
16
|
-
import { handleV1Connection } from "./legacy/v1-auto-update-handler";
|
|
17
|
-
import { AutoUpdateService } from "./services/auto-update-service";
|
|
13
|
+
import { UploadHandler } from "./transport/http/upload-handler.js";
|
|
14
|
+
import { WebSocketHandler } from "./transport/socket/websocket-handler.js";
|
|
15
|
+
import { JwtManager } from "./auth/jwt-manager.js";
|
|
16
|
+
import { handleV1Connection } from "./legacy/v1-auto-update-handler.js";
|
|
17
|
+
import { AutoUpdateService } from "./services/auto-update-service.js";
|
|
18
18
|
import { createConsola } from "consola";
|
|
19
19
|
const logger = createConsola().withTag("service-server:ServiceServer");
|
|
20
20
|
class ServiceServer extends EventEmitter {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import semver from "semver";
|
|
3
3
|
import { fsExists, fsReaddir } from "@simplysm/core-node";
|
|
4
|
-
import { ServiceBase } from "../core/service-base";
|
|
4
|
+
import { ServiceBase } from "../core/service-base.js";
|
|
5
5
|
class AutoUpdateService extends ServiceBase {
|
|
6
6
|
async getLastVersion(platform) {
|
|
7
7
|
const clientPath = this.clientPath;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bytesConcat, bytesToHex, bytesFromHex } from "@simplysm/core-common";
|
|
2
2
|
import crypto from "crypto";
|
|
3
|
-
import { ServiceBase } from "../core/service-base";
|
|
3
|
+
import { ServiceBase } from "../core/service-base.js";
|
|
4
4
|
class CryptoService extends ServiceBase {
|
|
5
5
|
async encrypt(data) {
|
|
6
6
|
const config = await this._getConf();
|
|
@@ -51,8 +51,8 @@ import {
|
|
|
51
51
|
createQueryBuilder,
|
|
52
52
|
parseQueryResult
|
|
53
53
|
} from "@simplysm/orm-common";
|
|
54
|
-
import { ServiceBase } from "../core/service-base";
|
|
55
|
-
import { Authorize } from "../auth/auth.decorators";
|
|
54
|
+
import { ServiceBase } from "../core/service-base.js";
|
|
55
|
+
import { Authorize } from "../auth/auth.decorators.js";
|
|
56
56
|
import { createConsola } from "consola";
|
|
57
57
|
const logger = createConsola().withTag("service-server:OrmService");
|
|
58
58
|
_OrmService_decorators = [Authorize()];
|
|
@@ -2,7 +2,7 @@ import { DateTime, EventEmitter } from "@simplysm/core-common";
|
|
|
2
2
|
import { clearInterval } from "node:timers";
|
|
3
3
|
import { createConsola } from "consola";
|
|
4
4
|
import { WebSocket } from "ws";
|
|
5
|
-
import { ProtocolWrapper } from "../../protocol/protocol-wrapper";
|
|
5
|
+
import { ProtocolWrapper } from "../../protocol/protocol-wrapper.js";
|
|
6
6
|
const logger = createConsola().withTag("service-server:ServiceSocket");
|
|
7
7
|
class ServiceSocket extends EventEmitter {
|
|
8
8
|
constructor(_socket, _clientId, clientName, connReq) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Uuid } from "@simplysm/core-common";
|
|
2
|
-
import { ServiceSocket } from "./service-socket";
|
|
2
|
+
import { ServiceSocket } from "./service-socket.js";
|
|
3
3
|
import { createConsola } from "consola";
|
|
4
4
|
const logger = createConsola().withTag("service-server:WebSocketHandler");
|
|
5
5
|
class WebSocketHandler {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysm/service-server",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "13.0.0-beta.
|
|
4
|
+
"version": "13.0.0-beta.18",
|
|
5
5
|
"description": "심플리즘 패키지 - 서비스 모듈 (server)",
|
|
6
6
|
"author": "김석래",
|
|
7
7
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"semver": "^7.7.4",
|
|
34
34
|
"utf-8-validate": "^6.0.6",
|
|
35
35
|
"ws": "^8.19.0",
|
|
36
|
-
"@simplysm/core-common": "13.0.0-beta.
|
|
37
|
-
"@simplysm/core-node": "13.0.0-beta.
|
|
38
|
-
"@simplysm/orm-common": "13.0.0-beta.
|
|
39
|
-
"@simplysm/orm-node": "13.0.0-beta.
|
|
40
|
-
"@simplysm/service-common": "13.0.0-beta.
|
|
36
|
+
"@simplysm/core-common": "13.0.0-beta.18",
|
|
37
|
+
"@simplysm/core-node": "13.0.0-beta.18",
|
|
38
|
+
"@simplysm/orm-common": "13.0.0-beta.18",
|
|
39
|
+
"@simplysm/orm-node": "13.0.0-beta.18",
|
|
40
|
+
"@simplysm/service-common": "13.0.0-beta.18"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/nodemailer": "^7.0.9",
|