nodecommons-esm-app-socket-io 1.0.1 → 2.0.1
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/apps/commons-socket-io.app.d.mts +3 -4
- package/dist/apps/commons-socket-io.app.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/servers/commons-app-socket-io.server.d.mts +3 -5
- package/dist/servers/commons-app-socket-io.server.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -2,13 +2,12 @@ import * as express from 'express';
|
|
|
2
2
|
import { CommonsStrictExpressServer, ICommonsRequestWithStrictParams } from 'nodecommons-esm-express';
|
|
3
3
|
import { ICommonsExpressConfig } from 'nodecommons-esm-express';
|
|
4
4
|
import { CommonsRestApp } from 'nodecommons-esm-app-rest';
|
|
5
|
-
import { CommonsStrictHttpServer } from 'nodecommons-esm-http';
|
|
6
5
|
import { CommonsAppSocketIoServer } from '../servers/commons-app-socket-io.server.mjs';
|
|
7
|
-
export declare abstract class CommonsSocketIoApp<
|
|
6
|
+
export declare abstract class CommonsSocketIoApp<ServerT extends CommonsAppSocketIoServer> extends CommonsRestApp<ICommonsRequestWithStrictParams, express.Response, CommonsStrictExpressServer> {
|
|
8
7
|
private internalSocketIoServer;
|
|
9
8
|
constructor(name: string, configFile?: string, configPath?: string, // NB, a direct path, not the name of the args parameter
|
|
10
9
|
envVar?: string, argsKey?: string);
|
|
11
|
-
protected abstract buildSocketIoServer(_expressServer:
|
|
12
|
-
protected get socketIoServer():
|
|
10
|
+
protected abstract buildSocketIoServer(_expressServer: CommonsStrictExpressServer, _expressConfig: ICommonsExpressConfig): ServerT;
|
|
11
|
+
protected get socketIoServer(): ServerT | undefined;
|
|
13
12
|
protected init(): Promise<void>;
|
|
14
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons-socket-io.app.mjs","sourceRoot":"","sources":["../../src/apps/commons-socket-io.app.mts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"commons-socket-io.app.mjs","sourceRoot":"","sources":["../../src/apps/commons-socket-io.app.mts"],"names":[],"mappings":"AAKA,OAAO,EAAyB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACzF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAI1D,MAAM,OAAgB,kBAA6D,SAAQ,cAI1F;IACQ,sBAAsB,CAAoB;IAElD,YACE,IAAY,EACZ,UAAmB,EACnB,UAAmB,EAAE,wDAAwD;IAC7E,MAAe,EACf,UAAkB,aAAa;QAEhC,KAAK,CACH,IAAI,EACJ,SAAS,EACT,UAAU,EACV,UAAU,EACV,MAAM,EACN,OAAO,CACR,CAAC;IACH,CAAC;IASD,IAAc,cAAc;QAC3B,OAAO,IAAI,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAEkB,KAAK,CAAC,IAAI;QAC5B,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;QAEnB,MAAM,aAAa,GAAoB,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;QACrE,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAE5F,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,mBAAmB,CACpD,IAAI,CAAC,UAAU,EACf,aAAa,CACd,CAAC;IACH,CAAC;CACD"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonsSocketIoApp } from './apps/commons-socket-io.app.mjs';
|
|
2
1
|
import { CommonsAppSocketIoServer } from './servers/commons-app-socket-io.server.mjs';
|
|
2
|
+
import { CommonsSocketIoApp } from './apps/commons-socket-io.app.mjs';
|
|
3
3
|
import { ICommonsSocketIoPseudoConfig, isICommonsSocketIoPseudoConfig } from './interfaces/icommons-socket-io-pseudo-config.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { CommonsAppSocketIoServer, CommonsSocketIoApp, ICommonsSocketIoPseudoConfig, isICommonsSocketIoPseudoConfig };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommonsSocketIoApp } from './apps/commons-socket-io.app.mjs';
|
|
2
1
|
import { CommonsAppSocketIoServer } from './servers/commons-app-socket-io.server.mjs';
|
|
2
|
+
import { CommonsSocketIoApp } from './apps/commons-socket-io.app.mjs';
|
|
3
3
|
import { isICommonsSocketIoPseudoConfig } from './interfaces/icommons-socket-io-pseudo-config.mjs';
|
|
4
|
-
export {
|
|
4
|
+
export { CommonsAppSocketIoServer, CommonsSocketIoApp, isICommonsSocketIoPseudoConfig };
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAgC,8BAA8B,EAAE,MAAM,mDAAmD,CAAC;AACjI,OAAO,EACN,wBAAwB,EACxB,kBAAkB,EAElB,8BAA8B,EAC9B,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import * as express from 'express';
|
|
2
1
|
import { ServerOptions } from 'socket.io';
|
|
3
|
-
import { CommonsStrictExpressServer, ICommonsExpressConfig
|
|
4
|
-
import { CommonsStrictHttpServer } from 'nodecommons-esm-http';
|
|
2
|
+
import { CommonsStrictExpressServer, ICommonsExpressConfig } from 'nodecommons-esm-express';
|
|
5
3
|
import { CommonsSocketIoServer } from 'nodecommons-esm-socket-io';
|
|
6
|
-
export declare class CommonsAppSocketIoServer
|
|
7
|
-
constructor(expressServer:
|
|
4
|
+
export declare class CommonsAppSocketIoServer extends CommonsSocketIoServer {
|
|
5
|
+
constructor(expressServer: CommonsStrictExpressServer, expressConfig: ICommonsExpressConfig, defaultEnabled?: boolean, options?: Partial<ServerOptions>);
|
|
8
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commons-app-socket-io.server.mjs","sourceRoot":"","sources":["../../src/servers/commons-app-socket-io.server.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commons-app-socket-io.server.mjs","sourceRoot":"","sources":["../../src/servers/commons-app-socket-io.server.mts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,kCAAkC,EAAE,MAAM,2BAA2B,CAAC;AAEtG,MAAM,OAAO,wBAAyB,SAAQ,qBAAqB;IAClE,YACE,aAAyC,EACzC,aAAoC,EACpC,iBAA0B,IAAI,EAC9B,OAAgC;QAEjC,KAAK,CACH,aAAa,CAAC,MAAM,EACpB,cAAc,EACd;YACE,GAAG,kCAAkC,CAAC,aAAa,CAAC;YACpD,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;SACnB,CACF,CAAC;IACH,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodecommons-esm-app-socket-io",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"tsc": "./node_modules/typescript/bin/tsc",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@types/express": "^5.0.0",
|
|
30
30
|
"express": "^4.21.2",
|
|
31
|
-
"nodecommons-esm-app-rest": "^0.0.
|
|
32
|
-
"nodecommons-esm-express": "^1.0.
|
|
33
|
-
"nodecommons-esm-socket-io": "^0.0.
|
|
31
|
+
"nodecommons-esm-app-rest": "^0.0.14",
|
|
32
|
+
"nodecommons-esm-express": "^1.0.3",
|
|
33
|
+
"nodecommons-esm-socket-io": "^0.0.9",
|
|
34
34
|
"socket.io": "^4.8.1",
|
|
35
|
-
"tscommons-esm-core": "^0.0
|
|
35
|
+
"tscommons-esm-core": "^0.1.0"
|
|
36
36
|
}
|
|
37
37
|
}
|