page2pdf_server 1.1.0 → 1.1.1
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/.babelrc +3 -3
- package/.eslintrc +32 -32
- package/.github/ISSUE_TEMPLATE/bug_report.md +28 -28
- package/.github/ISSUE_TEMPLATE/feature_request.md +15 -15
- package/.github/ISSUE_TEMPLATE/refactoring.md +15 -15
- package/.github/PULL_REQUEST_TEMPLATE.md +18 -18
- package/.github/stale.yml +17 -17
- package/.github/workflows/cd.yml +75 -75
- package/.github/workflows/ci.yml +36 -36
- package/.prettierrc +8 -8
- package/.vscode/settings.json +3 -3
- package/LICENSE +17 -17
- package/README.md +6 -1
- package/ecosystem.config.js +41 -41
- package/jest.config.js +35 -35
- package/nodemon.json +6 -6
- package/package.json +23 -15
- package/src/__tests__/UrltoPdf/generatePdf.test.d.ts +1 -0
- package/{__tests__ → src/__tests__}/UrltoPdf/generatePdf.test.ts +1 -1
- package/src/__tests__/UrltoPdf/pdfSplit.test.d.ts +1 -0
- package/{__tests__ → src/__tests__}/UrltoPdf/pdfSplit.test.ts +1 -1
- package/src/__tests__/helpers/index.d.ts +2 -0
- package/src/__tests__/home.test.d.ts +1 -0
- package/{__tests__ → src/__tests__}/home.test.ts +1 -1
- package/src/app.ts +1 -0
- package/src/components/home/controller.ts +6 -1
- package/src/components/home/pdfController.ts +2 -5
- package/src/components/home/splitController.ts +2 -5
- package/src/helpers/dataSanitizers.ts +1 -0
- package/src/helpers/loggers.ts +4 -2
- package/src/index.ts +2 -0
- package/src/types/request/config.ts +0 -95
- package/src/types.d.ts +97 -0
- package/src/utils/pdfgen.ts +3 -6
- package/tsconfig.json +44 -41
- package/tslint.json +22 -22
- package/.husky/pre-commit +0 -6
- package/.husky/pre-push +0 -4
- /package/{__tests__ → src/__tests__}/helpers/index.ts +0 -0
package/tsconfig.json
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": false, // 关闭自动生成声明文件
|
|
4
|
+
"outDir": "./dist",
|
|
5
|
+
"rootDir": "./src",
|
|
6
|
+
"pretty": true,
|
|
7
|
+
"removeComments": true,
|
|
8
|
+
|
|
9
|
+
// "declarationDir": "./dist/types", // 声明文件输出目录
|
|
10
|
+
// "emitDeclarationOnly": true, // 仅生成声明文件
|
|
11
|
+
"module": "ESNext",
|
|
12
|
+
"target": "ES2021",
|
|
13
|
+
|
|
14
|
+
/* Strict Type-Checking Options */
|
|
15
|
+
"strict": true,
|
|
16
|
+
"noImplicitAny": true,
|
|
17
|
+
"strictNullChecks": true,
|
|
18
|
+
"strictFunctionTypes": true,
|
|
19
|
+
"strictBindCallApply": true,
|
|
20
|
+
"strictPropertyInitialization": true,
|
|
21
|
+
"noImplicitThis": false,
|
|
22
|
+
"alwaysStrict": true,
|
|
23
|
+
|
|
24
|
+
/* Additional Checks */
|
|
25
|
+
"noUnusedLocals": true,
|
|
26
|
+
"noUnusedParameters": true,
|
|
27
|
+
"noImplicitReturns": true,
|
|
28
|
+
"noFallthroughCasesInSwitch": true,
|
|
29
|
+
|
|
30
|
+
/* Module Resolution Options */
|
|
31
|
+
"moduleResolution": "node",
|
|
32
|
+
"esModuleInterop": true,
|
|
33
|
+
"resolveJsonModule": true,
|
|
34
|
+
"sourceMap": true,
|
|
35
|
+
"forceConsistentCasingInFileNames": true,
|
|
36
|
+
"types": ["jest", "node"],
|
|
37
|
+
"baseUrl": "src",
|
|
38
|
+
"paths": {
|
|
39
|
+
"@/*": ["./*"]
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
"include": ["src/**/*", "**/__tests__/**/*"],
|
|
43
|
+
"exclude": ["node_modules", "dist"] // 排除的目录
|
|
44
|
+
}
|
package/tslint.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
{
|
|
2
|
-
"defaultSeverity": "error",
|
|
3
|
-
"extends": ["tslint:recommended"],
|
|
4
|
-
"jsRules": {
|
|
5
|
-
"object-literal-sort-keys": false
|
|
6
|
-
},
|
|
7
|
-
"rules": {
|
|
8
|
-
"ordered-imports": false,
|
|
9
|
-
"object-literal-sort-keys": false,
|
|
10
|
-
"quotemark": [true, "single"],
|
|
11
|
-
"trailing-comma": [
|
|
12
|
-
true,
|
|
13
|
-
{
|
|
14
|
-
"multiline": "never",
|
|
15
|
-
"singleline": "never"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
19
|
-
"interface-name": [true, "never-prefix"]
|
|
20
|
-
},
|
|
21
|
-
"rulesDirectory": []
|
|
22
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"defaultSeverity": "error",
|
|
3
|
+
"extends": ["tslint:recommended"],
|
|
4
|
+
"jsRules": {
|
|
5
|
+
"object-literal-sort-keys": false
|
|
6
|
+
},
|
|
7
|
+
"rules": {
|
|
8
|
+
"ordered-imports": false,
|
|
9
|
+
"object-literal-sort-keys": false,
|
|
10
|
+
"quotemark": [true, "single"],
|
|
11
|
+
"trailing-comma": [
|
|
12
|
+
true,
|
|
13
|
+
{
|
|
14
|
+
"multiline": "never",
|
|
15
|
+
"singleline": "never"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"arrow-parens": [true, "ban-single-arg-parens"],
|
|
19
|
+
"interface-name": [true, "never-prefix"]
|
|
20
|
+
},
|
|
21
|
+
"rulesDirectory": []
|
|
22
|
+
}
|
package/.husky/pre-commit
DELETED
package/.husky/pre-push
DELETED
|
File without changes
|