@odg/axios 1.0.0
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/README.md +143 -0
- package/dist/AxiosMessage.d.ts +13 -0
- package/dist/AxiosMessage.js +57 -0
- package/dist/AxiosMessage.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/interceptors/AxiosInterceptorRequest.d.ts +9 -0
- package/dist/interceptors/AxiosInterceptorRequest.js +31 -0
- package/dist/interceptors/AxiosInterceptorRequest.js.map +1 -0
- package/dist/interceptors/AxiosInterceptorResponse.d.ts +9 -0
- package/dist/interceptors/AxiosInterceptorResponse.js +27 -0
- package/dist/interceptors/AxiosInterceptorResponse.js.map +1 -0
- package/dist/parser/AxiosParser.d.ts +6 -0
- package/dist/parser/AxiosParser.js +17 -0
- package/dist/parser/AxiosParser.js.map +1 -0
- package/dist/parser/AxiosRequestParser.d.ts +6 -0
- package/dist/parser/AxiosRequestParser.js +43 -0
- package/dist/parser/AxiosRequestParser.js.map +1 -0
- package/dist/parser/AxiosResponseParser.d.ts +6 -0
- package/dist/parser/AxiosResponseParser.js +36 -0
- package/dist/parser/AxiosResponseParser.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +73 -0
package/README.md
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
<h1 align="center">
|
|
2
|
+
<a href="https://github.com/ODGodinho">
|
|
3
|
+
<img
|
|
4
|
+
src="https://raw.githubusercontent.com/ODGodinho/Stanley-TheTemplate/main/public/images/Stanley.jpg"
|
|
5
|
+
alt="Stanley Imagem" width="400"
|
|
6
|
+
/>
|
|
7
|
+
<br /><br />
|
|
8
|
+
<img
|
|
9
|
+
src="https://camo.githubusercontent.com/272811d860f3fab0dd8ff0690e2ca36afbf0c96ad44100b8d42dfdce8511679b/68747470733a2f2f6178696f732d687474702e636f6d2f6173736574732f6c6f676f2e737667"
|
|
10
|
+
alt="Stanley Imagem" width="260"
|
|
11
|
+
/>
|
|
12
|
+
</a>
|
|
13
|
+
<br />
|
|
14
|
+
Axios (Inversion of control)
|
|
15
|
+
<br />
|
|
16
|
+
</h1>
|
|
17
|
+
|
|
18
|
+
<h4 align="center">ODG Message for axios Inversion of control ๐ฆ!</h4>
|
|
19
|
+
|
|
20
|
+
<p align="center">
|
|
21
|
+
|
|
22
|
+
[](https://github.com/ODGodinho/ODGAxios/stargazers)
|
|
23
|
+
[](https://www.linkedin.com/in/victor-alves-odgodinho/)
|
|
24
|
+
[](https://github.com/ODGodinho/ODGAxios/network/members)
|
|
25
|
+

|
|
26
|
+
[](https://github.com/ODGodinho/ODGAxios/commits/master)
|
|
27
|
+
[](https://opensource.org/licenses/MIT)
|
|
28
|
+
|
|
29
|
+
</p>
|
|
30
|
+
|
|
31
|
+
# Table of Contents
|
|
32
|
+
|
|
33
|
+
- [๐ Benefits](#-benefits)
|
|
34
|
+
- [๐ Libraries](#-libraries)
|
|
35
|
+
- [๐ Dependencies](#-dependencies)
|
|
36
|
+
- [โฉ Get Started](#-get-started)
|
|
37
|
+
- [๐ Use Template](#-installation)
|
|
38
|
+
- [๐ป Usage](#-usage)
|
|
39
|
+
- [๐ Start Project](#-start-project)
|
|
40
|
+
- [๐จ Build and Run](#-build-and-run)
|
|
41
|
+
- [๐งช Teste Code](#-teste-code)
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## ๐ Benefits
|
|
46
|
+
|
|
47
|
+
- ๐ Speed performance Inversion of control
|
|
48
|
+
- ๐จ Code Quality
|
|
49
|
+
- ๐ Use Interface
|
|
50
|
+
- ๐งช Teste with 100% coverage
|
|
51
|
+
|
|
52
|
+
## ๐ Libraries
|
|
53
|
+
|
|
54
|
+
- [Node.js 16](https://nodejs.org/?n=dragonsgamers)
|
|
55
|
+
- [Typescript](https://www.typescriptlang.org/?n=dragonsgamers)
|
|
56
|
+
- [Eslint](https://eslint.org/?n=dragonsgamers)
|
|
57
|
+
- [ODG-Linter-JS](https://github.com/ODGodinho/ODG-Linter-Js?n=dragonsgamers)
|
|
58
|
+
- [EditorConfig](https://editorconfig.org/?n=dragonsgamers)
|
|
59
|
+
- [ReviewDog](https://github.com/reviewdog/action-eslint)
|
|
60
|
+
|
|
61
|
+
## ๐ Dependencies
|
|
62
|
+
|
|
63
|
+
- [Node.js](https://nodejs.org) 16 or later
|
|
64
|
+
- [Yarn](https://yarnpkg.com/) Optional/Recommended
|
|
65
|
+
- [ODG Message](https://github.com/ODGodinho/ODGMessage?n=dragonsgamers)
|
|
66
|
+
- [ODG TsConfig](https://github.com/ODGodinho/tsconfig?n=dragonsgamers) Last Version
|
|
67
|
+
- [ODG Exception](https://github.com/ODGodinho/ODGException?n=dragonsgamers) Last Version
|
|
68
|
+
|
|
69
|
+
## โฉ Get Started
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### ๐ Installation
|
|
74
|
+
|
|
75
|
+
```powershell
|
|
76
|
+
yarn add @odg/message @odg/axios axios
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### ๐ป Usage
|
|
80
|
+
|
|
81
|
+
For simple example usage, you can use [Inversify](https://www.npmjs.com/package/inversify) for Dependency Injection
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
import { type MessageInterface, type ResponseInterface } from "@odg/message";
|
|
85
|
+
|
|
86
|
+
class Test {
|
|
87
|
+
|
|
88
|
+
public constructor(
|
|
89
|
+
private readonly requester: MessageInterface
|
|
90
|
+
) {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public async example(): Promise<ResponseInterface<
|
|
94
|
+
unknown, // Reques Body
|
|
95
|
+
Record<string, unknown>, // Response Body
|
|
96
|
+
>> {
|
|
97
|
+
return this.requester.request({
|
|
98
|
+
url: "https://api.github.com/users/ODGodinho",
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
const test = new Test(new AxiosMessage({
|
|
107
|
+
// default options axios
|
|
108
|
+
}));
|
|
109
|
+
|
|
110
|
+
console.log(await test.example());
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### ๐ Start Project
|
|
114
|
+
|
|
115
|
+
First install dependencies with the following command
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
yarn install
|
|
119
|
+
# or
|
|
120
|
+
npm install
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## ๐จ Build and Run
|
|
124
|
+
|
|
125
|
+
To build the project, you can use the following command
|
|
126
|
+
|
|
127
|
+
> if you change files, you need to run `yarn build` and `yarn start` again
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
yarn build && yarn start
|
|
131
|
+
# or
|
|
132
|
+
yarn dev
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## ๐งช Teste Code
|
|
136
|
+
|
|
137
|
+
To Test execute this command
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
yarn test
|
|
141
|
+
# or
|
|
142
|
+
yarn test:watch
|
|
143
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type InterceptorManager, type RequestInterface, type ResponseInterface, type MessageInterface, type DefaultMessageConstructor } from "@odg/message";
|
|
2
|
+
import { type AxiosResponse } from "axios";
|
|
3
|
+
export declare class AxiosMessage<RequestData, ResponseData> implements MessageInterface<RequestData, ResponseData> {
|
|
4
|
+
readonly interceptors: {
|
|
5
|
+
request: InterceptorManager<RequestInterface<RequestData>>;
|
|
6
|
+
response: InterceptorManager<ResponseInterface<RequestData, ResponseData>>;
|
|
7
|
+
};
|
|
8
|
+
private readonly client;
|
|
9
|
+
constructor(config?: DefaultMessageConstructor<RequestData>);
|
|
10
|
+
request<RequestD = RequestData, ResponseD = ResponseData>(options: RequestInterface<RequestD>): Promise<ResponseInterface<RequestD, ResponseD>>;
|
|
11
|
+
parseResponseData<RequestD, ResponseD>(response: AxiosResponse<ResponseD, RequestD>): Promise<ResponseInterface<RequestD, ResponseD>>;
|
|
12
|
+
private requestException;
|
|
13
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AxiosMessage = void 0;
|
|
7
|
+
const exception_1 = require("@odg/exception");
|
|
8
|
+
const message_1 = require("@odg/message");
|
|
9
|
+
const axios_1 = __importDefault(require("axios"));
|
|
10
|
+
const AxiosInterceptorRequest_1 = require("./interceptors/AxiosInterceptorRequest");
|
|
11
|
+
const AxiosInterceptorResponse_1 = require("./interceptors/AxiosInterceptorResponse");
|
|
12
|
+
const AxiosParser_1 = require("./parser/AxiosParser");
|
|
13
|
+
const AxiosRequestParser_1 = require("./parser/AxiosRequestParser");
|
|
14
|
+
class AxiosMessage {
|
|
15
|
+
constructor(config) {
|
|
16
|
+
this.client = axios_1.default.create(config && AxiosRequestParser_1.AxiosRequestParser.parseMessageToLibrary(config));
|
|
17
|
+
this.interceptors = {
|
|
18
|
+
request: new AxiosInterceptorRequest_1.AxiosInterceptorRequest(this.client.interceptors.request),
|
|
19
|
+
response: new AxiosInterceptorResponse_1.AxiosInterceptorResponse(this.client.interceptors.response),
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
async request(options) {
|
|
23
|
+
try {
|
|
24
|
+
const response = await this.client.request(AxiosRequestParser_1.AxiosRequestParser.parseMessageToLibrary(options));
|
|
25
|
+
return await this.parseResponseData(response);
|
|
26
|
+
}
|
|
27
|
+
catch (error) {
|
|
28
|
+
throw await this.requestException(error);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async parseResponseData(response) {
|
|
32
|
+
return {
|
|
33
|
+
data: response.data,
|
|
34
|
+
status: response.status,
|
|
35
|
+
headers: AxiosParser_1.AxiosParser.parseHeaders(response.headers),
|
|
36
|
+
request: {
|
|
37
|
+
...response.config,
|
|
38
|
+
headers: AxiosParser_1.AxiosParser.parseHeaders(response.config.headers),
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
async requestException(error) {
|
|
43
|
+
const exceptionConverted = exception_1.Exception.convertToError(error);
|
|
44
|
+
if (!exceptionConverted)
|
|
45
|
+
return error;
|
|
46
|
+
const exception = new message_1.MessageException(exceptionConverted.message, exceptionConverted instanceof exception_1.Exception ? exceptionConverted.preview : undefined, undefined, axios_1.default.isAxiosError(error) ? error.request : undefined, axios_1.default.isAxiosError(error) && error.response ? await this.parseResponseData(error.response) : undefined);
|
|
47
|
+
Object.defineProperty(exception, "isAxiosError", {
|
|
48
|
+
configurable: true,
|
|
49
|
+
enumerable: false,
|
|
50
|
+
value: axios_1.default.isAxiosError(error),
|
|
51
|
+
writable: true,
|
|
52
|
+
});
|
|
53
|
+
return exception;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.AxiosMessage = AxiosMessage;
|
|
57
|
+
//# sourceMappingURL=AxiosMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosMessage.js","sourceRoot":"","sources":["../src/AxiosMessage.ts"],"names":[],"mappings":";;;;;;AACA,8CAA2C;AAC3C,0CAOsB;AACtB,kDAGe;AAEf,oFAAiF;AACjF,sFAAmF;AACnF,sDAAmD;AACnD,oEAAiE;AAEjE,MAAa,YAAY;IASrB,YAAmB,MAA+C;QAC9D,IAAI,CAAC,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC,MAAM,IAAI,uCAAkB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAAC;QAEvF,IAAI,CAAC,YAAY,GAAG;YAChB,OAAO,EAAE,IAAI,iDAAuB,CAChC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CACnC;YACD,QAAQ,EAAE,IAAI,mDAAwB,CAClC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,QAAQ,CACpC;SACJ,CAAC;IACN,CAAC;IAWM,KAAK,CAAC,OAAO,CAGlB,OAAmC;QACjC,IAAI;YACA,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CACtC,uCAAkB,CAAC,qBAAqB,CAAC,OAAO,CAAC,CACpD,CAAC;YAEF,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC;SACjD;QAAC,OAAO,KAAc,EAAE;YACrB,MAAM,MAAM,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;SAC5C;IACL,CAAC;IAUM,KAAK,CAAC,iBAAiB,CAC1B,QAA4C;QAE5C,OAAO;YACH,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,OAAO,EAAE,yBAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC;YACnD,OAAO,EAAE;gBACL,GAAG,QAAQ,CAAC,MAAM;gBAClB,OAAO,EAAE,yBAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC;aAC7D;SACJ,CAAC;IACN,CAAC;IASO,KAAK,CAAC,gBAAgB,CAAC,KAAc;QACzC,MAAM,kBAAkB,GAAG,qBAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC3D,IAAI,CAAC,kBAAkB;YAAE,OAAO,KAAc,CAAC;QAE/C,MAAM,SAAS,GAAG,IAAI,0BAAgB,CAClC,kBAAkB,CAAC,OAAO,EAC1B,kBAAkB,YAAY,qBAAS,CAAC,CAAC,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAChF,SAAS,EACT,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EACrD,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CACzG,CAAC;QACF,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE;YAC7C,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,KAAK;YACjB,KAAK,EAAE,eAAK,CAAC,YAAY,CAAC,KAAK,CAAC;YAChC,QAAQ,EAAE,IAAI;SACjB,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACrB,CAAC;CAEJ;AAhGD,oCAgGC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AxiosMessage";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./AxiosMessage"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type MessageInterceptorOptions, type onFulfilledTypo, type onRejectedTypo, type InterceptorManager, type RequestInterface } from "@odg/message";
|
|
2
|
+
import { type AxiosRequestConfig, type AxiosInterceptorManager } from "axios";
|
|
3
|
+
export declare class AxiosInterceptorRequest<RequestData> implements InterceptorManager<RequestInterface<RequestData>> {
|
|
4
|
+
private readonly interceptor;
|
|
5
|
+
constructor(interceptor: AxiosInterceptorManager<AxiosRequestConfig<RequestData>>);
|
|
6
|
+
use(onFulfilled?: onFulfilledTypo<RequestInterface<RequestData>>, onRejected?: onRejectedTypo, options?: MessageInterceptorOptions): number;
|
|
7
|
+
eject(id: number): void;
|
|
8
|
+
clear(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AxiosInterceptorRequest = void 0;
|
|
4
|
+
const AxiosRequestParser_1 = require("../parser/AxiosRequestParser");
|
|
5
|
+
class AxiosInterceptorRequest {
|
|
6
|
+
constructor(interceptor) {
|
|
7
|
+
this.interceptor = interceptor;
|
|
8
|
+
}
|
|
9
|
+
use(onFulfilled, onRejected, options) {
|
|
10
|
+
return this.interceptor.use(async (config) => {
|
|
11
|
+
if (!onFulfilled)
|
|
12
|
+
return config;
|
|
13
|
+
return {
|
|
14
|
+
...config,
|
|
15
|
+
...AxiosRequestParser_1.AxiosRequestParser.parseMessageToLibrary(await onFulfilled(await AxiosRequestParser_1.AxiosRequestParser.parseLibraryToMessage(config))),
|
|
16
|
+
};
|
|
17
|
+
}, onRejected, {
|
|
18
|
+
synchronous: options === null || options === void 0 ? void 0 : options.synchronous,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
eject(id) {
|
|
22
|
+
this.interceptor.eject(id);
|
|
23
|
+
}
|
|
24
|
+
clear() {
|
|
25
|
+
if ("clear" in this.interceptor) {
|
|
26
|
+
this.interceptor.clear();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AxiosInterceptorRequest = AxiosInterceptorRequest;
|
|
31
|
+
//# sourceMappingURL=AxiosInterceptorRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosInterceptorRequest.js","sourceRoot":"","sources":["../../src/interceptors/AxiosInterceptorRequest.ts"],"names":[],"mappings":";;;AAUA,qEAAkE;AAElE,MAAa,uBAAuB;IAEhC,YACqB,WAAqE;QAArE,gBAAW,GAAX,WAAW,CAA0D;IAE1F,CAAC;IAEM,GAAG,CACN,WAA4D,EAC5D,UAA2B,EAC3B,OAAmC;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACvB,KAAK,EAAE,MAAuC,EAAE,EAAE;YAC9C,IAAI,CAAC,WAAW;gBAAE,OAAO,MAAM,CAAC;YAEhC,OAAO;gBACH,GAAG,MAAM;gBACT,GAAG,uCAAkB,CAAC,qBAAqB,CACvC,MAAM,WAAW,CAAC,MAAM,uCAAkB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAC5E;aACJ,CAAC;QACN,CAAC,EACD,UAAU,EACV;YACI,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;SACpC,CACJ,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,EAAU;QACnB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IAEM,KAAK;QACR,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE;YAC5B,IAAI,CAAC,WAAW,CAAC,KAA0B,EAAE,CAAC;SAClD;IACL,CAAC;CAEJ;AAxCD,0DAwCC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type MessageInterceptorOptions, type onFulfilledTypo, type onRejectedTypo, type InterceptorManager, type ResponseInterface } from "@odg/message";
|
|
2
|
+
import { type AxiosInterceptorManager, type AxiosResponse } from "axios";
|
|
3
|
+
export declare class AxiosInterceptorResponse<RequestData, ResponseData> implements InterceptorManager<ResponseInterface<RequestData, ResponseData>> {
|
|
4
|
+
private readonly interceptor;
|
|
5
|
+
constructor(interceptor: AxiosInterceptorManager<AxiosResponse<ResponseData, RequestData>>);
|
|
6
|
+
use(onFulfilled?: onFulfilledTypo<ResponseInterface<RequestData, ResponseData>>, onRejected?: onRejectedTypo, options?: MessageInterceptorOptions): number;
|
|
7
|
+
eject(id: number): void;
|
|
8
|
+
clear(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AxiosInterceptorResponse = void 0;
|
|
4
|
+
const AxiosResponseParser_1 = require("../parser/AxiosResponseParser");
|
|
5
|
+
class AxiosInterceptorResponse {
|
|
6
|
+
constructor(interceptor) {
|
|
7
|
+
this.interceptor = interceptor;
|
|
8
|
+
}
|
|
9
|
+
use(onFulfilled, onRejected, options) {
|
|
10
|
+
return this.interceptor.use(onFulfilled && (async (config) => ({
|
|
11
|
+
...config,
|
|
12
|
+
...await AxiosResponseParser_1.AxiosResponseParser.parseMessageToLibrary(await onFulfilled(await AxiosResponseParser_1.AxiosResponseParser.parseLibraryToMessage(config))),
|
|
13
|
+
})), onRejected, {
|
|
14
|
+
synchronous: options === null || options === void 0 ? void 0 : options.synchronous,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
eject(id) {
|
|
18
|
+
this.interceptor.eject(id);
|
|
19
|
+
}
|
|
20
|
+
clear() {
|
|
21
|
+
if ("clear" in this.interceptor) {
|
|
22
|
+
this.interceptor.clear();
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.AxiosInterceptorResponse = AxiosInterceptorResponse;
|
|
27
|
+
//# sourceMappingURL=AxiosInterceptorResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosInterceptorResponse.js","sourceRoot":"","sources":["../../src/interceptors/AxiosInterceptorResponse.ts"],"names":[],"mappings":";;;AASA,uEAAoE;AAEpE,MAAa,wBAAwB;IAGjC,YACqB,WAA8E;QAA9E,gBAAW,GAAX,WAAW,CAAmE;IAEnG,CAAC;IAEM,GAAG,CACN,WAA2E,EAC3E,UAA2B,EAC3B,OAAmC;QAEnC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACvB,WAAW,IAAI,CAAC,KAAK,EACjB,MAAgD,EACC,EAAE,CAAC,CAAC;YACrD,GAAG,MAAM;YACT,GAAG,MAAM,yCAAmB,CAAC,qBAAqB,CAC9C,MAAM,WAAW,CAAC,MAAM,yCAAmB,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAC7E;SACJ,CAAC,CAAC,EACH,UAAU,EACV;YACI,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW;SACpC,CACJ,CAAC;IACN,CAAC;IAEM,KAAK,CAAC,EAAU;QACnB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IAEM,KAAK;QACR,IAAI,OAAO,IAAI,IAAI,CAAC,WAAW,EAAE;YAC5B,IAAI,CAAC,WAAW,CAAC,KAA0B,EAAE,CAAC;SAClD;IACL,CAAC;CAEJ;AAvCD,4DAuCC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type HttpHeadersInterface } from "@odg/message";
|
|
2
|
+
import { type AxiosResponseHeaders } from "axios";
|
|
3
|
+
export declare class AxiosParser {
|
|
4
|
+
static parseHeaders(headers?: unknown): HttpHeadersInterface;
|
|
5
|
+
protected static isAxiosHeaders(headers: unknown): headers is AxiosResponseHeaders;
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AxiosParser = void 0;
|
|
4
|
+
class AxiosParser {
|
|
5
|
+
static parseHeaders(headers) {
|
|
6
|
+
if (AxiosParser.isAxiosHeaders(headers) && typeof headers.toJSON === "function") {
|
|
7
|
+
return headers.toJSON(true);
|
|
8
|
+
}
|
|
9
|
+
return headers;
|
|
10
|
+
}
|
|
11
|
+
static isAxiosHeaders(headers) {
|
|
12
|
+
return !!(headers
|
|
13
|
+
&& typeof headers === "object");
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.AxiosParser = AxiosParser;
|
|
17
|
+
//# sourceMappingURL=AxiosParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosParser.js","sourceRoot":"","sources":["../../src/parser/AxiosParser.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;IAQb,MAAM,CAAC,YAAY,CAAC,OAAiB;QACxC,IAAI,WAAW,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,OAAO,OAAO,CAAC,MAAM,KAAK,UAAU,EAAE;YAC7E,OAAQ,OAAO,CAAC,MAA2B,CAAC,IAAI,CAAyB,CAAC;SAC7E;QAED,OAAO,OAA+B,CAAC;IAC3C,CAAC;IAQS,MAAM,CAAC,cAAc,CAAC,OAAgB;QAC5C,OAAO,CAAC,CAAC,CACL,OAAO;eACJ,OAAO,OAAO,KAAK,QAAQ,CACjC,CAAC;IACN,CAAC;CAEJ;AA7BD,kCA6BC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type RequestInterface } from "@odg/message";
|
|
2
|
+
import { type AxiosRequestConfig } from "axios";
|
|
3
|
+
export declare class AxiosRequestParser {
|
|
4
|
+
static parseMessageToLibrary<RequestD>(config: RequestInterface<RequestD>): AxiosRequestConfig<RequestD>;
|
|
5
|
+
static parseLibraryToMessage<RequestD>(config: AxiosRequestConfig<RequestD>): Promise<RequestInterface<RequestD>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AxiosRequestParser = void 0;
|
|
4
|
+
const AxiosParser_1 = require("./AxiosParser");
|
|
5
|
+
class AxiosRequestParser {
|
|
6
|
+
static parseMessageToLibrary(config) {
|
|
7
|
+
return Object.fromEntries(Object.entries({
|
|
8
|
+
url: config.url,
|
|
9
|
+
baseURL: config.baseURL,
|
|
10
|
+
method: config.method,
|
|
11
|
+
headers: config.headers,
|
|
12
|
+
params: config.params,
|
|
13
|
+
data: config.data,
|
|
14
|
+
timeout: config.timeout,
|
|
15
|
+
responseType: config.responseType,
|
|
16
|
+
maxContentLength: config.maxContentLength,
|
|
17
|
+
validateStatus: config.validateStatus,
|
|
18
|
+
maxBodyLength: config.maxBodyLength,
|
|
19
|
+
maxRedirects: config.maxRedirects,
|
|
20
|
+
socketPath: config.socketPath,
|
|
21
|
+
proxy: config.proxy,
|
|
22
|
+
}).filter(([, value]) => value !== undefined));
|
|
23
|
+
}
|
|
24
|
+
static async parseLibraryToMessage(config) {
|
|
25
|
+
return Object.fromEntries(Object.entries({
|
|
26
|
+
url: config.url,
|
|
27
|
+
baseURL: config.baseURL,
|
|
28
|
+
method: config.method,
|
|
29
|
+
headers: AxiosParser_1.AxiosParser.parseHeaders(config.headers),
|
|
30
|
+
data: config.data,
|
|
31
|
+
timeout: config.timeout,
|
|
32
|
+
responseType: config.responseType,
|
|
33
|
+
maxContentLength: config.maxContentLength,
|
|
34
|
+
validateStatus: config.validateStatus,
|
|
35
|
+
maxBodyLength: config.maxBodyLength,
|
|
36
|
+
maxRedirects: config.maxRedirects,
|
|
37
|
+
socketPath: config.socketPath,
|
|
38
|
+
proxy: config.proxy,
|
|
39
|
+
}).filter(([, value]) => value !== undefined));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.AxiosRequestParser = AxiosRequestParser;
|
|
43
|
+
//# sourceMappingURL=AxiosRequestParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosRequestParser.js","sourceRoot":"","sources":["../../src/parser/AxiosRequestParser.ts"],"names":[],"mappings":";;;AAGA,+CAA4C;AAE5C,MAAa,kBAAkB;IASpB,MAAM,CAAC,qBAAqB,CAC/B,MAAkC;QAElC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;YACrC,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,KAAK,EAAE,MAAM,CAAC,KAAK;SACtB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,AAAD,EAAG,KAAK,CAAE,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC;IACrD,CAAC;IASM,MAAM,CAAC,KAAK,CAAC,qBAAqB,CACrC,MAAoC;QAEpC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;YACrC,GAAG,EAAE,MAAM,CAAC,GAAG;YACf,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,OAAO,EAAE,yBAAW,CAAC,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;YAGjD,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;YACzC,cAAc,EAAE,MAAM,CAAC,cAAc;YACrC,aAAa,EAAE,MAAM,CAAC,aAAa;YACnC,YAAY,EAAE,MAAM,CAAC,YAAY;YACjC,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,KAAK,EAAE,MAAM,CAAC,KAAK;SACtB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,AAAD,EAAG,KAAK,CAAE,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC;IACrD,CAAC;CAEJ;AA3DD,gDA2DC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ResponseInterface } from "@odg/message";
|
|
2
|
+
import { type AxiosResponse } from "axios";
|
|
3
|
+
export declare class AxiosResponseParser {
|
|
4
|
+
static parseMessageToLibrary<RequestD, ResponseD>(response: ResponseInterface<RequestD, ResponseD>): Promise<AxiosResponse<ResponseD, RequestD>>;
|
|
5
|
+
static parseLibraryToMessage<RequestD, ResponseD>(response: AxiosResponse<ResponseD, RequestD>): Promise<ResponseInterface<RequestD, ResponseD>>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AxiosResponseParser = void 0;
|
|
7
|
+
const node_http_1 = __importDefault(require("node:http"));
|
|
8
|
+
const AxiosParser_1 = require("./AxiosParser");
|
|
9
|
+
const AxiosRequestParser_1 = require("./AxiosRequestParser");
|
|
10
|
+
class AxiosResponseParser {
|
|
11
|
+
static async parseMessageToLibrary(response) {
|
|
12
|
+
var _a;
|
|
13
|
+
return {
|
|
14
|
+
data: response.data,
|
|
15
|
+
status: response.status,
|
|
16
|
+
statusText: (_a = node_http_1.default.STATUS_CODES[response.status]) !== null && _a !== void 0 ? _a : "Unknown Status Code",
|
|
17
|
+
headers: AxiosParser_1.AxiosParser.parseHeaders(response.headers),
|
|
18
|
+
config: AxiosRequestParser_1.AxiosRequestParser.parseMessageToLibrary({
|
|
19
|
+
...response.request,
|
|
20
|
+
}),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
static async parseLibraryToMessage(response) {
|
|
24
|
+
return {
|
|
25
|
+
data: response.data,
|
|
26
|
+
status: response.status,
|
|
27
|
+
headers: response.headers,
|
|
28
|
+
request: await AxiosRequestParser_1.AxiosRequestParser.parseLibraryToMessage({
|
|
29
|
+
...response.config,
|
|
30
|
+
headers: AxiosParser_1.AxiosParser.parseHeaders(response.config.headers),
|
|
31
|
+
}),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.AxiosResponseParser = AxiosResponseParser;
|
|
36
|
+
//# sourceMappingURL=AxiosResponseParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AxiosResponseParser.js","sourceRoot":"","sources":["../../src/parser/AxiosResponseParser.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA6B;AAK7B,+CAA4C;AAC5C,6DAA0D;AAE1D,MAAa,mBAAmB;IAUrB,MAAM,CAAC,KAAK,CAAC,qBAAqB,CACrC,QAAgD;;QAEhD,OAAO;YACH,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,UAAU,EAAE,MAAA,mBAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,mCAAI,qBAAqB;YACvE,OAAO,EAAE,yBAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAoC;YACtF,MAAM,EAAE,uCAAkB,CAAC,qBAAqB,CAAC;gBAC7C,GAAG,QAAQ,CAAC,OAAO;aACtB,CAAC;SACL,CAAC;IACN,CAAC;IAUM,MAAM,CAAC,KAAK,CAAC,qBAAqB,CACrC,QAA4C;QAE5C,OAAO;YACH,IAAI,EAAE,QAAQ,CAAC,IAAI;YACnB,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,OAAO,EAAE,MAAM,uCAAkB,CAAC,qBAAqB,CAAC;gBACpD,GAAG,QAAQ,CAAC,MAAM;gBAClB,OAAO,EAAE,yBAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAuC;aACnG,CAAC;SACL,CAAC;IACN,CAAC;CAEJ;AA9CD,kDA8CC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/@odg/exception/dist/exceptions/Exception.d.ts","../node_modules/@odg/exception/dist/exceptions/UnknownException.d.ts","../node_modules/@odg/exception/dist/index.d.ts","../node_modules/@odg/message/dist/interfaces/headers.d.ts","../node_modules/@odg/message/dist/interfaces/options.d.ts","../node_modules/@odg/message/dist/interfaces/response.d.ts","../node_modules/@odg/message/dist/interfaces/request.d.ts","../node_modules/@odg/message/dist/interfaces/MessageInterface.d.ts","../node_modules/@odg/message/dist/messages/MessageException.d.ts","../node_modules/@odg/message/dist/index.d.ts","../node_modules/axios/index.d.cts","../src/parser/AxiosParser.ts","../src/parser/AxiosRequestParser.ts","../src/interceptors/AxiosInterceptorRequest.ts","../src/parser/AxiosResponseParser.ts","../src/interceptors/AxiosInterceptorResponse.ts","../src/AxiosMessage.ts","../src/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","impliedFormat":1},{"version":"7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","impliedFormat":1},{"version":"8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","impliedFormat":1},{"version":"5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","impliedFormat":1},{"version":"4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","impliedFormat":1},{"version":"1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","impliedFormat":1},{"version":"746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","impliedFormat":1},{"version":"d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17","impliedFormat":1},{"version":"aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c","impliedFormat":1},{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true,"impliedFormat":1},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true,"impliedFormat":1},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true,"impliedFormat":1},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true,"impliedFormat":1},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true,"impliedFormat":1},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true,"impliedFormat":1},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true,"impliedFormat":1},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true,"impliedFormat":1},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true,"impliedFormat":1},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true,"impliedFormat":1},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true,"impliedFormat":1},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true,"impliedFormat":1},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true,"impliedFormat":1},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true,"impliedFormat":1},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true,"impliedFormat":1},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true,"impliedFormat":1},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true,"impliedFormat":1},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true,"impliedFormat":1},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true,"impliedFormat":1},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true,"impliedFormat":1},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true,"impliedFormat":1},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true,"impliedFormat":1},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true,"impliedFormat":1},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"efe61d7b21583bf2b54e1a628d4255d7e6d9cc3452bd15ade174f729e6f047a0","impliedFormat":1},{"version":"6bb8480771517b68dc8c48553fe615e0bc38d9df1572bfa45e5db9844ef76776","impliedFormat":1},{"version":"1df58ba1cc41c4166dcbe53efd88611b9ddf5a27f33f4eb88a9189ea2ea56473","impliedFormat":1},{"version":"59ca51b028bd2f73ee8bae61cad63337d8dac1dca7df3e387dab041c7246c60e","impliedFormat":1},{"version":"444c5719fedd51a6caf386f951caa39b26106fd020519d40b1f9b40a42327e5b","impliedFormat":1},{"version":"111bcb69339040b4ab26a0c8a9e672e1530cd788f3a6d10119aabd073b67268a","impliedFormat":1},{"version":"f3e0bbbb1905f3aa7870140a725ffefda948747cbf67fbe8e037bfa65ce1e6b5","impliedFormat":1},{"version":"d83ef2663cabe4cb5dec0f9936caac60f7efe02f94b8775cc0df16f31b6a6835","impliedFormat":1},{"version":"df314da1a78365c92f1c47129b4a06441b1d5387ef2c6d93877a393b56292222","impliedFormat":1},{"version":"b2883435956fe5edc9fe692b8d00630e96c5f7e1bd2204591d0efb9b4c7c9420","impliedFormat":1},{"version":"b3db97d0c42500141db9f93525d27ba8bdae17eb87fa29c940b5345ee9308ab9","impliedFormat":1},{"version":"999ecabd77bf04d6e398d6392134ef0a4ee842f984899abab6030bc50090d03b","signature":"fa31331388a633ec3a70455cea954f4962c2cf1a889cfac9239fdbce2ff92e99","impliedFormat":1},{"version":"e5bb8bf4d45def380d73c1c2d166050c16a714286d14b938b18ca8813baac941","signature":"73ba17946917cb56a4897ee1e666984ca97ad6f2d51e69e241dc5316b4512c15","impliedFormat":1},{"version":"c61ecc41dfcfe9ea172939e1f67fdf201d95192d4b74d9d52a59be81c1ffb6c5","signature":"236cf1d9a538a5133b55e5c3d551ca6933e757662c68b53d35c0d75cf91b5393","impliedFormat":1},{"version":"5e7448b6cc635791f95f7cc6572269d3724c6e6084d1a6ab11cbec9d1d07dc10","signature":"8fb16f43bffbca6f53ead423225ce09c9b022b94193379c47031f4105552cd88","impliedFormat":1},{"version":"ca6524dbd56f5fe873ca6662dc6f02ab31b96ac0bbffff57ab647d058a08f301","signature":"fe0e5449c94755c07d4099e6a5b72dab7a388d0894797fdf1c0663ff0b44046e","impliedFormat":1},{"version":"68a06b7c1227d38975b8fe1a0d12b13a5e6961aff93b909195099c147b166962","signature":"b00807be77c6d146462545ff50fe7da1f2fc49f69ae041dfb58e70ffb9a525e9","impliedFormat":1},{"version":"ad447c18ab716926aea7b3aedfe8c2b158e26034a8a46ec5c358a74c0969a363","impliedFormat":1},{"version":"4911d4c3a7f7c11bad0e2cec329a19a385d10ea83b0b69c76e032359e388f624","impliedFormat":1},{"version":"a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a","impliedFormat":1},{"version":"4f6463a60e5754bbc4a864b2aaf8fecb7706b96a21b88f27b534589b801978b6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0","impliedFormat":1},{"version":"4ffef5c4698e94e49dcf150e3270bad2b24a2aeab48b24acbe7c1366edff377d","affectsGlobalScope":true,"impliedFormat":1},{"version":"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","impliedFormat":1},{"version":"afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565","impliedFormat":1},{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true,"impliedFormat":1},{"version":"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","impliedFormat":1},{"version":"062c2c62d4fdd3a7968346fe113ad66fac6a7fc2ca52244c4433db611a1e4ef7","impliedFormat":1},{"version":"f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","impliedFormat":1},{"version":"8bd106053ee0345dde7f626ed1f6100a89fb85f13ea65352627cf78c5f30c553","impliedFormat":1},{"version":"76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","impliedFormat":1},{"version":"0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","impliedFormat":1},{"version":"06ccebc2c2db57d6bdbca63b71c4ae5e6ddc42d972fd8f122d4c1a28aa111b25","impliedFormat":1},{"version":"81e8508d1e82278f5d3fee936f267e00c308af36219bfcee2631f9513c9c4017","affectsGlobalScope":true,"impliedFormat":1},{"version":"413a4be7f94f631235bbc83dad36c4d15e5a2ff02bca1efdbd03636d6454631b","impliedFormat":1},{"version":"20c468256fd68d3ef1fa53526e76d51d6aa91711e84d72c0343589b99238287e","impliedFormat":1},{"version":"4198acced75d48a039c078734c4efca7788ff8c78609c270a2b63ec20e3e1676","impliedFormat":1},{"version":"8d4c16a26d59e3ce49741a7d4a6e8206b884e226cf308667c7778a0b2c0fee7f","impliedFormat":1},{"version":"ee3bad055a79f188626b1a7046f04ab151fdd3581e55c51d32face175bd9d06f","impliedFormat":1},{"version":"d61c7c41eb1960b1285e242fd102c162b65c0522985b839fadda59874308a170","impliedFormat":1},{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true,"impliedFormat":1},{"version":"1805e0e4d1ed00f6361db25dff6887c7fa9b5b39f32599a34e8551da7daaa9c2","impliedFormat":1},{"version":"abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","impliedFormat":1},{"version":"fb0989383c6109f20281b3d31265293daefdd76d0d30551782c1654e93704f48","impliedFormat":1},{"version":"a4210a84a82b3e7a8cec5b2f3616e46d523f4f10cc1576d8f2fb89d0987b341e","impliedFormat":1},{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","impliedFormat":1},{"version":"22d48bfb37261136423ac687f1fa7bd4dda3083f767416d409a8260cf92bc8fc","impliedFormat":1},{"version":"29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","impliedFormat":1},{"version":"0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","impliedFormat":1},{"version":"95518ff86843e226b62a800f679f6968ad8dac8ccbe30fbfe63de3afb13761a2","impliedFormat":1},{"version":"1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","impliedFormat":1},{"version":"698ab660b477b9c2cd5ccbd99e7e7df8b4a6134c1f5711fa615ed7aab51cb7f7","impliedFormat":1},{"version":"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","impliedFormat":1},{"version":"c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637","impliedFormat":1},{"version":"a4471d2bdba495b2a6a30b8765d5e0282fa7009d88345a9528f73c37869d3b93","impliedFormat":1},{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true,"impliedFormat":1},{"version":"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","impliedFormat":1},{"version":"c9d70d3d7191a66a81cb554557f8ed1cf736ea8397c44a864fe52689de18865a","impliedFormat":1},{"version":"998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","impliedFormat":1},{"version":"ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4","impliedFormat":1},{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true,"impliedFormat":1},{"version":"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","impliedFormat":1},{"version":"c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","impliedFormat":1},{"version":"235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","impliedFormat":1},{"version":"bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","impliedFormat":1},{"version":"9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","impliedFormat":1},{"version":"c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"88003d9ab15507806f41b120be6d407c1afe566c2f6689ebe3a034dd5ec0c8dc","impliedFormat":1},{"version":"a7321c0e96eecb19dcbf178493836474cef21ee3f9345384ce9d74e4be31228d","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"3054ef91b855e005b9c4681399e9d64d2a7b07a22d539314d794f09e53b876a7","impliedFormat":1},{"version":"427ce5854885cfc34387e09de05c1d5c1acf94c2143e1693f1d9ff54880573e7","impliedFormat":1},{"version":"bed2c4f96fab3348be4a34d88dcb12578c1b2475b07c6acd369e99e227718d81","impliedFormat":1},{"version":"e3ba509d3dce019b3190ceb2f3fc88e2610ab717122dabd91a9efaa37804040d","impliedFormat":1},{"version":"9ac9b7b349a96ff204f4172183cca1672cc402e1ee7277bfcdec96c000b7d818","impliedFormat":1},{"version":"ac127e4c6f2b5220b293cc9d2e64ba49781225b792a51cda50f3db8eafba550c","impliedFormat":1},{"version":"0c3b45b6a42c0074fadd59c5d370592ca48c89a706d903452565ca89b1b2c164","affectsGlobalScope":true,"impliedFormat":1}],"options":{"alwaysStrict":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":100,"newLine":1,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitReturns":true,"noImplicitThis":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"sourceMap":true,"strict":true,"strictFunctionTypes":true,"strictNullChecks":true,"strictPropertyInitialization":true,"target":5},"fileIdsList":[[118],[118,128],[56,118],[56,57,118],[59,60,61,62,63,64,118],[61,62,118],[59,60,61,118],[59,62,118],[58,61,62,118],[118,130,133],[74,118],[77,118],[78,83,109,118],[79,89,90,97,106,117,118],[79,80,89,97,118],[81,118],[82,83,90,98,118],[83,106,114,118],[84,86,89,97,118],[85,118],[86,87,118],[88,89,118],[89,118],[89,90,91,106,117,118],[89,90,91,106,118],[92,97,106,117,118],[89,90,92,93,97,106,114,117,118],[92,94,106,114,117,118],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124],[89,95,118],[96,117,118],[86,89,97,106,118],[98,118],[99,118],[77,100,118],[101,116,118,122],[102,118],[103,118],[89,104,118],[104,105,118,120],[78,89,106,107,108,118],[78,106,108,118],[106,107,118],[109,118],[110,118],[89,112,113,118],[112,113,118],[83,97,114,118],[115,118],[97,116,118],[78,92,103,117,118],[83,118],[106,118,119],[118,120],[118,121],[78,83,89,91,100,106,117,118,120,122],[106,118,123],[118,126,132],[118,130],[118,127,131],[118,129],[58,65,66,67,68,69,71,118],[72,118],[65,66,68,118],[65,66,70,118],[65,66,118],[65,66,67,118],[65,66,67,68,92,118],[65,66]],"referencedMap":[[126,1],[129,2],[56,1],[57,3],[58,4],[65,5],[63,6],[59,1],[60,1],[62,7],[61,8],[64,9],[128,1],[134,10],[74,11],[75,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,18],[84,19],[85,20],[86,21],[87,21],[88,22],[89,23],[90,24],[91,25],[76,1],[124,1],[92,26],[93,27],[94,28],[125,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,37],[103,38],[104,39],[105,40],[106,41],[108,42],[107,43],[109,44],[110,45],[111,1],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[122,56],[123,57],[66,1],[127,1],[133,58],[131,59],[132,60],[130,61],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[72,62],[73,63],[69,64],[71,65],[67,66],[68,67],[70,68]],"exportedModulesMap":[[126,1],[129,2],[56,1],[57,3],[58,4],[65,5],[63,6],[59,1],[60,1],[62,7],[61,8],[64,9],[128,1],[134,10],[74,11],[75,11],[77,12],[78,13],[79,14],[80,15],[81,16],[82,17],[83,18],[84,19],[85,20],[86,21],[87,21],[88,22],[89,23],[90,24],[91,25],[76,1],[124,1],[92,26],[93,27],[94,28],[125,29],[95,30],[96,31],[97,32],[98,33],[99,34],[100,35],[101,36],[102,37],[103,38],[104,39],[105,40],[106,41],[108,42],[107,43],[109,44],[110,45],[111,1],[112,46],[113,47],[114,48],[115,49],[116,50],[117,51],[118,52],[119,53],[120,54],[121,55],[122,56],[123,57],[66,1],[127,1],[133,58],[131,59],[132,60],[130,61],[11,1],[13,1],[12,1],[2,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[3,1],[4,1],[25,1],[22,1],[23,1],[24,1],[26,1],[27,1],[28,1],[5,1],[29,1],[30,1],[31,1],[32,1],[6,1],[36,1],[33,1],[34,1],[35,1],[37,1],[7,1],[38,1],[43,1],[44,1],[39,1],[40,1],[41,1],[42,1],[8,1],[48,1],[45,1],[46,1],[47,1],[49,1],[9,1],[50,1],[51,1],[52,1],[53,1],[54,1],[1,1],[10,1],[55,1],[72,69],[73,63],[69,69],[71,69],[67,69],[68,69],[70,69]],"semanticDiagnosticsPerFile":[126,129,56,57,58,65,63,59,60,62,61,64,128,134,74,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,76,124,92,93,94,125,95,96,97,98,99,100,101,102,103,104,105,106,108,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,66,127,133,131,132,130,11,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,43,44,39,40,41,42,8,48,45,46,47,49,9,50,51,52,53,54,1,10,55,72,73,69,71,67,68,70]},"version":"4.9.4"}
|
package/package.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@odg/axios",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Project Axios using IoC and DI",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"homepage": "",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": ""
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "rimraf build && tsc --project ./tsconfig.build.json",
|
|
14
|
+
"build:watch": "rimraf build && tsc --project ./tsconfig.build.json -w",
|
|
15
|
+
"dev": "ts-node ./src/index.ts",
|
|
16
|
+
"start": "node ./dist/index.ts",
|
|
17
|
+
"lint": "eslint .",
|
|
18
|
+
"lint:fix": "eslint . --fix",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"test:ci": "jest --ci --passWithNoTests",
|
|
21
|
+
"test:watch": "jest --watchAll"
|
|
22
|
+
},
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"release": {
|
|
27
|
+
"branches": [
|
|
28
|
+
"+([0-9])?(.{+([0-9]),x}).x",
|
|
29
|
+
"main",
|
|
30
|
+
"master",
|
|
31
|
+
"next",
|
|
32
|
+
"next-major",
|
|
33
|
+
{
|
|
34
|
+
"name": "beta",
|
|
35
|
+
"prerelease": true
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "alpha",
|
|
39
|
+
"prerelease": true
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"plugins": [
|
|
43
|
+
"@semantic-release/commit-analyzer",
|
|
44
|
+
"@semantic-release/release-notes-generator",
|
|
45
|
+
"@semantic-release/npm",
|
|
46
|
+
"@semantic-release/github"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"./dist/",
|
|
51
|
+
"./README.md"
|
|
52
|
+
],
|
|
53
|
+
"author": "Dragons Gamers <https://www.linkedin.com/in/victor-alves-odgodinho>",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@odg/eslint-config": "*",
|
|
57
|
+
"@types/jest": "^29.2.2",
|
|
58
|
+
"@types/node": "^16",
|
|
59
|
+
"eslint": "*",
|
|
60
|
+
"jest": "^29.2.2",
|
|
61
|
+
"rimraf": "^3.0.2",
|
|
62
|
+
"semantic-release": "^19.0.5",
|
|
63
|
+
"ts-jest": "^29.0.3",
|
|
64
|
+
"ts-node": "^10.9.1",
|
|
65
|
+
"typescript": "^4.8.4"
|
|
66
|
+
},
|
|
67
|
+
"dependencies": {
|
|
68
|
+
"@odg/exception": "^1.0.0",
|
|
69
|
+
"@odg/message": "*",
|
|
70
|
+
"@odg/tsconfig": "*",
|
|
71
|
+
"axios": "*"
|
|
72
|
+
}
|
|
73
|
+
}
|