@abyss-project/form 1.0.13 → 1.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.
- package/.eslintrc.js +33 -33
- package/README.md +33 -33
- package/dist/constants/form.constant.d.ts +1 -0
- package/dist/constants/form.constant.js +2 -1
- package/dist/constants/form.constant.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/interface/models/form.model.d.ts +0 -7
- package/package.json +55 -55
- package/tsconfig.json +35 -35
package/.eslintrc.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@typescript-eslint/parser',
|
|
3
|
-
parserOptions: {
|
|
4
|
-
project: 'tsconfig.json',
|
|
5
|
-
tsconfigRootDir: __dirname,
|
|
6
|
-
sourceType: 'module',
|
|
7
|
-
},
|
|
8
|
-
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
-
extends: [
|
|
10
|
-
'plugin:@typescript-eslint/recommended',
|
|
11
|
-
'plugin:prettier/recommended',
|
|
12
|
-
],
|
|
13
|
-
root: true,
|
|
14
|
-
env: {
|
|
15
|
-
node: true,
|
|
16
|
-
jest: true,
|
|
17
|
-
},
|
|
18
|
-
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
-
rules: {
|
|
20
|
-
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
-
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
-
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
-
'filenames-simple/naming-convention': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
// Use custom regexp to match migration file
|
|
29
|
-
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
overrides: [],
|
|
1
|
+
module.exports = {
|
|
2
|
+
parser: '@typescript-eslint/parser',
|
|
3
|
+
parserOptions: {
|
|
4
|
+
project: 'tsconfig.json',
|
|
5
|
+
tsconfigRootDir: __dirname,
|
|
6
|
+
sourceType: 'module',
|
|
7
|
+
},
|
|
8
|
+
plugins: ['@typescript-eslint/eslint-plugin', 'filenames-simple'],
|
|
9
|
+
extends: [
|
|
10
|
+
'plugin:@typescript-eslint/recommended',
|
|
11
|
+
'plugin:prettier/recommended',
|
|
12
|
+
],
|
|
13
|
+
root: true,
|
|
14
|
+
env: {
|
|
15
|
+
node: true,
|
|
16
|
+
jest: true,
|
|
17
|
+
},
|
|
18
|
+
ignorePatterns: ['.eslintrc.js'],
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
21
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
22
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
23
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
24
|
+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
25
|
+
'filenames-simple/naming-convention': [
|
|
26
|
+
'error',
|
|
27
|
+
{
|
|
28
|
+
// Use custom regexp to match migration file
|
|
29
|
+
rule: '^([a-z0-9]*)(-[a-z0-9]+)*$',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
},
|
|
33
|
+
overrides: [],
|
|
34
34
|
};
|
package/README.md
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
<img src="https://docs.abyss-project.fr/img/services/AbyssForm.svg" align="right" width="96" alt="" />
|
|
2
|
-
|
|
3
|
-
# Abyss Form
|
|
4
|
-
|
|
5
|
-
`@abyss-project/form`
|
|
6
|
-
|
|
7
|
-
Formulaires personnalisés, soumissions et webhooks.
|
|
8
|
-
|
|
9
|
-
_Custom forms, submissions and webhooks._
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
```bash
|
|
14
|
-
npm install @abyss-project/form
|
|
15
|
-
# or
|
|
16
|
-
pnpm add @abyss-project/form
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Liens
|
|
20
|
-
|
|
21
|
-
- **Documentation** : [https://docs.abyss-project.fr/form](https://docs.abyss-project.fr/form)
|
|
22
|
-
- **NPM** : [@abyss-project/form](https://www.npmjs.com/package/@abyss-project/form)
|
|
23
|
-
- **Swagger** : [https://form-api.abyss-project.fr/swagger](https://form-api.abyss-project.fr/swagger)
|
|
24
|
-
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
25
|
-
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
26
|
-
|
|
27
|
-
## Usage
|
|
28
|
-
|
|
29
|
-
Voir la [documentation produit](https://docs.abyss-project.fr/form) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
30
|
-
|
|
31
|
-
## Support
|
|
32
|
-
|
|
33
|
-
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
1
|
+
<img src="https://docs.abyss-project.fr/img/services/AbyssForm.svg" align="right" width="96" alt="" />
|
|
2
|
+
|
|
3
|
+
# Abyss Form
|
|
4
|
+
|
|
5
|
+
`@abyss-project/form`
|
|
6
|
+
|
|
7
|
+
Formulaires personnalisés, soumissions et webhooks.
|
|
8
|
+
|
|
9
|
+
_Custom forms, submissions and webhooks._
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @abyss-project/form
|
|
15
|
+
# or
|
|
16
|
+
pnpm add @abyss-project/form
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Liens
|
|
20
|
+
|
|
21
|
+
- **Documentation** : [https://docs.abyss-project.fr/form](https://docs.abyss-project.fr/form)
|
|
22
|
+
- **NPM** : [@abyss-project/form](https://www.npmjs.com/package/@abyss-project/form)
|
|
23
|
+
- **Swagger** : [https://form-api.abyss-project.fr/swagger](https://form-api.abyss-project.fr/swagger)
|
|
24
|
+
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
25
|
+
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Voir la [documentation produit](https://docs.abyss-project.fr/form) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
30
|
+
|
|
31
|
+
## Support
|
|
32
|
+
|
|
33
|
+
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = exports.MAX_ANSWERS_PER_QUESTION = exports.MAX_QUESTIONS_PER_PAGE = exports.MAX_PAGE_PER_FORM = exports.DELAY_BETWEEN_SUBMISSION_IN_MINUTES = exports.MAX_SUBMISSION_PER_UNIQ_USER = exports.MAXIMUM_TAGS_LENGTH = exports.MAXIMUM_TAGS_PER_FORM = void 0;
|
|
3
|
+
exports.MAXIMUM_DOCUMENT_PER_FORM = exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = exports.MAX_ANSWERS_PER_QUESTION = exports.MAX_QUESTIONS_PER_PAGE = exports.MAX_PAGE_PER_FORM = exports.DELAY_BETWEEN_SUBMISSION_IN_MINUTES = exports.MAX_SUBMISSION_PER_UNIQ_USER = exports.MAXIMUM_TAGS_LENGTH = exports.MAXIMUM_TAGS_PER_FORM = void 0;
|
|
4
4
|
exports.MAXIMUM_TAGS_PER_FORM = 10;
|
|
5
5
|
exports.MAXIMUM_TAGS_LENGTH = 50;
|
|
6
6
|
exports.MAX_SUBMISSION_PER_UNIQ_USER = 500;
|
|
@@ -9,4 +9,5 @@ exports.MAX_PAGE_PER_FORM = 10;
|
|
|
9
9
|
exports.MAX_QUESTIONS_PER_PAGE = 20;
|
|
10
10
|
exports.MAX_ANSWERS_PER_QUESTION = 20;
|
|
11
11
|
exports.MAXIMUM_DOCUMENT_PER_SUBMISSION = 10;
|
|
12
|
+
exports.MAXIMUM_DOCUMENT_PER_FORM = 50;
|
|
12
13
|
//# sourceMappingURL=form.constant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.constant.js","sourceRoot":"","sources":["../../src/constants/form.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAEzB,QAAA,4BAA4B,GAAG,GAAG,CAAC;AACnC,QAAA,mCAAmC,GAAG,KAAK,CAAC;AAE5C,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAC5B,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,+BAA+B,GAAG,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"form.constant.js","sourceRoot":"","sources":["../../src/constants/form.constant.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,EAAE,CAAC;AAC3B,QAAA,mBAAmB,GAAG,EAAE,CAAC;AAEzB,QAAA,4BAA4B,GAAG,GAAG,CAAC;AACnC,QAAA,mCAAmC,GAAG,KAAK,CAAC;AAE5C,QAAA,iBAAiB,GAAG,EAAE,CAAC;AACvB,QAAA,sBAAsB,GAAG,EAAE,CAAC;AAC5B,QAAA,wBAAwB,GAAG,EAAE,CAAC;AAC9B,QAAA,+BAA+B,GAAG,EAAE,CAAC;AAKrC,QAAA,yBAAyB,GAAG,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export * from './types';
|
|
|
21
21
|
export * from './utils';
|
|
22
22
|
export * from './api';
|
|
23
23
|
export * from './constants';
|
|
24
|
-
export declare const API_KEY_HEADER = "abyss-
|
|
24
|
+
export declare const API_KEY_HEADER = "abyss-api-key";
|
|
25
25
|
export declare const ADMIN_TOKEN_HEADER = "abyss-admin-token";
|
|
26
26
|
export declare const HEADER_WEBHOOK_SIGNATURE_NAME = "abyss-form-webhook-signature";
|
|
27
27
|
export declare const WEBHOOK_SIGNATURE_ALGORITHM = "sha256";
|
package/dist/index.js
CHANGED
|
@@ -56,7 +56,7 @@ __exportStar(require("./utils"), exports);
|
|
|
56
56
|
__exportStar(require("./api"), exports);
|
|
57
57
|
__exportStar(require("./constants"), exports);
|
|
58
58
|
const DEFAULT_BASE_URL = 'https://form-api.abyss-project.fr/api/';
|
|
59
|
-
exports.API_KEY_HEADER = 'abyss-
|
|
59
|
+
exports.API_KEY_HEADER = 'abyss-api-key';
|
|
60
60
|
exports.ADMIN_TOKEN_HEADER = 'abyss-admin-token';
|
|
61
61
|
exports.HEADER_WEBHOOK_SIGNATURE_NAME = 'abyss-form-webhook-signature';
|
|
62
62
|
exports.WEBHOOK_SIGNATURE_ALGORITHM = 'sha256';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAC1B,2DAA+F;AAC/F,qEAAuD;AACvD,wDAA0C;AAC1C,mEAAqD;AACrD,qEAAuD;AACvD,yEAA2D;AAC3D,oFAAsE;AACtE,uEAAyD;AACzD,kFAAoE;AACpE,sFAAwE;AACxE,iGAAmF;AACnF,4EAA8D;AAC9D,uFAAyE;AACzE,6EAA+D;AAC/D,wFAA0E;AAC1E,wDAA0C;AAC1C,mEAAqD;AACrD,8DAAgD;AAChD,uEAAyD;AAEzD,0CAAwB;AACxB,0CAAwB;AACx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e,EAAE,IAAI;CACtB,CAAC,AAHU,CAGT;AAEY,kBAAI,GAA4B,IAAI,AAAhC,CAAiC"}
|
|
@@ -5,7 +5,6 @@ import { IFormConfiguration } from './form-configuration.model';
|
|
|
5
5
|
import { IFormDocument } from './form-document.model';
|
|
6
6
|
import { IFormSubmission } from './form-submission.model';
|
|
7
7
|
import { IFormWebhook } from './form-webhook.model';
|
|
8
|
-
import { IUser } from './user.model';
|
|
9
8
|
export interface IForm {
|
|
10
9
|
id?: string;
|
|
11
10
|
title: string;
|
|
@@ -14,7 +13,6 @@ export interface IForm {
|
|
|
14
13
|
content: FormContentDTO;
|
|
15
14
|
abyssSpotlightProjectId: string | null;
|
|
16
15
|
abyssProjectId: string | null;
|
|
17
|
-
abyssProjectApplicationId?: string;
|
|
18
16
|
status: FormStatus;
|
|
19
17
|
startDate: Date | null;
|
|
20
18
|
endDate: Date | null;
|
|
@@ -31,9 +29,4 @@ export interface IForm {
|
|
|
31
29
|
formWebhooks?: IFormWebhook[];
|
|
32
30
|
formSubmissions?: IFormSubmission[];
|
|
33
31
|
formCodeBlocks?: IFormCodeBlock[];
|
|
34
|
-
formDocument?: IFormDocument[];
|
|
35
|
-
formWebhook?: IFormWebhook[];
|
|
36
|
-
formSubmission?: IFormSubmission[];
|
|
37
|
-
formCodeBlock?: IFormCodeBlock[];
|
|
38
|
-
user?: IUser | null;
|
|
39
32
|
}
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@abyss-project/form",
|
|
3
|
-
"version": "1.0
|
|
4
|
-
"description": "Core package to interact with AbyssForm",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"publishConfig": {
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"types": "dist/index.d.ts"
|
|
10
|
-
},
|
|
11
|
-
"scripts": {
|
|
12
|
-
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
-
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
-
"tsc": "tsc",
|
|
15
|
-
"build": "tsc",
|
|
16
|
-
"prepublish": "tsc",
|
|
17
|
-
"dev": "tsc --watch"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "scylla",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://gitlab.com/abyss-group/abyss-form"
|
|
24
|
-
},
|
|
25
|
-
"homepage": "https://gitlab.com/abyss-group/abyss-form",
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"axios": "^1.6.0",
|
|
28
|
-
"axios-retry": "^4.5.0",
|
|
29
|
-
"core-js": "^3.37.1",
|
|
30
|
-
"dayjs": "^1.10.8",
|
|
31
|
-
"form-data": "^4.0.0",
|
|
32
|
-
"lodash": "^4.17.21",
|
|
33
|
-
"uuid": "^9.0.0"
|
|
34
|
-
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/express-serve-static-core": "^4.17.31",
|
|
37
|
-
"@types/lodash": "^4.17.16",
|
|
38
|
-
"@types/node": "^20.11.0",
|
|
39
|
-
"@types/uuid": "^9.0.0",
|
|
40
|
-
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
41
|
-
"@typescript-eslint/parser": "7.3.1",
|
|
42
|
-
"eslint": "^7.28.0",
|
|
43
|
-
"eslint-config-prettier": "^8.3.0",
|
|
44
|
-
"eslint-config-standard": "^16.0.3",
|
|
45
|
-
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
46
|
-
"eslint-plugin-import": "^2.23.4",
|
|
47
|
-
"eslint-plugin-node": "^11.1.0",
|
|
48
|
-
"eslint-plugin-prettier": "^3.4.0",
|
|
49
|
-
"eslint-plugin-promise": "^5.1.0",
|
|
50
|
-
"prettier": "2.3.1",
|
|
51
|
-
"sequelize-cli": "^6.2.0",
|
|
52
|
-
"typescript": "5.4.2",
|
|
53
|
-
"tsc-watch": "^4.6.2"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@abyss-project/form",
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"description": "Core package to interact with AbyssForm",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"lint": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --fix",
|
|
13
|
+
"lint:check": "eslint \"{src,apps,libs,test,core}/**/*.ts\" --max-warnings 0",
|
|
14
|
+
"tsc": "tsc",
|
|
15
|
+
"build": "tsc",
|
|
16
|
+
"prepublish": "tsc",
|
|
17
|
+
"dev": "tsc --watch"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "scylla",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://gitlab.com/abyss-group/abyss-form"
|
|
24
|
+
},
|
|
25
|
+
"homepage": "https://gitlab.com/abyss-group/abyss-form",
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"axios": "^1.6.0",
|
|
28
|
+
"axios-retry": "^4.5.0",
|
|
29
|
+
"core-js": "^3.37.1",
|
|
30
|
+
"dayjs": "^1.10.8",
|
|
31
|
+
"form-data": "^4.0.0",
|
|
32
|
+
"lodash": "^4.17.21",
|
|
33
|
+
"uuid": "^9.0.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/express-serve-static-core": "^4.17.31",
|
|
37
|
+
"@types/lodash": "^4.17.16",
|
|
38
|
+
"@types/node": "^20.11.0",
|
|
39
|
+
"@types/uuid": "^9.0.0",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "6.21.0",
|
|
41
|
+
"@typescript-eslint/parser": "7.3.1",
|
|
42
|
+
"eslint": "^7.28.0",
|
|
43
|
+
"eslint-config-prettier": "^8.3.0",
|
|
44
|
+
"eslint-config-standard": "^16.0.3",
|
|
45
|
+
"eslint-plugin-filenames-simple": "^0.7.0",
|
|
46
|
+
"eslint-plugin-import": "^2.23.4",
|
|
47
|
+
"eslint-plugin-node": "^11.1.0",
|
|
48
|
+
"eslint-plugin-prettier": "^3.4.0",
|
|
49
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
50
|
+
"prettier": "2.3.1",
|
|
51
|
+
"sequelize-cli": "^6.2.0",
|
|
52
|
+
"typescript": "5.4.2",
|
|
53
|
+
"tsc-watch": "^4.6.2"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"incremental": false,
|
|
4
|
-
"target": "es2021",
|
|
5
|
-
"lib": [
|
|
6
|
-
"dom",
|
|
7
|
-
"es2021"
|
|
8
|
-
],
|
|
9
|
-
"experimentalDecorators": true,
|
|
10
|
-
"emitDecoratorMetadata": true,
|
|
11
|
-
"module": "commonjs",
|
|
12
|
-
"rootDir": "src",
|
|
13
|
-
"moduleResolution": "node",
|
|
14
|
-
"resolveJsonModule": true,
|
|
15
|
-
"allowJs": true,
|
|
16
|
-
"declaration": true,
|
|
17
|
-
"sourceMap": true,
|
|
18
|
-
"outDir": "./dist",
|
|
19
|
-
"removeComments": true,
|
|
20
|
-
"allowSyntheticDefaultImports": true,
|
|
21
|
-
"esModuleInterop": true,
|
|
22
|
-
"forceConsistentCasingInFileNames": true,
|
|
23
|
-
"strict": true,
|
|
24
|
-
"strictNullChecks": true,
|
|
25
|
-
"strictFunctionTypes": true,
|
|
26
|
-
"strictPropertyInitialization": false,
|
|
27
|
-
"skipLibCheck": true
|
|
28
|
-
},
|
|
29
|
-
"include": [
|
|
30
|
-
"./src"
|
|
31
|
-
],
|
|
32
|
-
"exclude": [
|
|
33
|
-
"./dist/**/*"
|
|
34
|
-
]
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": false,
|
|
4
|
+
"target": "es2021",
|
|
5
|
+
"lib": [
|
|
6
|
+
"dom",
|
|
7
|
+
"es2021"
|
|
8
|
+
],
|
|
9
|
+
"experimentalDecorators": true,
|
|
10
|
+
"emitDecoratorMetadata": true,
|
|
11
|
+
"module": "commonjs",
|
|
12
|
+
"rootDir": "src",
|
|
13
|
+
"moduleResolution": "node",
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"allowJs": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"sourceMap": true,
|
|
18
|
+
"outDir": "./dist",
|
|
19
|
+
"removeComments": true,
|
|
20
|
+
"allowSyntheticDefaultImports": true,
|
|
21
|
+
"esModuleInterop": true,
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"strict": true,
|
|
24
|
+
"strictNullChecks": true,
|
|
25
|
+
"strictFunctionTypes": true,
|
|
26
|
+
"strictPropertyInitialization": false,
|
|
27
|
+
"skipLibCheck": true
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"./src"
|
|
31
|
+
],
|
|
32
|
+
"exclude": [
|
|
33
|
+
"./dist/**/*"
|
|
34
|
+
]
|
|
35
|
+
}
|