@pristine-ts/http 2.0.6 → 2.0.16

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.
@@ -1,13 +1,14 @@
1
1
  import "reflect-metadata";
2
2
  import { ExitCode } from "@pristine-ts/common";
3
- import { CommandInterface, ConsoleManager } from "@pristine-ts/cli";
3
+ import { CommandInterface } from "@pristine-ts/cli";
4
+ import { LogHandlerInterface } from "@pristine-ts/logging";
4
5
  import { FileHttpServer } from "../servers/file.http-server";
5
6
  import { FileServerCommandOptions } from "./file-server.command-options";
6
7
  export declare class FileServerCommand implements CommandInterface<FileServerCommandOptions> {
7
- private readonly consoleManager;
8
+ private readonly logHandler;
8
9
  private readonly fileHttpServer;
9
10
  optionsType: typeof FileServerCommandOptions;
10
11
  name: string;
11
- constructor(consoleManager: ConsoleManager, fileHttpServer: FileHttpServer);
12
+ constructor(logHandler: LogHandlerInterface, fileHttpServer: FileHttpServer);
12
13
  run(args: FileServerCommandOptions): Promise<ExitCode | number>;
13
14
  }
@@ -1,4 +1,4 @@
1
- import { Kernel, RuntimeServerInterface } from "@pristine-ts/core";
1
+ import { EventIdManager, Kernel, RuntimeServerInterface } from "@pristine-ts/core";
2
2
  import { LogHandlerInterface } from "@pristine-ts/logging";
3
3
  /**
4
4
  * Per-request override of the start-time bound port/address pair. Both are optional — when
@@ -36,6 +36,7 @@ export declare class KernelHttpServer implements RuntimeServerInterface {
36
36
  private readonly defaultTlsCertPath;
37
37
  private readonly logHandler;
38
38
  private readonly kernel;
39
+ private readonly eventIdManager;
39
40
  /**
40
41
  * Identifier reported back via `RuntimeServerInterface.name`. Switches to `"https"` when
41
42
  * TLS config is present, mainly so log lines and `pristine info`-style introspection make
@@ -53,7 +54,7 @@ export declare class KernelHttpServer implements RuntimeServerInterface {
53
54
  * @private
54
55
  */
55
56
  private readonly connections;
56
- constructor(defaultAddress: string, defaultPort: number, defaultTlsKeyPath: string, defaultTlsCertPath: string, logHandler: LogHandlerInterface, kernel: Kernel);
57
+ constructor(defaultAddress: string, defaultPort: number, defaultTlsKeyPath: string, defaultTlsCertPath: string, logHandler: LogHandlerInterface, kernel: Kernel, eventIdManager: EventIdManager);
57
58
  /**
58
59
  * Binds the server. Resolves once the underlying server is listening; rejects on bind error
59
60
  * (port in use, EACCES, etc).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pristine-ts/http",
3
- "version": "2.0.6",
3
+ "version": "2.0.16",
4
4
  "description": "",
5
5
  "module": "dist/lib/esm/http.module.js",
6
6
  "main": "dist/lib/cjs/http.module.js",
@@ -16,10 +16,9 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@pristine-ts/class-validator": "^2.0.4",
19
- "@pristine-ts/cli": "^2.0.6",
20
- "@pristine-ts/common": "^2.0.6",
21
- "@pristine-ts/logging": "^2.0.6",
22
- "lodash": "^4.17.21",
19
+ "@pristine-ts/cli": "^2.0.16",
20
+ "@pristine-ts/common": "^2.0.16",
21
+ "@pristine-ts/logging": "^2.0.16",
23
22
  "tsyringe": "^4.8.0"
24
23
  },
25
24
  "author": "",
@@ -61,7 +60,7 @@
61
60
  "src/*.{js,ts}"
62
61
  ]
63
62
  },
64
- "gitHead": "539029d624372f9bb1e22e09da7152eabb95c105",
63
+ "gitHead": "a55d7d59862672a8cbbca4088fed090779b37705",
65
64
  "repository": {
66
65
  "type": "git",
67
66
  "url": "https://github.com/magieno/pristine-ts.git",