@aeriajs/http 0.0.155 → 0.0.157

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/options.d.ts CHANGED
@@ -2,4 +2,4 @@ export type ServerOptions = {
2
2
  host?: string;
3
3
  port?: number;
4
4
  };
5
- export declare const defineServerOptions: (options?: ServerOptions) => ServerOptions;
5
+ export declare const defineServerOptions: <TServerOptions extends ServerOptions>(options: TServerOptions) => TServerOptions;
package/dist/options.js CHANGED
@@ -2,10 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defineServerOptions = void 0;
4
4
  const defineServerOptions = (options) => {
5
- const { host = '0.0.0.0', port = 3000, } = options || {};
6
- return {
7
- host,
8
- port,
9
- };
5
+ return options;
10
6
  };
11
7
  exports.defineServerOptions = defineServerOptions;
package/dist/options.mjs CHANGED
@@ -1,11 +1,4 @@
1
1
  "use strict";
2
2
  export const defineServerOptions = (options) => {
3
- const {
4
- host = "0.0.0.0",
5
- port = 3e3
6
- } = options || {};
7
- return {
8
- host,
9
- port
10
- };
3
+ return options;
11
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/http",
3
- "version": "0.0.155",
3
+ "version": "0.0.157",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -28,10 +28,10 @@
28
28
  "@aeriajs/validation": "link:../validation"
29
29
  },
30
30
  "peerDependencies": {
31
- "@aeriajs/common": "^0.0.128",
32
- "@aeriajs/entrypoint": "^0.0.131",
33
- "@aeriajs/types": "^0.0.110",
34
- "@aeriajs/validation": "^0.0.143"
31
+ "@aeriajs/common": "^0.0.130",
32
+ "@aeriajs/entrypoint": "^0.0.133",
33
+ "@aeriajs/types": "^0.0.112",
34
+ "@aeriajs/validation": "^0.0.145"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "vitest run",