aziosxjs 0.1.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.
Files changed (53) hide show
  1. package/README.md +0 -0
  2. package/dist/adapters/httpAdapter.d.ts +0 -0
  3. package/dist/adapters/httpAdapter.js +2 -0
  4. package/dist/adapters/httpAdapter.js.map +1 -0
  5. package/dist/adapters/index.d.ts +0 -0
  6. package/dist/adapters/index.js +2 -0
  7. package/dist/adapters/index.js.map +1 -0
  8. package/dist/adapters/xhrAdapter.d.ts +0 -0
  9. package/dist/adapters/xhrAdapter.js +2 -0
  10. package/dist/adapters/xhrAdapter.js.map +1 -0
  11. package/dist/config/mergeConfig.d.ts +0 -0
  12. package/dist/config/mergeConfig.js +2 -0
  13. package/dist/config/mergeConfig.js.map +1 -0
  14. package/dist/core/Azios.d.ts +13 -0
  15. package/dist/core/Azios.js +37 -0
  16. package/dist/core/Azios.js.map +1 -0
  17. package/dist/core/createInstance.d.ts +3 -0
  18. package/dist/core/createInstance.js +18 -0
  19. package/dist/core/createInstance.js.map +1 -0
  20. package/dist/core/dispatchRequest.d.ts +3 -0
  21. package/dist/core/dispatchRequest.js +51 -0
  22. package/dist/core/dispatchRequest.js.map +1 -0
  23. package/dist/core/requestMethods.d.ts +0 -0
  24. package/dist/core/requestMethods.js +2 -0
  25. package/dist/core/requestMethods.js.map +1 -0
  26. package/dist/errors/AziosError.d.ts +7 -0
  27. package/dist/errors/AziosError.js +11 -0
  28. package/dist/errors/AziosError.js.map +1 -0
  29. package/dist/helpers/buildURL.d.ts +0 -0
  30. package/dist/helpers/buildURL.js +2 -0
  31. package/dist/helpers/buildURL.js.map +1 -0
  32. package/dist/helpers/normalizeHeaders.d.ts +0 -0
  33. package/dist/helpers/normalizeHeaders.js +2 -0
  34. package/dist/helpers/normalizeHeaders.js.map +1 -0
  35. package/dist/helpers/parseHeaders.d.ts +0 -0
  36. package/dist/helpers/parseHeaders.js +2 -0
  37. package/dist/helpers/parseHeaders.js.map +1 -0
  38. package/dist/index.d.ts +2 -0
  39. package/dist/index.js +8 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/interceptors/InterceptorManager.d.ts +12 -0
  42. package/dist/interceptors/InterceptorManager.js +23 -0
  43. package/dist/interceptors/InterceptorManager.js.map +1 -0
  44. package/dist/types/config.d.ts +9 -0
  45. package/dist/types/config.js +3 -0
  46. package/dist/types/config.js.map +1 -0
  47. package/dist/types/request.d.ts +8 -0
  48. package/dist/types/request.js +3 -0
  49. package/dist/types/request.js.map +1 -0
  50. package/dist/types/response.d.ts +9 -0
  51. package/dist/types/response.js +3 -0
  52. package/dist/types/response.js.map +1 -0
  53. package/package.json +16 -0
package/README.md ADDED
File without changes
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=httpAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"httpAdapter.js","sourceRoot":"","sources":["../../src/adapters/httpAdapter.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=xhrAdapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xhrAdapter.js","sourceRoot":"","sources":["../../src/adapters/xhrAdapter.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=mergeConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeConfig.js","sourceRoot":"","sources":["../../src/config/mergeConfig.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { AziosRequestConfig } from "../types/config";
2
+ import InterceptorManager from "../interceptors/InterceptorManager";
3
+ export default class Azios {
4
+ defaults: AziosRequestConfig;
5
+ interceptors: {
6
+ request: InterceptorManager<AziosRequestConfig>;
7
+ response: InterceptorManager<any>;
8
+ };
9
+ constructor(config: AziosRequestConfig);
10
+ request(config: AziosRequestConfig): Promise<import("../types/response").AziosResponse<any>>;
11
+ get(url: string, config?: AziosRequestConfig): Promise<import("../types/response").AziosResponse<any>>;
12
+ post(url: string, data?: any, config?: AziosRequestConfig): Promise<import("../types/response").AziosResponse<any>>;
13
+ }
@@ -0,0 +1,37 @@
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
+ const dispatchRequest_1 = __importDefault(require("./dispatchRequest"));
7
+ const InterceptorManager_1 = __importDefault(require("../interceptors/InterceptorManager"));
8
+ class Azios {
9
+ constructor(config) {
10
+ this.defaults = config;
11
+ this.interceptors = {
12
+ request: new InterceptorManager_1.default(),
13
+ response: new InterceptorManager_1.default()
14
+ };
15
+ }
16
+ request(config) {
17
+ config = { ...this.defaults, ...config };
18
+ return (0, dispatchRequest_1.default)(config);
19
+ }
20
+ get(url, config) {
21
+ return this.request({
22
+ ...config,
23
+ method: "GET",
24
+ url
25
+ });
26
+ }
27
+ post(url, data, config) {
28
+ return this.request({
29
+ ...config,
30
+ method: "POST",
31
+ url,
32
+ data
33
+ });
34
+ }
35
+ }
36
+ exports.default = Azios;
37
+ //# sourceMappingURL=Azios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Azios.js","sourceRoot":"","sources":["../../src/core/Azios.ts"],"names":[],"mappings":";;;;;AAAA,wEAA+C;AAE/C,4FAAmE;AAEnE,MAAqB,KAAK;IASxB,YAAY,MAA0B;QAEpC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAA;QAEtB,IAAI,CAAC,YAAY,GAAG;YAClB,OAAO,EAAE,IAAI,4BAAkB,EAAE;YACjC,QAAQ,EAAE,IAAI,4BAAkB,EAAE;SACnC,CAAA;IACH,CAAC;IAED,OAAO,CAAC,MAA0B;QAEhC,MAAM,GAAG,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAA;QAExC,OAAO,IAAA,yBAAe,EAAC,MAAM,CAAC,CAAA;IAChC,CAAC;IAED,GAAG,CAAC,GAAW,EAAE,MAA2B;QAE1C,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,GAAG,MAAM;YACT,MAAM,EAAE,KAAK;YACb,GAAG;SACJ,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CAAC,GAAW,EAAE,IAAU,EAAE,MAA2B;QAEvD,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,GAAG,MAAM;YACT,MAAM,EAAE,MAAM;YACd,GAAG;YACH,IAAI;SACL,CAAC,CAAA;IACJ,CAAC;CAEF;AA7CD,wBA6CC"}
@@ -0,0 +1,3 @@
1
+ import { AziosRequestConfig } from "../types/config";
2
+ import { AziosInstance } from "../types/request";
3
+ export declare function createInstance(config: AziosRequestConfig): AziosInstance;
@@ -0,0 +1,18 @@
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.createInstance = createInstance;
7
+ const Azios_1 = __importDefault(require("./Azios"));
8
+ function createInstance(config) {
9
+ const context = new Azios_1.default(config);
10
+ const instance = Azios_1.default.prototype.request.bind(context);
11
+ Object.getOwnPropertyNames(Azios_1.default.prototype).forEach(method => {
12
+ if (method !== "constructor") {
13
+ instance[method] = Azios_1.default.prototype[method].bind(context);
14
+ }
15
+ });
16
+ return instance;
17
+ }
18
+ //# sourceMappingURL=createInstance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createInstance.js","sourceRoot":"","sources":["../../src/core/createInstance.ts"],"names":[],"mappings":";;;;;AAIA,wCAgBC;AApBD,oDAA2B;AAI3B,SAAgB,cAAc,CAAC,MAA0B;IAEvD,MAAM,OAAO,GAAG,IAAI,eAAK,CAAC,MAAM,CAAC,CAAA;IAEjC,MAAM,QAAQ,GAAG,eAAK,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAkB,CAAA;IAEvE,MAAM,CAAC,mBAAmB,CAAC,eAAK,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;QAE3D,IAAI,MAAM,KAAK,aAAa,EAAE,CAAC;YAC5B,QAAgB,CAAC,MAAM,CAAC,GAAI,eAAK,CAAC,SAAiB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC5E,CAAC;IAEH,CAAC,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AAEjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { AziosRequestConfig } from "../types/config";
2
+ import { AziosResponse } from "../types/response";
3
+ export default function dispatchRequest(config: AziosRequestConfig): Promise<AziosResponse<any>>;
@@ -0,0 +1,51 @@
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.default = dispatchRequest;
7
+ const http_1 = __importDefault(require("http"));
8
+ const https_1 = __importDefault(require("https"));
9
+ const url_1 = require("url");
10
+ function dispatchRequest(config) {
11
+ return new Promise((resolve, reject) => {
12
+ const fullURL = config.baseURL
13
+ ? config.baseURL + config.url
14
+ : config.url;
15
+ const parsedURL = new url_1.URL(fullURL);
16
+ const isHttps = parsedURL.protocol === "https:";
17
+ const options = {
18
+ hostname: parsedURL.hostname,
19
+ port: parsedURL.port || (isHttps ? 443 : 80),
20
+ path: parsedURL.pathname + parsedURL.search,
21
+ method: config.method || "GET",
22
+ headers: config.headers || {}
23
+ };
24
+ const transport = isHttps ? https_1.default : http_1.default;
25
+ const req = transport.request(options, res => {
26
+ let data = "";
27
+ res.on("data", chunk => {
28
+ data += chunk;
29
+ });
30
+ res.on("end", () => {
31
+ const response = {
32
+ data: data,
33
+ status: res.statusCode || 0,
34
+ statusText: res.statusMessage || "",
35
+ headers: res.headers,
36
+ config,
37
+ request: req
38
+ };
39
+ resolve(response);
40
+ });
41
+ });
42
+ req.on("error", err => {
43
+ reject(err);
44
+ });
45
+ if (config.data) {
46
+ req.write(JSON.stringify(config.data));
47
+ }
48
+ req.end();
49
+ });
50
+ }
51
+ //# sourceMappingURL=dispatchRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatchRequest.js","sourceRoot":"","sources":["../../src/core/dispatchRequest.ts"],"names":[],"mappings":";;;;;AAOA,kCA2DC;AAlED,gDAAuB;AACvB,kDAAyB;AACzB,6BAAyB;AAKzB,SAAwB,eAAe,CAAC,MAA0B;IAEhE,OAAO,IAAI,OAAO,CAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAEpD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO;YAC5B,CAAC,CAAC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,GAAG;YAC7B,CAAC,CAAC,MAAM,CAAC,GAAG,CAAA;QAEd,MAAM,SAAS,GAAG,IAAI,SAAG,CAAC,OAAQ,CAAC,CAAA;QAEnC,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAE/C,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,SAAS,CAAC,QAAQ;YAC5B,IAAI,EAAE,SAAS,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5C,IAAI,EAAE,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,MAAM;YAC3C,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,KAAK;YAC9B,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;SAC9B,CAAA;QAED,MAAM,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,eAAK,CAAC,CAAC,CAAC,cAAI,CAAA;QAExC,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE;YAE3C,IAAI,IAAI,GAAG,EAAE,CAAA;YAEb,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;gBACrB,IAAI,IAAI,KAAK,CAAA;YACf,CAAC,CAAC,CAAA;YAEF,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;gBAEjB,MAAM,QAAQ,GAAkB;oBAC9B,IAAI,EAAE,IAAI;oBACV,MAAM,EAAE,GAAG,CAAC,UAAU,IAAI,CAAC;oBAC3B,UAAU,EAAE,GAAG,CAAC,aAAa,IAAI,EAAE;oBACnC,OAAO,EAAE,GAAG,CAAC,OAAO;oBACpB,MAAM;oBACN,OAAO,EAAE,GAAG;iBACb,CAAA;gBAED,OAAO,CAAC,QAAQ,CAAC,CAAA;YAEnB,CAAC,CAAC,CAAA;QAEJ,CAAC,CAAC,CAAA;QAEF,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,CAAC,EAAE;YACpB,MAAM,CAAC,GAAG,CAAC,CAAA;QACb,CAAC,CAAC,CAAA;QAEF,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAA;QACxC,CAAC;QAED,GAAG,CAAC,GAAG,EAAE,CAAA;IAEX,CAAC,CAAC,CAAA;AAEJ,CAAC"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=requestMethods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestMethods.js","sourceRoot":"","sources":["../../src/core/requestMethods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare class AziosError extends Error {
2
+ config: any;
3
+ code?: string;
4
+ request?: any;
5
+ response?: any;
6
+ constructor(message: string, config: any);
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AziosError = void 0;
4
+ class AziosError extends Error {
5
+ constructor(message, config) {
6
+ super(message);
7
+ this.config = config;
8
+ }
9
+ }
10
+ exports.AziosError = AziosError;
11
+ //# sourceMappingURL=AziosError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AziosError.js","sourceRoot":"","sources":["../../src/errors/AziosError.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAW,SAAQ,KAAK;IAMnC,YAAY,OAAe,EAAE,MAAW;QACtC,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;CACF;AAVD,gCAUC"}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=buildURL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildURL.js","sourceRoot":"","sources":["../../src/helpers/buildURL.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=normalizeHeaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeHeaders.js","sourceRoot":"","sources":["../../src/helpers/normalizeHeaders.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=parseHeaders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseHeaders.js","sourceRoot":"","sources":["../../src/helpers/parseHeaders.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ declare const azios: import("./types/request").AziosInstance;
2
+ export default azios;
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const createInstance_1 = require("./core/createInstance");
4
+ const azios = (0, createInstance_1.createInstance)({
5
+ url: ""
6
+ });
7
+ exports.default = azios;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA,0DAAsD;AAEtD,MAAM,KAAK,GAAG,IAAA,+BAAc,EAAC;IAC3B,GAAG,EAAE,EAAE;CACR,CAAC,CAAA;AAEF,kBAAe,KAAK,CAAA"}
@@ -0,0 +1,12 @@
1
+ type FulfilledFn<T> = (val: T) => T | Promise<T>;
2
+ type RejectedFn = (error: any) => any;
3
+ interface Interceptor<T> {
4
+ fulfilled: FulfilledFn<T>;
5
+ rejected?: RejectedFn;
6
+ }
7
+ export default class InterceptorManager<T> {
8
+ private handlers;
9
+ use(fulfilled: FulfilledFn<T>, rejected?: RejectedFn): number;
10
+ forEach(fn: (interceptor: Interceptor<T>) => void): void;
11
+ }
12
+ export {};
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class InterceptorManager {
4
+ constructor() {
5
+ this.handlers = [];
6
+ }
7
+ use(fulfilled, rejected) {
8
+ this.handlers.push({
9
+ fulfilled,
10
+ rejected
11
+ });
12
+ return this.handlers.length - 1;
13
+ }
14
+ forEach(fn) {
15
+ this.handlers.forEach(h => {
16
+ if (h !== null) {
17
+ fn(h);
18
+ }
19
+ });
20
+ }
21
+ }
22
+ exports.default = InterceptorManager;
23
+ //# sourceMappingURL=InterceptorManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterceptorManager.js","sourceRoot":"","sources":["../../src/interceptors/InterceptorManager.ts"],"names":[],"mappings":";;AAQA,MAAqB,kBAAkB;IAAvC;QAEU,aAAQ,GAAiC,EAAE,CAAA;IAmBrD,CAAC;IAjBC,GAAG,CAAC,SAAyB,EAAE,QAAqB;QAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YACjB,SAAS;YACT,QAAQ;SACT,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAA;IACjC,CAAC;IAED,OAAO,CAAC,EAAyC;QAC/C,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YACxB,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC;gBACf,EAAE,CAAC,CAAC,CAAC,CAAA;YACP,CAAC;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CAEF;AArBD,qCAqBC"}
@@ -0,0 +1,9 @@
1
+ export interface AziosRequestConfig {
2
+ url: string;
3
+ method?: string;
4
+ baseURL?: string;
5
+ headers?: Record<string, any>;
6
+ params?: Record<string, any>;
7
+ data?: any;
8
+ timeout?: number;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import { AziosRequestConfig } from "./config";
2
+ import { AziosResponse } from "./response";
3
+ export interface AziosInstance {
4
+ (config: AziosRequestConfig): Promise<AziosResponse>;
5
+ request(config: AziosRequestConfig): Promise<AziosResponse>;
6
+ get(url: string, config?: AziosRequestConfig): Promise<AziosResponse>;
7
+ post(url: string, data?: any, config?: AziosRequestConfig): Promise<AziosResponse>;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/types/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ import { AziosRequestConfig } from "./config";
2
+ export interface AziosResponse<T = any> {
3
+ data: T;
4
+ status: number;
5
+ statusText: string;
6
+ headers: any;
7
+ config: AziosRequestConfig;
8
+ request?: any;
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/types/response.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "aziosxjs",
3
+ "version": "0.1.0",
4
+ "description": "Lightweight HTTP client inspired by axios",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "keywords": ["http", "client", "axios", "request"],
14
+ "author": "Azeem Ali",
15
+ "license": "MIT"
16
+ }