axe-api 1.4.2 → 1.4.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.
- package/build/src/Handlers/ErrorHandler.d.ts +0 -2
- package/build/src/Handlers/RequestHandler.d.ts +0 -2
- package/build/src/Interfaces.d.ts +0 -2
- package/build/src/Middlewares/RateLimit/index.d.ts +0 -2
- package/build/src/Services/AxeRequest.d.ts +0 -2
- package/build/src/Services/AxeResponse.d.ts +0 -2
- package/build/src/Services/ConverterService.d.ts +0 -2
- package/build/src/Services/LogService.d.ts +1 -1
- package/build/src/Services/URLService.d.ts +1 -1
- package/build/src/Types.d.ts +0 -2
- package/package.json +43 -33
- package/readme.md +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="express" />
|
|
3
1
|
import { IncomingMessage, ServerResponse } from "http";
|
|
4
2
|
import { NextFunction } from "../Types";
|
|
5
3
|
declare const _default: (err: any, req: IncomingMessage, res: ServerResponse, next: NextFunction) => void;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="express" />
|
|
3
1
|
import { IncomingMessage, ServerResponse } from "http";
|
|
4
2
|
import { NextFunction } from "connect";
|
|
5
3
|
declare const _default: (request: IncomingMessage, response: ServerResponse, next: NextFunction) => Promise<void>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="express" />
|
|
3
1
|
import { IncomingMessage, ServerResponse } from "http";
|
|
4
2
|
import { AxeConfig, IRateLimitOptions, IContext } from "../../Interfaces";
|
|
5
3
|
export declare const setupRateLimitAdaptors: (config: AxeConfig) => Promise<void>;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="express" />
|
|
3
1
|
import { IncomingMessage, ServerResponse } from "http";
|
|
4
2
|
import { AxeRequestResponsePair, MiddlewareResolution } from "../Interfaces";
|
|
5
3
|
import { GeneralFunction, PhaseFunction, AxeFunction } from "src/Types";
|
|
@@ -2,7 +2,7 @@ import logger from "pino";
|
|
|
2
2
|
declare class LogService {
|
|
3
3
|
private static logger;
|
|
4
4
|
static setInstance(options?: logger.LoggerOptions | undefined): void;
|
|
5
|
-
static instance(): logger.Logger<never>;
|
|
5
|
+
static instance(): logger.Logger<never, boolean>;
|
|
6
6
|
static error(message: string): void;
|
|
7
7
|
static warn(message: string): void;
|
|
8
8
|
static info(message: string): void;
|
|
@@ -13,7 +13,7 @@ declare class URLService {
|
|
|
13
13
|
phases: IPhaseDefinition[];
|
|
14
14
|
hasTransaction: boolean;
|
|
15
15
|
parentPairs: IRouteParentPair[];
|
|
16
|
-
customHandler?: HandlerFunction
|
|
16
|
+
customHandler?: HandlerFunction;
|
|
17
17
|
} | undefined;
|
|
18
18
|
static getAllURLs(): IURLPair[];
|
|
19
19
|
private static getDefaultPhases;
|
package/build/src/Types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axe-api",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "AXE API is a simple tool to create Rest APIs quickly.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -31,6 +31,18 @@
|
|
|
31
31
|
"bin": {
|
|
32
32
|
"axe": "bin/axe"
|
|
33
33
|
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/axe-api/axe-api.git"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"nodejs",
|
|
40
|
+
"api",
|
|
41
|
+
"rest",
|
|
42
|
+
"rest-api",
|
|
43
|
+
"restful",
|
|
44
|
+
"axe-api"
|
|
45
|
+
],
|
|
34
46
|
"scripts": {
|
|
35
47
|
"build": "rm -rf build && tsc && rm -rf build/dev-kit",
|
|
36
48
|
"build:watch": "tsc -w",
|
|
@@ -42,7 +54,6 @@
|
|
|
42
54
|
"test:dev": "jest --watch",
|
|
43
55
|
"lint": "eslint --max-warnings=0 .",
|
|
44
56
|
"lint:watch": "esw --watch --color",
|
|
45
|
-
"prepare:integration": "nodemon --ignore \"./tests/**\" ./scripts/run-integration-test.js",
|
|
46
57
|
"test:postgres11": "sh ./scripts/test-postgres11.sh",
|
|
47
58
|
"test:postgres12": "sh ./scripts/test-postgres12.sh",
|
|
48
59
|
"test:postgres13": "sh ./scripts/test-postgres13.sh",
|
|
@@ -62,66 +73,65 @@
|
|
|
62
73
|
"node": ">=18.0.0"
|
|
63
74
|
},
|
|
64
75
|
"dependencies": {
|
|
65
|
-
"body-parser": "^1.20.
|
|
76
|
+
"body-parser": "^1.20.3",
|
|
66
77
|
"change-case": "^4.1.2",
|
|
67
78
|
"colors": "^1.4.0",
|
|
68
|
-
"commander": "^12.
|
|
79
|
+
"commander": "^12.1.0",
|
|
69
80
|
"connect": "^3.7.0",
|
|
70
|
-
"dotenv": "^16.4.
|
|
81
|
+
"dotenv": "^16.4.5",
|
|
71
82
|
"formidable": "^3.5.1",
|
|
72
83
|
"knex": "^3.1.0",
|
|
73
|
-
"knex-paginate": "^3.1.
|
|
84
|
+
"knex-paginate": "^3.1.4",
|
|
74
85
|
"knex-schema-inspector": "^3.1.0",
|
|
75
86
|
"nanoid": "^3.3.7",
|
|
76
|
-
"pino": "^9.
|
|
77
|
-
"pino-pretty": "^11.
|
|
87
|
+
"pino": "^9.4.0",
|
|
88
|
+
"pino-pretty": "^11.2.2",
|
|
78
89
|
"pluralize": "^8.0.0",
|
|
79
|
-
"rimraf": "^5.0.
|
|
90
|
+
"rimraf": "^5.0.10",
|
|
80
91
|
"shelljs": "^0.8.5",
|
|
81
92
|
"validatorjs": "^3.22.1"
|
|
82
93
|
},
|
|
83
94
|
"devDependencies": {
|
|
84
|
-
"@babel/core": "^7.
|
|
85
|
-
"@babel/preset-env": "^7.
|
|
86
|
-
"@babel/preset-typescript": "^7.
|
|
87
|
-
"@elastic/elasticsearch": "^8.
|
|
95
|
+
"@babel/core": "^7.25.2",
|
|
96
|
+
"@babel/preset-env": "^7.25.4",
|
|
97
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
98
|
+
"@elastic/elasticsearch": "^8.15.0",
|
|
88
99
|
"@types/accept-language-parser": "^1.5.6",
|
|
89
|
-
"@types/aws-lambda": "^8.10.
|
|
100
|
+
"@types/aws-lambda": "^8.10.145",
|
|
90
101
|
"@types/cors": "^2.8.17",
|
|
91
102
|
"@types/formidable": "^3.4.5",
|
|
92
|
-
"@types/multer": "^1.4.
|
|
103
|
+
"@types/multer": "^1.4.12",
|
|
93
104
|
"@types/pluralize": "^0.0.33",
|
|
94
105
|
"@types/validatorjs": "^3.15.5",
|
|
95
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
|
96
|
-
"@typescript-eslint/parser": "^7.0
|
|
106
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
107
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
97
108
|
"babel-jest": "^29.7.0",
|
|
98
109
|
"cors": "^2.8.5",
|
|
99
|
-
"eslint": "^8.
|
|
110
|
+
"eslint": "^8.57.1",
|
|
100
111
|
"eslint-config-standard": "^17.1.0",
|
|
101
|
-
"eslint-plugin-import": "^2.
|
|
112
|
+
"eslint-plugin-import": "^2.30.0",
|
|
102
113
|
"eslint-plugin-node": "^11.1.0",
|
|
103
|
-
"eslint-plugin-promise": "^6.
|
|
104
|
-
"eslint-plugin-unicorn": "^
|
|
114
|
+
"eslint-plugin-promise": "^6.6.0",
|
|
115
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
105
116
|
"eslint-watch": "^8.0.0",
|
|
106
|
-
"glob": "^
|
|
107
|
-
"husky": "^9.
|
|
117
|
+
"glob": "^11.0.0",
|
|
118
|
+
"husky": "^9.1.6",
|
|
108
119
|
"jest": "^29.7.0",
|
|
109
|
-
"lint-staged": "^15.2.
|
|
120
|
+
"lint-staged": "^15.2.10",
|
|
110
121
|
"multer": "^1.4.5-lts.1",
|
|
111
122
|
"mysql": "^2.18.1",
|
|
112
|
-
"mysql2": "^3.
|
|
123
|
+
"mysql2": "^3.11.3",
|
|
113
124
|
"node-cache": "^5.1.2",
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"serve-static": "^1.15.0",
|
|
125
|
+
"pg": "^8.13.0",
|
|
126
|
+
"prettier": "^3.3.3",
|
|
127
|
+
"redis": "^4.7.0",
|
|
128
|
+
"robust-validator": "^1.1.1",
|
|
129
|
+
"serve-static": "^1.16.2",
|
|
120
130
|
"set-value": ">=4.1.0",
|
|
121
131
|
"sqlite3": "^5.1.7",
|
|
122
132
|
"ts-node": "^10.9.2",
|
|
123
|
-
"tsx": "^4.
|
|
124
|
-
"typescript": "^5.
|
|
133
|
+
"tsx": "^4.19.1",
|
|
134
|
+
"typescript": "^5.6.2"
|
|
125
135
|
},
|
|
126
136
|
"lint-staged": {
|
|
127
137
|
"**/*": "prettier --write --ignore-unknown"
|
package/readme.md
CHANGED
|
@@ -32,7 +32,7 @@ It offers a comprehensive structure for your API, including numerous features an
|
|
|
32
32
|
<div style="display: flex; justify-content: center;">
|
|
33
33
|
|
|
34
34
|
<a href="https://www.youtube.com/watch?v=3p4jggsNrJA" target="_blank">
|
|
35
|
-
<img src="
|
|
35
|
+
<img src="https://raw.githubusercontent.com/axe-api/axe-api/master/youtube.png" />
|
|
36
36
|
</a>
|
|
37
37
|
|
|
38
38
|
</div>
|