axe-api 1.4.1 → 1.4.3
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/URLService.d.ts +1 -1
- package/build/src/Types.d.ts +0 -2
- package/package.json +8 -9
- 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";
|
|
@@ -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.3",
|
|
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",
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"test:dev": "jest --watch",
|
|
43
43
|
"lint": "eslint --max-warnings=0 .",
|
|
44
44
|
"lint:watch": "esw --watch --color",
|
|
45
|
-
"prepare:integration": "nodemon --ignore \"./tests/**\" ./scripts/run-integration-test.js",
|
|
46
45
|
"test:postgres11": "sh ./scripts/test-postgres11.sh",
|
|
47
46
|
"test:postgres12": "sh ./scripts/test-postgres12.sh",
|
|
48
47
|
"test:postgres13": "sh ./scripts/test-postgres13.sh",
|
|
@@ -64,6 +63,8 @@
|
|
|
64
63
|
"dependencies": {
|
|
65
64
|
"body-parser": "^1.20.2",
|
|
66
65
|
"change-case": "^4.1.2",
|
|
66
|
+
"colors": "^1.4.0",
|
|
67
|
+
"commander": "^12.0.0",
|
|
67
68
|
"connect": "^3.7.0",
|
|
68
69
|
"dotenv": "^16.4.4",
|
|
69
70
|
"formidable": "^3.5.1",
|
|
@@ -71,14 +72,12 @@
|
|
|
71
72
|
"knex-paginate": "^3.1.1",
|
|
72
73
|
"knex-schema-inspector": "^3.1.0",
|
|
73
74
|
"nanoid": "^3.3.7",
|
|
74
|
-
"pino": "^
|
|
75
|
+
"pino": "^9.3.2",
|
|
75
76
|
"pino-pretty": "^11.0.0",
|
|
76
77
|
"pluralize": "^8.0.0",
|
|
77
|
-
"validatorjs": "^3.22.1",
|
|
78
|
-
"commander": "^12.0.0",
|
|
79
|
-
"shelljs": "^0.8.5",
|
|
80
78
|
"rimraf": "^5.0.5",
|
|
81
|
-
"
|
|
79
|
+
"shelljs": "^0.8.5",
|
|
80
|
+
"validatorjs": "^3.22.1"
|
|
82
81
|
},
|
|
83
82
|
"devDependencies": {
|
|
84
83
|
"@babel/core": "^7.23.9",
|
|
@@ -101,7 +100,7 @@
|
|
|
101
100
|
"eslint-plugin-import": "^2.29.1",
|
|
102
101
|
"eslint-plugin-node": "^11.1.0",
|
|
103
102
|
"eslint-plugin-promise": "^6.1.1",
|
|
104
|
-
"eslint-plugin-unicorn": "^
|
|
103
|
+
"eslint-plugin-unicorn": "^55.0.0",
|
|
105
104
|
"eslint-watch": "^8.0.0",
|
|
106
105
|
"glob": "^10.3.10",
|
|
107
106
|
"husky": "^9.0.11",
|
|
@@ -109,8 +108,8 @@
|
|
|
109
108
|
"lint-staged": "^15.2.2",
|
|
110
109
|
"multer": "^1.4.5-lts.1",
|
|
111
110
|
"mysql": "^2.18.1",
|
|
111
|
+
"mysql2": "^3.10.3",
|
|
112
112
|
"node-cache": "^5.1.2",
|
|
113
|
-
"nodemon": "^3.0.3",
|
|
114
113
|
"pg": "^8.11.3",
|
|
115
114
|
"prettier": "^3.2.5",
|
|
116
115
|
"redis": "^4.6.13",
|
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>
|