axe-api 1.0.0 → 1.0.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.
|
@@ -15,7 +15,7 @@ exports.default = (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
15
15
|
const { item, res, model, handlerType } = context;
|
|
16
16
|
// Deleting all cached result for the model
|
|
17
17
|
const config = model.getCacheConfiguration(handlerType);
|
|
18
|
-
if ((config === null || config === void 0 ? void 0 : config.invalidation) === Enums_1.CacheStrategies.TagBased) {
|
|
18
|
+
if ((config === null || config === void 0 ? void 0 : config.enable) && (config === null || config === void 0 ? void 0 : config.invalidation) === Enums_1.CacheStrategies.TagBased) {
|
|
19
19
|
(0, Helpers_1.cleanRelatedCachedObjectByModel)(model, config);
|
|
20
20
|
}
|
|
21
21
|
// Preparing the json response
|
package/build/src/constants.js
CHANGED
|
@@ -299,7 +299,9 @@ exports.DEFAULT_APP_CONFIG = {
|
|
|
299
299
|
},
|
|
300
300
|
},
|
|
301
301
|
errorHandler: ErrorHandler_1.default,
|
|
302
|
-
redis: {
|
|
302
|
+
redis: {
|
|
303
|
+
url: "redis://127.0.0.1:6379",
|
|
304
|
+
},
|
|
303
305
|
cache: Object.assign({}, exports.DEFAULT_CACHE_CONFIGURATION),
|
|
304
306
|
elasticSearch: {
|
|
305
307
|
node: "http://localhost:9200",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axe-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
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",
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
"test:sqlite": "sh ./scripts/test-sqlite.sh",
|
|
53
53
|
"prettier:check": "prettier --check .",
|
|
54
54
|
"prettier:write": "prettier --write .",
|
|
55
|
-
"prepare": "husky install"
|
|
55
|
+
"prepare": "husky install",
|
|
56
|
+
"benchmark": "k6 run benchmark/run.js"
|
|
57
|
+
},
|
|
58
|
+
"engines" : {
|
|
59
|
+
"node" : ">=18.0.0"
|
|
56
60
|
},
|
|
57
61
|
"dependencies": {
|
|
58
62
|
"body-parser": "^1.20.2",
|
|
@@ -103,7 +107,7 @@
|
|
|
103
107
|
"nodemon": "^3.0.2",
|
|
104
108
|
"open-swagger-ui": "^1.2.0",
|
|
105
109
|
"pg": "^8.11.3",
|
|
106
|
-
"prettier": "^3.1.
|
|
110
|
+
"prettier": "^3.1.1",
|
|
107
111
|
"redis": "^4.6.11",
|
|
108
112
|
"set-value": ">=4.1.0",
|
|
109
113
|
"sqlite3": "^5.1.6",
|
package/build/dev-kit.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/build/dev-kit.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const node_color_log_1 = __importDefault(require("node-color-log"));
|
|
7
|
-
const dotenv_1 = __importDefault(require("dotenv"));
|
|
8
|
-
const path_1 = __importDefault(require("path"));
|
|
9
|
-
const index_1 = require("./index");
|
|
10
|
-
node_color_log_1.default.bgColor("yellow").color("black").log("Axe API dev-kit (1.0.1)");
|
|
11
|
-
node_color_log_1.default
|
|
12
|
-
.color("blue")
|
|
13
|
-
.log("Docs: https://axe-api.com/contribution/fundamentals.html \n");
|
|
14
|
-
dotenv_1.default.config();
|
|
15
|
-
const server = new index_1.Server();
|
|
16
|
-
server.start(path_1.default.join(__dirname, "dev-kit"));
|