@adtrackify/at-service-common 1.0.69 → 1.0.71
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/.editorconfig +12 -12
- package/.vscode/settings.json +9 -9
- package/bitbucket-pipelines.yml +20 -20
- package/build.js +21 -21
- package/dist/index.d.ts +4 -4
- package/dist/index.js +22 -19
- package/dist/index.js.map +2 -2
- package/jest.config.ts +40 -40
- package/package.json +2 -2
- package/src/__tests__/helpers/subscription-helper.spec.ts +40 -40
- package/src/clients/generic/axios.d.ts +7 -7
- package/src/clients/generic/dynamodb-client.ts +113 -113
- package/src/clients/generic/eventbridge-client.ts +52 -52
- package/src/clients/internal-api/destinations-client.ts +58 -58
- package/src/clients/internal-api/index.ts +4 -4
- package/src/clients/internal-api/shopify-app-install-client.ts +59 -59
- package/src/clients/internal-api/users-auth-client.ts +111 -111
- package/src/clients/third-party/shopify-client.ts +128 -128
- package/src/helpers/index.ts +5 -5
- package/src/helpers/input-validation-helper.ts +21 -21
- package/src/helpers/shopify-helper.ts +39 -39
- package/src/helpers/subscription-helper.ts +224 -217
- package/src/index.ts +4 -4
- package/src/libs/http-error.ts +90 -99
- package/src/libs/index.ts +7 -7
- package/src/libs/url.ts +9 -9
- package/src/services/eventbridge-integration-service.ts +44 -44
- package/src/types/internal-events/event-detail-types.ts +9 -9
- package/tsconfig.json +35 -35
package/src/libs/http-error.ts
CHANGED
|
@@ -1,99 +1,90 @@
|
|
|
1
|
-
/* eslint-disable no-dupe-class-members */
|
|
2
|
-
import { strict as assert } from 'assert';
|
|
3
|
-
|
|
4
|
-
const deepClone = (o = {}) => JSON.parse(JSON.stringify(o));
|
|
5
|
-
const containsStackTrace = (text = '') => /at.+\.js:\d+:\d+/.test(text);
|
|
6
|
-
const objectContainsStackTrace = (obj: any) =>
|
|
7
|
-
!obj ? false : containsStackTrace(JSON.stringify(obj));
|
|
8
|
-
|
|
9
|
-
// may only be expanded by governance, never reduced
|
|
10
|
-
const supportedStatusCodes: any = {
|
|
11
|
-
400: 'Bad Request',
|
|
12
|
-
401: 'Unauthorized',
|
|
13
|
-
403: 'Forbidden',
|
|
14
|
-
404: 'Not Found',
|
|
15
|
-
405: 'Method Not Allowed',
|
|
16
|
-
409: 'Conflict',
|
|
17
|
-
412: 'Precondition Failed',
|
|
18
|
-
413: 'Payload Too Large',
|
|
19
|
-
415: 'Unsupported Media Type',
|
|
20
|
-
428: 'Precondition Required',
|
|
21
|
-
429: 'Too Many Requests',
|
|
22
|
-
500: 'Internal Server Error',
|
|
23
|
-
501: 'Not Implemented',
|
|
24
|
-
502: 'Bad Gateway',
|
|
25
|
-
503: 'Service Unavailable',
|
|
26
|
-
504: 'Gateway Timeout'
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;
|
|
30
|
-
//const onlyStatusCodeMessage = 'Server errors may not specify any parameter except statusCode';
|
|
31
|
-
|
|
32
|
-
//const isNullOrUndefined = (value: any) => value === null || value === undefined;
|
|
33
|
-
|
|
34
|
-
export class HttpError extends Error {
|
|
35
|
-
body: {
|
|
36
|
-
[ key: string ]: any;
|
|
37
|
-
};
|
|
38
|
-
headers: object[];
|
|
39
|
-
statusCode: number;
|
|
40
|
-
isServerError: boolean;
|
|
41
|
-
|
|
42
|
-
constructor (statusCode: number,
|
|
43
|
-
message?: string,
|
|
44
|
-
body?: {
|
|
45
|
-
[ key: string ]: any;
|
|
46
|
-
},
|
|
47
|
-
headers?: object[]) {
|
|
48
|
-
assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);
|
|
49
|
-
|
|
50
|
-
const isServerError = statusCode > 499;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
static
|
|
90
|
-
|
|
91
|
-
static unauthorized = (message?: string, body?: object, headers?: object[]) => new HttpError(401, message, body, headers);
|
|
92
|
-
static forbidden = (message?: string, body?: object, headers?: object[]) => new HttpError(403, message, body, headers);
|
|
93
|
-
static notFound = (message?: string, body?: object, headers?: object[]) => new HttpError(404, message, body, headers);
|
|
94
|
-
static internal = (message?: string, body?: object, headers?: object[]) => new HttpError(500, message, body, headers);
|
|
95
|
-
static notImplemented = () => new HttpError(501);
|
|
96
|
-
static badGateway = () => new HttpError(502);
|
|
97
|
-
static serviceUnavailable = (headers: object[]) => new HttpError(503, undefined, undefined, headers);
|
|
98
|
-
static gatewayTimeout = () => new HttpError(504);
|
|
99
|
-
}
|
|
1
|
+
/* eslint-disable no-dupe-class-members */
|
|
2
|
+
import { strict as assert } from 'assert';
|
|
3
|
+
|
|
4
|
+
const deepClone = (o = {}) => JSON.parse(JSON.stringify(o));
|
|
5
|
+
const containsStackTrace = (text = '') => /at.+\.js:\d+:\d+/.test(text);
|
|
6
|
+
const objectContainsStackTrace = (obj: any) =>
|
|
7
|
+
!obj ? false : containsStackTrace(JSON.stringify(obj));
|
|
8
|
+
|
|
9
|
+
// may only be expanded by governance, never reduced
|
|
10
|
+
const supportedStatusCodes: any = {
|
|
11
|
+
400: 'Bad Request',
|
|
12
|
+
401: 'Unauthorized',
|
|
13
|
+
403: 'Forbidden',
|
|
14
|
+
404: 'Not Found',
|
|
15
|
+
405: 'Method Not Allowed',
|
|
16
|
+
409: 'Conflict',
|
|
17
|
+
412: 'Precondition Failed',
|
|
18
|
+
413: 'Payload Too Large',
|
|
19
|
+
415: 'Unsupported Media Type',
|
|
20
|
+
428: 'Precondition Required',
|
|
21
|
+
429: 'Too Many Requests',
|
|
22
|
+
500: 'Internal Server Error',
|
|
23
|
+
501: 'Not Implemented',
|
|
24
|
+
502: 'Bad Gateway',
|
|
25
|
+
503: 'Service Unavailable',
|
|
26
|
+
504: 'Gateway Timeout'
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const supportedStatusCodesMessage = `statusCode must be one of the following: ${JSON.stringify(Object.keys(supportedStatusCodes))}`;
|
|
30
|
+
//const onlyStatusCodeMessage = 'Server errors may not specify any parameter except statusCode';
|
|
31
|
+
|
|
32
|
+
//const isNullOrUndefined = (value: any) => value === null || value === undefined;
|
|
33
|
+
|
|
34
|
+
export class HttpError extends Error {
|
|
35
|
+
body: {
|
|
36
|
+
[ key: string ]: any;
|
|
37
|
+
};
|
|
38
|
+
headers: object[];
|
|
39
|
+
statusCode: number;
|
|
40
|
+
isServerError: boolean;
|
|
41
|
+
|
|
42
|
+
constructor (statusCode: number,
|
|
43
|
+
message?: string,
|
|
44
|
+
body?: {
|
|
45
|
+
[ key: string ]: any;
|
|
46
|
+
},
|
|
47
|
+
headers?: object[]) {
|
|
48
|
+
assert(statusCode in supportedStatusCodes, supportedStatusCodesMessage);
|
|
49
|
+
|
|
50
|
+
const isServerError = statusCode > 499;
|
|
51
|
+
|
|
52
|
+
assert(
|
|
53
|
+
body === undefined || typeof body === 'object',
|
|
54
|
+
'body must be an object or omitted'
|
|
55
|
+
);
|
|
56
|
+
assert(
|
|
57
|
+
headers === undefined || typeof headers === 'object',
|
|
58
|
+
'headers must be an object or omitted'
|
|
59
|
+
);
|
|
60
|
+
|
|
61
|
+
message = message ?? supportedStatusCodes[ statusCode ];
|
|
62
|
+
|
|
63
|
+
assert(
|
|
64
|
+
!containsStackTrace(message) && !objectContainsStackTrace(body),
|
|
65
|
+
'the message or data parameters may not contain errors or stack traces'
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
super(message);
|
|
69
|
+
|
|
70
|
+
this.body = deepClone(body);
|
|
71
|
+
this.headers = deepClone(headers);
|
|
72
|
+
this.statusCode = statusCode;
|
|
73
|
+
this.isServerError = isServerError;
|
|
74
|
+
if (!this?.body?.message) {
|
|
75
|
+
this.body.message = this.message;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
static get supportedStatusCodes() { return supportedStatusCodes; }
|
|
81
|
+
static badRequest = (message?: string, body?: object, headers?: object[]) => { return new HttpError(400, message, body, headers); };
|
|
82
|
+
static unauthorized = (message?: string, body?: object, headers?: object[]) => new HttpError(401, message, body, headers);
|
|
83
|
+
static forbidden = (message?: string, body?: object, headers?: object[]) => new HttpError(403, message, body, headers);
|
|
84
|
+
static notFound = (message?: string, body?: object, headers?: object[]) => new HttpError(404, message, body, headers);
|
|
85
|
+
static internal = (message?: string, body?: object, headers?: object[]) => new HttpError(500, message, body, headers);
|
|
86
|
+
static notImplemented = () => new HttpError(501);
|
|
87
|
+
static badGateway = () => new HttpError(502);
|
|
88
|
+
static serviceUnavailable = (headers: object[]) => new HttpError(503, undefined, undefined, headers);
|
|
89
|
+
static gatewayTimeout = () => new HttpError(504);
|
|
90
|
+
}
|
package/src/libs/index.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from '../helpers/shopify-helper';
|
|
2
|
-
export * from './crypto';
|
|
3
|
-
export * from './dates';
|
|
4
|
-
export * from './http-error';
|
|
5
|
-
export * from './http-status-codes';
|
|
6
|
-
export * from './url';
|
|
7
|
-
|
|
1
|
+
export * from '../helpers/shopify-helper';
|
|
2
|
+
export * from './crypto';
|
|
3
|
+
export * from './dates';
|
|
4
|
+
export * from './http-error';
|
|
5
|
+
export * from './http-status-codes';
|
|
6
|
+
export * from './url';
|
|
7
|
+
|
package/src/libs/url.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Record<string, string> is any object
|
|
2
|
-
export const mapObjectToQueryString = (inputObj: any): string => {
|
|
3
|
-
const qsp = Object.entries(inputObj).sort((a, b) => a[ 0 ] < b[ 0 ] ? -1 : 1);
|
|
4
|
-
const urlParams = new URLSearchParams();
|
|
5
|
-
qsp.map(p => {
|
|
6
|
-
urlParams.append(p[ 0 ], p[ 1 ] as string);
|
|
7
|
-
});
|
|
8
|
-
const qs = urlParams.toString();
|
|
9
|
-
return qs;
|
|
1
|
+
// Record<string, string> is any object
|
|
2
|
+
export const mapObjectToQueryString = (inputObj: any): string => {
|
|
3
|
+
const qsp = Object.entries(inputObj).sort((a, b) => a[ 0 ] < b[ 0 ] ? -1 : 1);
|
|
4
|
+
const urlParams = new URLSearchParams();
|
|
5
|
+
qsp.map(p => {
|
|
6
|
+
urlParams.append(p[ 0 ], p[ 1 ] as string);
|
|
7
|
+
});
|
|
8
|
+
const qs = urlParams.toString();
|
|
9
|
+
return qs;
|
|
10
10
|
};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { EventBridgeClient } from '../clients';
|
|
2
|
-
import { Message, TemplatedMessage } from 'postmark';
|
|
3
|
-
|
|
4
|
-
export const enum PostmarkRequestType {
|
|
5
|
-
SINGLE_EMAIL = 'single_email',
|
|
6
|
-
TEMPLATE_EMAIL = 'template_email'
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {
|
|
10
|
-
SEND_POSTMARK_EMAIL = 'integration.sendPostmarkEmail',
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export class EventBridgeIntegrationService {
|
|
14
|
-
public eventBridgeClient: EventBridgeClient;
|
|
15
|
-
public EVENT_BUS_NAME: string;
|
|
16
|
-
|
|
17
|
-
constructor (eventBusName: string) {
|
|
18
|
-
this.eventBridgeClient = new EventBridgeClient(eventBusName);
|
|
19
|
-
this.EVENT_BUS_NAME = eventBusName;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
public sendPostmarkEmailEvent = async (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => {
|
|
23
|
-
return await this.eventBridgeClient.buildAndSendEvent(
|
|
24
|
-
eventSource,
|
|
25
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,
|
|
26
|
-
{
|
|
27
|
-
postmarkMessage,
|
|
28
|
-
postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,
|
|
29
|
-
postmarkServerToken
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
public sendPostmarkTemplatedEmailEvent = async (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => {
|
|
34
|
-
return await this.eventBridgeClient.buildAndSendEvent(
|
|
35
|
-
eventSource,
|
|
36
|
-
ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,
|
|
37
|
-
{
|
|
38
|
-
postmarkMessage,
|
|
39
|
-
postmarkRequestType: PostmarkRequestType.TEMPLATE_EMAIL,
|
|
40
|
-
postmarkServerToken
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
}
|
|
1
|
+
import { EventBridgeClient } from '../clients';
|
|
2
|
+
import { Message, TemplatedMessage } from 'postmark';
|
|
3
|
+
|
|
4
|
+
export const enum PostmarkRequestType {
|
|
5
|
+
SINGLE_EMAIL = 'single_email',
|
|
6
|
+
TEMPLATE_EMAIL = 'template_email'
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum ADTRACKIFY_EVENT_BRIDGE_EVENTS {
|
|
10
|
+
SEND_POSTMARK_EMAIL = 'integration.sendPostmarkEmail',
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class EventBridgeIntegrationService {
|
|
14
|
+
public eventBridgeClient: EventBridgeClient;
|
|
15
|
+
public EVENT_BUS_NAME: string;
|
|
16
|
+
|
|
17
|
+
constructor (eventBusName: string) {
|
|
18
|
+
this.eventBridgeClient = new EventBridgeClient(eventBusName);
|
|
19
|
+
this.EVENT_BUS_NAME = eventBusName;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
public sendPostmarkEmailEvent = async (eventSource: string, postmarkMessage: Message, postmarkServerToken: string) => {
|
|
23
|
+
return await this.eventBridgeClient.buildAndSendEvent(
|
|
24
|
+
eventSource,
|
|
25
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,
|
|
26
|
+
{
|
|
27
|
+
postmarkMessage,
|
|
28
|
+
postmarkRequestType: PostmarkRequestType.SINGLE_EMAIL,
|
|
29
|
+
postmarkServerToken
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
public sendPostmarkTemplatedEmailEvent = async (eventSource: string, postmarkMessage: TemplatedMessage, postmarkServerToken: string) => {
|
|
34
|
+
return await this.eventBridgeClient.buildAndSendEvent(
|
|
35
|
+
eventSource,
|
|
36
|
+
ADTRACKIFY_EVENT_BRIDGE_EVENTS.SEND_POSTMARK_EMAIL,
|
|
37
|
+
{
|
|
38
|
+
postmarkMessage,
|
|
39
|
+
postmarkRequestType: PostmarkRequestType.TEMPLATE_EMAIL,
|
|
40
|
+
postmarkServerToken
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export enum ADTRACKIFY_EVENT_TYPES {
|
|
2
|
-
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',
|
|
3
|
-
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',
|
|
4
|
-
REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',
|
|
5
|
-
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export enum ADTRACKIFY_EVENT_SOURCES {
|
|
9
|
-
SUBSCRIPTIONS = 'subscriptions',
|
|
1
|
+
export enum ADTRACKIFY_EVENT_TYPES {
|
|
2
|
+
NOTIFY_SHOPIFY_SUBSCRIPTION_CREATED = 'shopifySubscriptionCreated',
|
|
3
|
+
NOTIFY_SUBSCRIPTION_SIGNUP_COMPLETED = 'subscription.signupCompleted',
|
|
4
|
+
REQUEST_SET_ACCOUNT_OWNER = 'setAccountOwner',
|
|
5
|
+
REQUEST_SET_ACCOUNT_SUBSCRIPTION_ID = 'setAccountSubscriptionId',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export enum ADTRACKIFY_EVENT_SOURCES {
|
|
9
|
+
SUBSCRIPTIONS = 'subscriptions',
|
|
10
10
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
|
4
|
-
"module": "ES2022" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
5
|
-
|
|
6
|
-
"allowJs": false, /* Allow javascript files to be compiled. */
|
|
7
|
-
"checkJs": false /* Report errors in .js files. */,
|
|
8
|
-
"outDir": "dist", /* Redirect output to the directory. */
|
|
9
|
-
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
|
10
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
11
|
-
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
12
|
-
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
13
|
-
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
|
14
|
-
"useUnknownInCatchVariables": true,
|
|
15
|
-
"experimentalDecorators": true,
|
|
16
|
-
"sourceMap": true,
|
|
17
|
-
"declaration": true,
|
|
18
|
-
"moduleResolution": "node",
|
|
19
|
-
"resolveJsonModule": true,
|
|
20
|
-
"isolatedModules": true,
|
|
21
|
-
"removeComments": true,
|
|
22
|
-
"typeRoots": [
|
|
23
|
-
"./node_modules/@types"
|
|
24
|
-
],
|
|
25
|
-
"types": [
|
|
26
|
-
"node",
|
|
27
|
-
"jest"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"include": [
|
|
31
|
-
"./src"
|
|
32
|
-
],
|
|
33
|
-
"exclude": [
|
|
34
|
-
"node_modules"
|
|
35
|
-
]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
|
4
|
+
"module": "ES2022" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
5
|
+
|
|
6
|
+
"allowJs": false, /* Allow javascript files to be compiled. */
|
|
7
|
+
"checkJs": false /* Report errors in .js files. */,
|
|
8
|
+
"outDir": "dist", /* Redirect output to the directory. */
|
|
9
|
+
"rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */,
|
|
10
|
+
"strict": true, /* Enable all strict type-checking options. */
|
|
11
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
12
|
+
"skipLibCheck": true, /* Skip type checking of declaration files. */
|
|
13
|
+
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
|
|
14
|
+
"useUnknownInCatchVariables": true,
|
|
15
|
+
"experimentalDecorators": true,
|
|
16
|
+
"sourceMap": true,
|
|
17
|
+
"declaration": true,
|
|
18
|
+
"moduleResolution": "node",
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"isolatedModules": true,
|
|
21
|
+
"removeComments": true,
|
|
22
|
+
"typeRoots": [
|
|
23
|
+
"./node_modules/@types"
|
|
24
|
+
],
|
|
25
|
+
"types": [
|
|
26
|
+
"node",
|
|
27
|
+
"jest"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"include": [
|
|
31
|
+
"./src"
|
|
32
|
+
],
|
|
33
|
+
"exclude": [
|
|
34
|
+
"node_modules"
|
|
35
|
+
]
|
|
36
36
|
}
|