@inversifyjs/http-sse 2.0.22 → 2.0.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/package.json CHANGED
@@ -6,28 +6,25 @@
6
6
  "description": "InversifyJs http sse package",
7
7
  "dependencies": {
8
8
  "@inversifyjs/framework-core": "2.2.0",
9
- "@inversifyjs/http-core": "5.6.3"
9
+ "@inversifyjs/http-core": "5.7.0"
10
10
  },
11
11
  "devDependencies": {
12
- "@hono/node-server": "2.1.3",
12
+ "@hono/node-server": "2.1.4",
13
13
  "@inversifyjs/eslint-plugin-require-extensions": "0.2.0",
14
- "@inversifyjs/http-express": "5.6.3",
15
- "@inversifyjs/http-express-v4": "5.6.3",
16
- "@inversifyjs/http-fastify": "5.6.3",
17
- "@inversifyjs/http-hono": "5.6.3",
18
- "@inversifyjs/http-uwebsockets": "5.6.3",
14
+ "@inversifyjs/http-express": "5.7.0",
15
+ "@inversifyjs/http-fastify": "5.7.0",
16
+ "@inversifyjs/http-hono": "5.7.0",
17
+ "@inversifyjs/http-uwebsockets": "5.7.0",
19
18
  "@stryker-mutator/core": "10.0.0",
20
19
  "@stryker-mutator/typescript-checker": "10.0.0",
21
20
  "@stryker-mutator/vitest-runner": "10.0.0",
22
21
  "@types/express": "5.0.6",
23
- "@types/express4": "npm:@types/express@4.17.25",
24
22
  "@types/node": "24.19.1",
25
23
  "@vitest/coverage-v8": "5.0.3",
26
- "eslint": "10.11.0",
24
+ "eslint": "10.12.0",
27
25
  "express": "5.2.1",
28
- "express4": "npm:express@4.22.3",
29
26
  "fastify": "5.12.5",
30
- "hono": "4.13.12",
27
+ "hono": "4.13.13",
31
28
  "inversify": "8.2.3",
32
29
  "prettier": "3.9.9",
33
30
  "rimraf": "6.1.3",
@@ -60,7 +57,7 @@
60
57
  "type": "git",
61
58
  "url": "git+https://github.com/inversify/monorepo.git"
62
59
  },
63
- "version": "2.0.22",
60
+ "version": "2.0.23",
64
61
  "type": "module",
65
62
  "scripts": {
66
63
  "build": "tsc",
@@ -1,4 +0,0 @@
1
- import { type Container } from 'inversify';
2
- import { type Server } from '../../../models/Server.js';
3
- export declare function buildExpress4Server(container: Container): Promise<Server>;
4
- //# sourceMappingURL=buildExpress4Server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildExpress4Server.d.ts","sourceRoot":"","sources":["../../../../../src/server/adapter/express4/actions/buildExpress4Server.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,wBAAsB,mBAAmB,CACvC,SAAS,EAAE,SAAS,GACnB,OAAO,CAAC,MAAM,CAAC,CAmDjB"}
@@ -1,39 +0,0 @@
1
- import http from 'node:http';
2
- import { InversifyExpressHttpAdapter } from '@inversifyjs/http-express-v4';
3
- export async function buildExpress4Server(container) {
4
- const adapter = new InversifyExpressHttpAdapter(container, {
5
- logger: true,
6
- useCookies: true,
7
- useJson: true,
8
- useText: true,
9
- useUrlEncoded: true,
10
- });
11
- const application = await adapter.build();
12
- const httpServer = http.createServer(application);
13
- return new Promise((resolve) => {
14
- httpServer.listen(0, '127.0.0.1', () => {
15
- const address = httpServer.address();
16
- if (address === null || typeof address === 'string') {
17
- throw new Error('Failed to get server address');
18
- }
19
- const server = {
20
- host: address.address,
21
- port: address.port,
22
- shutdown: async () => {
23
- await new Promise((resolve, reject) => {
24
- httpServer.close((error) => {
25
- if (error !== undefined) {
26
- reject(error);
27
- }
28
- else {
29
- resolve();
30
- }
31
- });
32
- });
33
- },
34
- };
35
- resolve(server);
36
- });
37
- });
38
- }
39
- //# sourceMappingURL=buildExpress4Server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildExpress4Server.js","sourceRoot":"","sources":["../../../../../src/server/adapter/express4/actions/buildExpress4Server.ts"],"names":[],"mappings":"AAAA,OAAO,IAA8B,MAAM,WAAW,CAA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