@nimee/api-clients 0.0.2 → 0.0.4

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.
@@ -0,0 +1,7 @@
1
+ export declare class EventClient {
2
+ getEventById(params: {
3
+ token: string;
4
+ accountId: string;
5
+ eventId: string;
6
+ }): Promise<any>;
7
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.EventClient = void 0;
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const port = process.env.EVENT_PORT;
18
+ const eventUrl = `http://localhost:${port}/event`;
19
+ class EventClient {
20
+ getEventById(params) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const { token, accountId, eventId } = params;
23
+ const response = yield axios_1.default.get(`${eventUrl}/getById/${accountId}/${eventId}`, {
24
+ headers: { authorization: `${token}` },
25
+ });
26
+ return response === null || response === void 0 ? void 0 : response.data;
27
+ });
28
+ }
29
+ }
30
+ exports.EventClient = EventClient;
31
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AACpC,MAAM,QAAQ,GAAG,oBAAoB,IAAI,QAAQ,CAAC;AAElD,MAAa,WAAW;IAChB,YAAY,CAAC,MAA6D;;YAC9E,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;YAC7C,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,YAAY,SAAS,IAAI,OAAO,EAAE,EAAE;gBAC9E,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE;aACvC,CAAC,CAAC;YACH,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AARD,kCAQC"}
@@ -1,2 +1,4 @@
1
- import userClient from "./user";
2
- export default userClient;
1
+ export { UserClient } from "./user";
2
+ export { EventClient } from "./event";
3
+ export { TicketClient } from "./ticket";
4
+ export { UserEventClient } from "./userEvent";
package/dist/src/index.js CHANGED
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const user_1 = __importDefault(require("./user"));
7
- exports.default = user_1.default;
3
+ exports.UserEventClient = exports.TicketClient = exports.EventClient = exports.UserClient = void 0;
4
+ var user_1 = require("./user");
5
+ Object.defineProperty(exports, "UserClient", { enumerable: true, get: function () { return user_1.UserClient; } });
6
+ var event_1 = require("./event");
7
+ Object.defineProperty(exports, "EventClient", { enumerable: true, get: function () { return event_1.EventClient; } });
8
+ var ticket_1 = require("./ticket");
9
+ Object.defineProperty(exports, "TicketClient", { enumerable: true, get: function () { return ticket_1.TicketClient; } });
10
+ var userEvent_1 = require("./userEvent");
11
+ Object.defineProperty(exports, "UserEventClient", { enumerable: true, get: function () { return userEvent_1.UserEventClient; } });
8
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,kDAAgC;AAChC,kBAAe,cAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAAoC;AAA3B,kGAAA,UAAU,OAAA;AACnB,iCAAsC;AAA7B,oGAAA,WAAW,OAAA;AACpB,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,yCAA8C;AAArC,4GAAA,eAAe,OAAA"}
@@ -0,0 +1,8 @@
1
+ export declare class TicketClient {
2
+ getTicketById(params: {
3
+ token: string;
4
+ eventId: string;
5
+ accountId: string;
6
+ ticketId: string;
7
+ }): Promise<any>;
8
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.TicketClient = void 0;
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const port = process.env.EVENT_PORT;
18
+ const ticketUrl = `http://localhost:${port}/event/ticket`;
19
+ class TicketClient {
20
+ getTicketById(params) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const { token, accountId, eventId, ticketId } = params;
23
+ const response = yield axios_1.default.get(`${ticketUrl}/getById/${accountId}/${eventId}/${ticketId}`, {
24
+ headers: { authorization: `${token}` },
25
+ });
26
+ return response === null || response === void 0 ? void 0 : response.data;
27
+ });
28
+ }
29
+ }
30
+ exports.TicketClient = TicketClient;
31
+ //# sourceMappingURL=ticket.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticket.js","sourceRoot":"","sources":["../../src/ticket.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC;AACpC,MAAM,SAAS,GAAG,oBAAoB,IAAI,eAAe,CAAC;AAE1D,MAAa,YAAY;IACjB,aAAa,CAAC,MAA+E;;YACjG,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;YACvD,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,SAAS,YAAY,SAAS,IAAI,OAAO,IAAI,QAAQ,EAAE,EAAE;gBAC3F,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE;aACvC,CAAC,CAAC;YACH,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AARD,oCAQC"}
@@ -1,10 +1,5 @@
1
- export default class userClient {
1
+ export declare class UserClient {
2
2
  verifyToken(token: string): Promise<import("axios").AxiosResponse<any, any>>;
3
- checkAccountRole(params: {
4
- jwt: string;
5
- requestRoute: string;
6
- accountId: string;
7
- }): Promise<import("axios").AxiosResponse<any, any>>;
8
3
  getAccountById(params: {
9
4
  jwt: string;
10
5
  accountId: string;
package/dist/src/user.js CHANGED
@@ -12,35 +12,27 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UserClient = void 0;
15
16
  const axios_1 = __importDefault(require("axios"));
16
- const userPort = 3002;
17
- const userUrl = `http://localhost:${userPort}/user`;
18
- const accountUrl = `http://localhost:${userPort}/user/account`;
19
- class userClient {
17
+ const port = process.env.USER_PORT;
18
+ const userUrl = `http://localhost:${port}/user`;
19
+ const accountUrl = `http://localhost:${port}/user/account`;
20
+ class UserClient {
20
21
  verifyToken(token) {
21
22
  return __awaiter(this, void 0, void 0, function* () {
22
- return yield axios_1.default.get(`${userUrl}/verifyToken`, { headers: { authorization: `Bearer ${token}` } });
23
- });
24
- }
25
- checkAccountRole(params) {
26
- return __awaiter(this, void 0, void 0, function* () {
27
- const { requestRoute, accountId, jwt } = params;
28
- if (!requestRoute || !accountId || !jwt) {
29
- throw new Error("userId, requestRoute, accountId and jwt are required");
30
- }
31
- return yield axios_1.default.post(`${accountUrl}/checkRole/${accountId}`, params, { headers: { authorization: jwt } });
23
+ return yield axios_1.default.get(`${userUrl}/verifyToken`, { headers: { authorization: `${token}` } });
32
24
  });
33
25
  }
34
26
  getAccountById(params) {
35
27
  return __awaiter(this, void 0, void 0, function* () {
36
28
  const { accountId, jwt } = params;
37
29
  if (!jwt || !accountId) {
38
- throw new Error("jwt, accountId and jwt are required");
30
+ throw new Error("jwt, accountId are required");
39
31
  }
40
32
  const response = yield axios_1.default.get(`${accountUrl}/${accountId}`, { headers: { authorization: jwt } });
41
33
  return response === null || response === void 0 ? void 0 : response.data;
42
34
  });
43
35
  }
44
36
  }
45
- exports.default = userClient;
37
+ exports.UserClient = UserClient;
46
38
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,MAAM,OAAO,GAAG,oBAAoB,QAAQ,OAAO,CAAC;AACpD,MAAM,UAAU,GAAG,oBAAoB,QAAQ,eAAe,CAAC;AAE/D,MAAqB,UAAU;IACvB,WAAW,CAAC,KAAa;;YAC7B,OAAO,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,OAAO,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QACtG,CAAC;KAAA;IACK,gBAAgB,CAAC,MAAgE;;YACrF,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAChD,IAAI,CAAC,YAAY,IAAI,CAAC,SAAS,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;aACzE;YACD,OAAO,MAAM,eAAK,CAAC,IAAI,CAAC,GAAG,UAAU,cAAc,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;QAC/G,CAAC;KAAA;IACK,cAAc,CAAC,MAA0C;;YAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAClC,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aACxD;YACD,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,UAAU,IAAI,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YACpG,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AAnBD,6BAmBC"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC;AACnC,MAAM,OAAO,GAAG,oBAAoB,IAAI,OAAO,CAAC;AAChD,MAAM,UAAU,GAAG,oBAAoB,IAAI,eAAe,CAAC;AAE3D,MAAa,UAAU;IACf,WAAW,CAAC,KAAa;;YAC7B,OAAO,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,OAAO,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;QAC/F,CAAC;KAAA;IAEK,cAAc,CAAC,MAA0C;;YAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;YAClC,IAAI,CAAC,GAAG,IAAI,CAAC,SAAS,EAAE;gBACtB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;aAChD;YACD,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,GAAG,CAAC,GAAG,UAAU,IAAI,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YACpG,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AAbD,gCAaC"}
@@ -0,0 +1,6 @@
1
+ export declare class UserEventClient {
2
+ getUserEventByJWT(params: {
3
+ customPaymentJWT: string;
4
+ adminJWT: string;
5
+ }): Promise<any>;
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UserEventClient = void 0;
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const port = process.env.USER_EVENT_PORT;
18
+ const userEventUrl = `http://localhost:${port}/user-event`;
19
+ class UserEventClient {
20
+ getUserEventByJWT(params) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const { customPaymentJWT, adminJWT } = params;
23
+ const response = yield axios_1.default.post(`${userEventUrl}/getByJWT`, { customPaymentJWT }, {
24
+ headers: { authorization: `${adminJWT}` },
25
+ });
26
+ return response === null || response === void 0 ? void 0 : response.data;
27
+ });
28
+ }
29
+ }
30
+ exports.UserEventClient = UserEventClient;
31
+ //# sourceMappingURL=userEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userEvent.js","sourceRoot":"","sources":["../../src/userEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;AACzC,MAAM,YAAY,GAAG,oBAAoB,IAAI,aAAa,CAAC;AAE3D,MAAa,eAAe;IACpB,iBAAiB,CAAC,MAAsD;;YAC5E,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;YAC9C,MAAM,QAAQ,GAAG,MAAM,eAAK,CAAC,IAAI,CAC/B,GAAG,YAAY,WAAW,EAC1B,EAAE,gBAAgB,EAAE,EACpB;gBACE,OAAO,EAAE,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE,EAAE;aAC1C,CACF,CAAC;YACF,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,CAAC;QACxB,CAAC;KAAA;CACF;AAZD,0CAYC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/api-clients",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "communication http for each ms",
5
5
  "main": "dist/src/index.js",
6
6
  "author": "dan goldberg",
@@ -22,8 +22,11 @@
22
22
  "eslint-plugin-jsdoc": "^38.1.6",
23
23
  "eslint-plugin-no-null": "^1.0.2",
24
24
  "nodemon": "^1.19.1",
25
- "typescript": "4.6.3"
25
+ "typescript": "^4.8.3"
26
26
  },
27
27
  "types": "dist/src/index.d.ts",
28
- "dependencies": {}
28
+ "dependencies": {
29
+ "@nimee/logger": "1.0.21",
30
+ "axios": "1.2.1"
31
+ }
29
32
  }
package/src/event.ts ADDED
@@ -0,0 +1,13 @@
1
+ import axios from "axios";
2
+ const port = process.env.EVENT_PORT;
3
+ const eventUrl = `http://localhost:${port}/event`;
4
+
5
+ export class EventClient {
6
+ async getEventById(params: { token: string; accountId: string; eventId: string }) {
7
+ const { token, accountId, eventId } = params;
8
+ const response = await axios.get(`${eventUrl}/getById/${accountId}/${eventId}`, {
9
+ headers: { authorization: `${token}` },
10
+ });
11
+ return response?.data;
12
+ }
13
+ }
package/src/index.ts CHANGED
@@ -1,2 +1,4 @@
1
- import userClient from "./user";
2
- export default userClient;
1
+ export { UserClient } from "./user";
2
+ export { EventClient } from "./event";
3
+ export { TicketClient } from "./ticket";
4
+ export { UserEventClient } from "./userEvent";
package/src/ticket.ts ADDED
@@ -0,0 +1,13 @@
1
+ import axios from "axios";
2
+ const port = process.env.EVENT_PORT;
3
+ const ticketUrl = `http://localhost:${port}/event/ticket`;
4
+
5
+ export class TicketClient {
6
+ async getTicketById(params: { token: string; eventId: string; accountId: string; ticketId: string }) {
7
+ const { token, accountId, eventId, ticketId } = params;
8
+ const response = await axios.get(`${ticketUrl}/getById/${accountId}/${eventId}/${ticketId}`, {
9
+ headers: { authorization: `${token}` },
10
+ });
11
+ return response?.data;
12
+ }
13
+ }
package/src/user.ts CHANGED
@@ -1,24 +1,17 @@
1
1
  import axios from "axios";
2
- import logger from "@nimee/logger";
3
- const userPort = 3002;
4
- const userUrl = `http://localhost:${userPort}/user`;
5
- const accountUrl = `http://localhost:${userPort}/user/account`;
2
+ const port = process.env.USER_PORT;
3
+ const userUrl = `http://localhost:${port}/user`;
4
+ const accountUrl = `http://localhost:${port}/user/account`;
6
5
 
7
- export default class userClient {
6
+ export class UserClient {
8
7
  async verifyToken(token: string) {
9
- return await axios.get(`${userUrl}/verifyToken`, { headers: { authorization: `Bearer ${token}` } });
10
- }
11
- async checkAccountRole(params: { jwt: string; requestRoute: string; accountId: string }) {
12
- const { requestRoute, accountId, jwt } = params;
13
- if (!requestRoute || !accountId || !jwt) {
14
- throw new Error("userId, requestRoute, accountId and jwt are required");
15
- }
16
- return await axios.post(`${accountUrl}/checkRole/${accountId}`, params, { headers: { authorization: jwt } });
8
+ return await axios.get(`${userUrl}/verifyToken`, { headers: { authorization: `${token}` } });
17
9
  }
10
+
18
11
  async getAccountById(params: { jwt: string; accountId: string }) {
19
12
  const { accountId, jwt } = params;
20
13
  if (!jwt || !accountId) {
21
- throw new Error("jwt, accountId and jwt are required");
14
+ throw new Error("jwt, accountId are required");
22
15
  }
23
16
  const response = await axios.get(`${accountUrl}/${accountId}`, { headers: { authorization: jwt } });
24
17
  return response?.data;
@@ -0,0 +1,17 @@
1
+ import axios from "axios";
2
+ const port = process.env.USER_EVENT_PORT;
3
+ const userEventUrl = `http://localhost:${port}/user-event`;
4
+
5
+ export class UserEventClient {
6
+ async getUserEventByJWT(params: { customPaymentJWT: string; adminJWT: string }) {
7
+ const { customPaymentJWT, adminJWT } = params;
8
+ const response = await axios.post(
9
+ `${userEventUrl}/getByJWT`,
10
+ { customPaymentJWT },
11
+ {
12
+ headers: { authorization: `${adminJWT}` },
13
+ }
14
+ );
15
+ return response?.data;
16
+ }
17
+ }
package/tsconfig.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
- "compileOnSave": true,
3
- "compilerOptions": {
4
- "module": "commonjs",
5
- "esModuleInterop": true,
6
- "declaration": true,
7
- "target": "es6",
8
- "noImplicitAny": true,
9
- "skipLibCheck": true,
10
- "moduleResolution": "node",
11
- "sourceMap": true,
12
- "outDir": "./dist",
13
- "baseUrl": "./",
14
- "rootDir": "./",
15
- }
16
- }
2
+ "compileOnSave": true,
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "esModuleInterop": true,
6
+ "declaration": true,
7
+ "target": "es6",
8
+ "noImplicitAny": true,
9
+ "skipLibCheck": true,
10
+ "moduleResolution": "node",
11
+ "sourceMap": true,
12
+ "outDir": "./dist",
13
+ "baseUrl": "./",
14
+ "rootDir": "./"
15
+ }
16
+ }