@ekhein/http-request 1.0.10 → 1.0.11

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekhein/http-request",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "license": "MIT",
5
5
  "author": "ekhein",
6
6
  "main": "./dist/main.js",
@@ -1,4 +0,0 @@
1
- import { AxiosError, InternalAxiosRequestConfig } from "axios";
2
- export declare class AxiosRetryLimitError extends AxiosError {
3
- constructor(config: InternalAxiosRequestConfig);
4
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AxiosRetryLimitError = void 0;
4
- const axios_1 = require("axios");
5
- class AxiosRetryLimitError extends axios_1.AxiosError {
6
- constructor(config) {
7
- const code = String("AXIOS_RETRY_LIMIT_ERROR");
8
- const message = String("Axios retry limit error");
9
- super(message, code, config);
10
- }
11
- }
12
- exports.AxiosRetryLimitError = AxiosRetryLimitError;
@@ -1,4 +0,0 @@
1
- import { AxiosError, InternalAxiosRequestConfig } from "axios";
2
- export declare class AxiosRetryableError extends AxiosError {
3
- constructor(config: InternalAxiosRequestConfig);
4
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AxiosRetryableError = void 0;
4
- const axios_1 = require("axios");
5
- class AxiosRetryableError extends axios_1.AxiosError {
6
- constructor(config) {
7
- const code = String("AXIOS_RETRYABLE_ERROR");
8
- const message = String("Axios retryable error");
9
- super(message, code, config);
10
- }
11
- }
12
- exports.AxiosRetryableError = AxiosRetryableError;
package/dist/test.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/dist/test.js DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const main_1 = require("./main");
4
- const request = new main_1.HttpRequest({
5
- baseURL: "http://a.b.c.goofish.com"
6
- });
7
- request.execute({
8
- url: "/api/test",
9
- headers: {
10
- cookie: "a=1;b=2"
11
- }
12
- })
13
- .catch(e => { });