axe-api 1.4.2 → 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.
@@ -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 { Knex } from "knex";
4
2
  import { Options as FormOptions } from "formidable";
5
3
  import { Column } from "knex-schema-inspector/lib/types/column";
@@ -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 formidable, { Options as FormOptions } from "formidable";
4
2
  import { IncomingMessage } from "http";
5
3
  import { ILanguage } from "../Interfaces";
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="express" />
3
1
  import { ServerResponse } from "http";
4
2
  import { StatusCodes } from "src/Enums";
5
3
  import { ILanguage } from "src/Interfaces";
@@ -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 | undefined;
16
+ customHandler?: HandlerFunction;
17
17
  } | undefined;
18
18
  static getAllURLs(): IURLPair[];
19
19
  private static getDefaultPhases;
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="express" />
3
1
  import { IncomingMessage, ServerResponse } from "http";
4
2
  import { IHandlerBaseMiddleware, IContext } from "./Interfaces";
5
3
  import AxeRequest from "./Services/AxeRequest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axe-api",
3
- "version": "1.4.2",
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",
@@ -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": "^52.0.0",
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",
@@ -111,7 +110,6 @@
111
110
  "mysql": "^2.18.1",
112
111
  "mysql2": "^3.10.3",
113
112
  "node-cache": "^5.1.2",
114
- "nodemon": "^3.0.3",
115
113
  "pg": "^8.11.3",
116
114
  "prettier": "^3.2.5",
117
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="./youtube.png" />
35
+ <img src="https://raw.githubusercontent.com/axe-api/axe-api/master/youtube.png" />
36
36
  </a>
37
37
 
38
38
  </div>