@proteinjs/event 1.0.1 → 1.0.3

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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.2](https://github.com/brentbahry/server/compare/@proteinjs/event@1.0.1...@proteinjs/event@1.0.2) (2024-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `DefaultSocketIOServerFactory.createSocketIOServer` and `SocketIOServerRepo.createSocketIOServer` to return a Promise ([19d947e](https://github.com/brentbahry/server/commit/19d947eef68d0957d8db1117d958acef05a42874))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 1.0.1 (2024-08-29)
7
18
 
8
19
  **Note:** Version bump only for package @proteinjs/event
@@ -17,7 +17,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  require("@proteinjs/reflection");
19
19
  /** Generate Source Graph */
20
- var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"value\":{\"packageName\":\"@proteinjs/event\",\"name\":\"DefaultSocketIOServerFactory\",\"filePath\":\"/home/runner/work/server/server/packages/event/src/DefaultSocketIOServerFactory.ts\",\"qualifiedName\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"properties\":[],\"methods\":[{\"name\":\"createSocketIOServer\",\"returnType\":{\"packageName\":\"\",\"name\":\"SocketIOServer\",\"filePath\":null,\"qualifiedName\":\"/SocketIOServer\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":true,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"httpServer\",\"type\":{\"packageName\":\"\",\"name\":\"HttpServer\",\"filePath\":null,\"qualifiedName\":\"/HttpServer\",\"typeParameters\":null,\"directParents\":null}}]}],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection/Loadable\"}],\"edges\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"}]}";
20
+ var sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"value\":{\"packageName\":\"@proteinjs/event\",\"name\":\"DefaultSocketIOServerFactory\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/server/packages/event/src/DefaultSocketIOServerFactory.ts\",\"qualifiedName\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"properties\":[],\"methods\":[{\"name\":\"createSocketIOServer\",\"returnType\":{\"packageName\":\"\",\"name\":\"Promise<SocketIOServer>\",\"filePath\":null,\"qualifiedName\":\"/Promise<SocketIOServer>\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":true,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"httpServer\",\"type\":{\"packageName\":\"\",\"name\":\"HttpServer\",\"filePath\":null,\"qualifiedName\":\"/HttpServer\",\"typeParameters\":null,\"directParents\":null}}]}],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection/Loadable\"}],\"edges\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"}]}";
21
21
  /** Generate Source Links */
22
22
  var sourceLinks = {};
23
23
  /** Load Source Graph and Links */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,iCAA+B;AAG/B,4BAA4B;AAE5B,IAAM,WAAW,GAAG,y3CAAy3C,CAAC;AAG94C,4BAA4B;AAG5B,IAAM,WAAW,GAAG,EACnB,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../generated/index.ts"],"names":[],"mappings":";AAAA,oCAAoC;;;;;;;;;;;;;;;;AAEpC,iCAA+B;AAG/B,4BAA4B;AAE5B,IAAM,WAAW,GAAG,26CAA26C,CAAC;AAGh8C,4BAA4B;AAG5B,IAAM,WAAW,GAAG,EACnB,CAAC;AAGF,kCAAkC;AAElC,oDAAyD;AACzD,6BAAgB,CAAC,KAAK,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAGjD,2CAAyB"}
@@ -4,6 +4,6 @@ import type { Server as SocketIOServer } from 'socket.io';
4
4
  import { Loadable } from '@proteinjs/reflection';
5
5
  export declare const getDefaultSocketIOServerFactory: () => DefaultSocketIOServerFactory;
6
6
  export interface DefaultSocketIOServerFactory extends Loadable {
7
- createSocketIOServer(httpServer: HttpServer): SocketIOServer;
7
+ createSocketIOServer(httpServer: HttpServer): Promise<SocketIOServer>;
8
8
  }
9
9
  //# sourceMappingURL=DefaultSocketIOServerFactory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DefaultSocketIOServerFactory.d.ts","sourceRoot":"","sources":["../../src/DefaultSocketIOServerFactory.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAoB,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,oCACkE,CAAC;AAE/G,MAAM,WAAW,4BAA6B,SAAQ,QAAQ;IAC5D,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,cAAc,CAAC;CAC9D"}
1
+ {"version":3,"file":"DefaultSocketIOServerFactory.d.ts","sourceRoot":"","sources":["../../src/DefaultSocketIOServerFactory.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAoB,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,+BAA+B,oCACkE,CAAC;AAE/G,MAAM,WAAW,4BAA6B,SAAQ,QAAQ;IAC5D,oBAAoB,CAAC,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CACvE"}
@@ -2,18 +2,23 @@
2
2
 
3
3
  import '@proteinjs/reflection';
4
4
 
5
+
5
6
  /** Generate Source Graph */
6
7
 
7
- const sourceGraph =
8
- '{"options":{"directed":true,"multigraph":false,"compound":false},"nodes":[{"v":"@proteinjs/event/DefaultSocketIOServerFactory","value":{"packageName":"@proteinjs/event","name":"DefaultSocketIOServerFactory","filePath":"/home/runner/work/server/server/packages/event/src/DefaultSocketIOServerFactory.ts","qualifiedName":"@proteinjs/event/DefaultSocketIOServerFactory","properties":[],"methods":[{"name":"createSocketIOServer","returnType":{"packageName":"","name":"SocketIOServer","filePath":null,"qualifiedName":"/SocketIOServer","typeParameters":null,"directParents":null},"isAsync":false,"isOptional":false,"isAbstract":true,"isStatic":false,"visibility":"public","parameters":[{"name":"httpServer","type":{"packageName":"","name":"HttpServer","filePath":null,"qualifiedName":"/HttpServer","typeParameters":null,"directParents":null}}]}],"typeParameters":[],"directParents":[{"packageName":"@proteinjs/reflection","name":"Loadable","filePath":null,"qualifiedName":"@proteinjs/reflection/Loadable","properties":[],"methods":[],"typeParameters":[],"directParents":[]}],"sourceType":3}},{"v":"@proteinjs/reflection/Loadable"}],"edges":[{"v":"@proteinjs/event/DefaultSocketIOServerFactory","w":"@proteinjs/reflection/Loadable","value":"extends interface"}]}';
8
+ const sourceGraph = "{\"options\":{\"directed\":true,\"multigraph\":false,\"compound\":false},\"nodes\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"value\":{\"packageName\":\"@proteinjs/event\",\"name\":\"DefaultSocketIOServerFactory\",\"filePath\":\"/Users/brentbahry/repos/n3xa/packages/proteinjs/packages/server/packages/event/src/DefaultSocketIOServerFactory.ts\",\"qualifiedName\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"properties\":[],\"methods\":[{\"name\":\"createSocketIOServer\",\"returnType\":{\"packageName\":\"\",\"name\":\"Promise<SocketIOServer>\",\"filePath\":null,\"qualifiedName\":\"/Promise<SocketIOServer>\",\"typeParameters\":null,\"directParents\":null},\"isAsync\":false,\"isOptional\":false,\"isAbstract\":true,\"isStatic\":false,\"visibility\":\"public\",\"parameters\":[{\"name\":\"httpServer\",\"type\":{\"packageName\":\"\",\"name\":\"HttpServer\",\"filePath\":null,\"qualifiedName\":\"/HttpServer\",\"typeParameters\":null,\"directParents\":null}}]}],\"typeParameters\":[],\"directParents\":[{\"packageName\":\"@proteinjs/reflection\",\"name\":\"Loadable\",\"filePath\":null,\"qualifiedName\":\"@proteinjs/reflection/Loadable\",\"properties\":[],\"methods\":[],\"typeParameters\":[],\"directParents\":[]}],\"sourceType\":3}},{\"v\":\"@proteinjs/reflection/Loadable\"}],\"edges\":[{\"v\":\"@proteinjs/event/DefaultSocketIOServerFactory\",\"w\":\"@proteinjs/reflection/Loadable\",\"value\":\"extends interface\"}]}";
9
+
9
10
 
10
11
  /** Generate Source Links */
11
12
 
12
- const sourceLinks = {};
13
+
14
+ const sourceLinks = {
15
+ };
16
+
13
17
 
14
18
  /** Load Source Graph and Links */
15
19
 
16
20
  import { SourceRepository } from '@proteinjs/reflection';
17
21
  SourceRepository.merge(sourceGraph, sourceLinks);
18
22
 
19
- export * from '../index';
23
+
24
+ export * from '../index';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/event",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Event api",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,10 +21,10 @@
21
21
  "watch": "reflection-watch"
22
22
  },
23
23
  "dependencies": {
24
- "@proteinjs/reflection": "1.1.9"
24
+ "@proteinjs/reflection": "1.1.10"
25
25
  },
26
26
  "devDependencies": {
27
- "@proteinjs/reflection-build": "1.0.24",
27
+ "@proteinjs/reflection-build": "1.0.25",
28
28
  "@types/node": "20.8.2",
29
29
  "@typescript-eslint/eslint-plugin": "7.8.0",
30
30
  "@typescript-eslint/parser": "7.8.0",
@@ -35,6 +35,5 @@
35
35
  "typescript": "5.2.2"
36
36
  },
37
37
  "main": "./dist/generated/index.js",
38
- "types": "./dist/generated/index.d.ts",
39
- "gitHead": "20d26dfc1f1ca3090e391db15d1b3a2e8e4d8f5d"
38
+ "types": "./dist/generated/index.d.ts"
40
39
  }
@@ -6,5 +6,5 @@ export const getDefaultSocketIOServerFactory = () =>
6
6
  SourceRepository.get().object<DefaultSocketIOServerFactory>('@proteinjs/event/DefaultSocketIOServerFactory');
7
7
 
8
8
  export interface DefaultSocketIOServerFactory extends Loadable {
9
- createSocketIOServer(httpServer: HttpServer): SocketIOServer;
9
+ createSocketIOServer(httpServer: HttpServer): Promise<SocketIOServer>;
10
10
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Brent Bahry
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.