@pristine-ts/http 2.0.4 → 2.0.6
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/lib/cjs/commands/file-server.command.js +1 -1
- package/dist/lib/cjs/commands/file-server.command.js.map +1 -1
- package/dist/lib/cjs/errors/http-client-request.error.js +5 -9
- package/dist/lib/cjs/errors/http-client-request.error.js.map +1 -1
- package/dist/lib/cjs/errors/http-client-response-redirect.error.js +7 -11
- package/dist/lib/cjs/errors/http-client-response-redirect.error.js.map +1 -1
- package/dist/lib/cjs/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/lib/esm/commands/file-server.command.js +3 -3
- package/dist/lib/esm/commands/file-server.command.js.map +1 -1
- package/dist/lib/esm/errors/http-client-request.error.js +6 -10
- package/dist/lib/esm/errors/http-client-request.error.js.map +1 -1
- package/dist/lib/esm/errors/http-client-response-redirect.error.js +8 -12
- package/dist/lib/esm/errors/http-client-response-redirect.error.js.map +1 -1
- package/dist/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/dist/types/commands/file-server.command.d.ts +3 -2
- package/dist/types/errors/http-client-request.error.d.ts +2 -2
- package/dist/types/errors/http-client-response-redirect.error.d.ts +2 -2
- package/package.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import {
|
|
2
|
+
import { ExitCode } from "@pristine-ts/common";
|
|
3
|
+
import { CommandInterface, ConsoleManager } from "@pristine-ts/cli";
|
|
3
4
|
import { FileHttpServer } from "../servers/file.http-server";
|
|
4
5
|
import { FileServerCommandOptions } from "./file-server.command-options";
|
|
5
6
|
export declare class FileServerCommand implements CommandInterface<FileServerCommandOptions> {
|
|
@@ -8,5 +9,5 @@ export declare class FileServerCommand implements CommandInterface<FileServerCom
|
|
|
8
9
|
optionsType: typeof FileServerCommandOptions;
|
|
9
10
|
name: string;
|
|
10
11
|
constructor(consoleManager: ConsoleManager, fileHttpServer: FileHttpServer);
|
|
11
|
-
run(args: FileServerCommandOptions): Promise<
|
|
12
|
+
run(args: FileServerCommandOptions): Promise<ExitCode | number>;
|
|
12
13
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PristineError } from "@pristine-ts/common";
|
|
2
2
|
import { HttpRequestInterface } from "../interfaces/http-request.interface";
|
|
3
3
|
import { URL } from 'url';
|
|
4
4
|
/**
|
|
5
5
|
* This Error represents an error when making an http request using the http client
|
|
6
6
|
*/
|
|
7
|
-
export declare class HttpClientRequestError extends
|
|
7
|
+
export declare class HttpClientRequestError extends PristineError {
|
|
8
8
|
readonly message: string;
|
|
9
9
|
readonly request: HttpRequestInterface;
|
|
10
10
|
readonly url: URL;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PristineError } from "@pristine-ts/common";
|
|
2
2
|
import { HttpRequestInterface } from "../interfaces/http-request.interface";
|
|
3
3
|
import { HttpRequestOptions } from "../options/http-request.options.";
|
|
4
4
|
import { HttpResponseInterface } from "../interfaces/http-response.interface";
|
|
5
5
|
/**
|
|
6
6
|
* This Error represents an error when the http client is trying to redirect a response.
|
|
7
7
|
*/
|
|
8
|
-
export declare class HttpClientResponseRedirectError extends
|
|
8
|
+
export declare class HttpClientResponseRedirectError extends PristineError {
|
|
9
9
|
readonly message: string;
|
|
10
10
|
readonly request: HttpRequestInterface;
|
|
11
11
|
readonly requestOptions: HttpRequestOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pristine-ts/http",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"module": "dist/lib/esm/http.module.js",
|
|
6
6
|
"main": "dist/lib/cjs/http.module.js",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@pristine-ts/class-validator": "^2.0.4",
|
|
19
|
-
"@pristine-ts/cli": "^2.0.
|
|
20
|
-
"@pristine-ts/common": "^2.0.
|
|
21
|
-
"@pristine-ts/logging": "^2.0.
|
|
19
|
+
"@pristine-ts/cli": "^2.0.6",
|
|
20
|
+
"@pristine-ts/common": "^2.0.6",
|
|
21
|
+
"@pristine-ts/logging": "^2.0.6",
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
23
|
"tsyringe": "^4.8.0"
|
|
24
24
|
},
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"src/*.{js,ts}"
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "539029d624372f9bb1e22e09da7152eabb95c105",
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|
|
67
67
|
"url": "https://github.com/magieno/pristine-ts.git",
|