axiodb 1.7.10 → 2.7.11
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.
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.InMemoryCache = void 0;
|
|
12
13
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
13
14
|
/**
|
|
14
15
|
* @description This class is responsible for caching data in memory
|
|
@@ -169,5 +170,6 @@ class InMemoryCache {
|
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
}
|
|
173
|
+
exports.InMemoryCache = InMemoryCache;
|
|
172
174
|
exports.default = new InMemoryCache(86400); // 24 hours
|
|
173
175
|
//# sourceMappingURL=cache.operation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.operation.js","sourceRoot":"","sources":["../../source/Caching/cache.operation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cache.operation.js","sourceRoot":"","sources":["../../source/Caching/cache.operation.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAuD;AACvD;;;;;;IAMI;AACJ,MAAa,aAAa;IAOxB;;;OAGG;IACH,YAAY,MAAuB,KAAK;QAPhC,oBAAe,GAAoD,EAAE,CAAC;QAC7D,2BAAsB,GAAW,KAAK,CAAC,CAAC,WAAW;QACnD,cAAS,GAAW,CAAC,CAAC,CAAC,UAAU;QAMhD,IAAI,CAAC,GAAG,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;QACzD,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;QACtB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,yEAAyE;QACzE,IAAI,CAAC,cAAc,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,CAAC,GAAG,CAAC,CAAC;oBACxC,IAAI,SAAS,EAAE,CAAC;wBACd,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CACnB,GAAG,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,YAAY,CAAC,OAAO,EAAE,CACjD,CAAC;wBACF,IAAI,IAAI,GAAG,IAAI,CAAC,sBAAsB,GAAG,IAAI,EAAE,CAAC;4BAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;wBAC/B,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,8CAA8C;gBAC9C,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC1D,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,CAAC;oBACnE,OAAO,IAAI,GAAG,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC;gBACnD,CAAC,CAAC,CAAC;YACL,CAAC,EACD,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAC3B,CAAC;QACJ,CAAC;KAAA;CACF;AAxJD,sCAwJC;AACD,kBAAe,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW"}
|
package/lib/config/DB.d.ts
CHANGED
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
import { InMemoryCache } from "../Caching/cache.operation";
|
|
2
|
+
import Converter from "../Helper/Converter.helper";
|
|
3
|
+
import { CryptoHelper } from "../Helper/Crypto.helper";
|
|
4
|
+
import ResponseHelper from "../Helper/response.helper";
|
|
1
5
|
import { SchemaTypes } from "../Models/DataTypes.models";
|
|
2
6
|
import schemaValidate from "../Models/validator.models";
|
|
7
|
+
import Aggregation from "../Operation/Aggregation/Aggregation.Operation";
|
|
8
|
+
import Collection from "../Operation/Collection/collection.operation";
|
|
9
|
+
import Database from "../Operation/Database/database.operation";
|
|
3
10
|
import { AxioDB } from "../Operation/Indexation.operation";
|
|
4
|
-
|
|
11
|
+
import FileManager from "../Storage/FileManager";
|
|
12
|
+
import FolderManager from "../Storage/FolderManager";
|
|
13
|
+
declare const InstanceTypes: {
|
|
14
|
+
Collection: typeof Collection;
|
|
15
|
+
Database: typeof Database;
|
|
16
|
+
Aggregation: typeof Aggregation;
|
|
17
|
+
FileManager: typeof FileManager;
|
|
18
|
+
FolderManager: typeof FolderManager;
|
|
19
|
+
Converter: typeof Converter;
|
|
20
|
+
CryptoHelper: typeof CryptoHelper;
|
|
21
|
+
ResponseHelper: typeof ResponseHelper;
|
|
22
|
+
InMemoryCache: typeof InMemoryCache;
|
|
23
|
+
};
|
|
24
|
+
export { SchemaTypes, schemaValidate, AxioDB, InstanceTypes };
|
|
5
25
|
declare const _default: {
|
|
6
26
|
SchemaTypes: {
|
|
7
27
|
string: <TSchema = string>() => import("joi").StringSchema<TSchema>;
|
|
@@ -30,5 +50,16 @@ declare const _default: {
|
|
|
30
50
|
};
|
|
31
51
|
schemaValidate: typeof schemaValidate;
|
|
32
52
|
AxioDB: typeof AxioDB;
|
|
53
|
+
InstanceTypes: {
|
|
54
|
+
Collection: typeof Collection;
|
|
55
|
+
Database: typeof Database;
|
|
56
|
+
Aggregation: typeof Aggregation;
|
|
57
|
+
FileManager: typeof FileManager;
|
|
58
|
+
FolderManager: typeof FolderManager;
|
|
59
|
+
Converter: typeof Converter;
|
|
60
|
+
CryptoHelper: typeof CryptoHelper;
|
|
61
|
+
ResponseHelper: typeof ResponseHelper;
|
|
62
|
+
InMemoryCache: typeof InMemoryCache;
|
|
63
|
+
};
|
|
33
64
|
};
|
|
34
65
|
export default _default;
|
package/lib/config/DB.js
CHANGED
|
@@ -3,18 +3,41 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.AxioDB = exports.schemaValidate = exports.SchemaTypes = void 0;
|
|
6
|
+
exports.InstanceTypes = exports.AxioDB = exports.schemaValidate = exports.SchemaTypes = void 0;
|
|
7
7
|
// Import All Required Sub Modules
|
|
8
|
+
const cache_operation_1 = require("../Caching/cache.operation");
|
|
9
|
+
const Converter_helper_1 = __importDefault(require("../Helper/Converter.helper"));
|
|
10
|
+
const Crypto_helper_1 = require("../Helper/Crypto.helper");
|
|
11
|
+
const response_helper_1 = __importDefault(require("../Helper/response.helper"));
|
|
8
12
|
const DataTypes_models_1 = require("../Models/DataTypes.models");
|
|
9
13
|
Object.defineProperty(exports, "SchemaTypes", { enumerable: true, get: function () { return DataTypes_models_1.SchemaTypes; } });
|
|
10
14
|
const validator_models_1 = __importDefault(require("../Models/validator.models"));
|
|
11
15
|
exports.schemaValidate = validator_models_1.default;
|
|
16
|
+
const Aggregation_Operation_1 = __importDefault(require("../Operation/Aggregation/Aggregation.Operation"));
|
|
17
|
+
const collection_operation_1 = __importDefault(require("../Operation/Collection/collection.operation"));
|
|
18
|
+
const database_operation_1 = __importDefault(require("../Operation/Database/database.operation"));
|
|
12
19
|
const Indexation_operation_1 = require("../Operation/Indexation.operation");
|
|
13
20
|
Object.defineProperty(exports, "AxioDB", { enumerable: true, get: function () { return Indexation_operation_1.AxioDB; } });
|
|
21
|
+
const FileManager_1 = __importDefault(require("../Storage/FileManager"));
|
|
22
|
+
const FolderManager_1 = __importDefault(require("../Storage/FolderManager"));
|
|
23
|
+
// Export All Required Sub Modules Instance Types to support TypeScript
|
|
24
|
+
const InstanceTypes = {
|
|
25
|
+
Collection: collection_operation_1.default,
|
|
26
|
+
Database: database_operation_1.default,
|
|
27
|
+
Aggregation: Aggregation_Operation_1.default,
|
|
28
|
+
FileManager: FileManager_1.default,
|
|
29
|
+
FolderManager: FolderManager_1.default,
|
|
30
|
+
Converter: Converter_helper_1.default,
|
|
31
|
+
CryptoHelper: Crypto_helper_1.CryptoHelper,
|
|
32
|
+
ResponseHelper: response_helper_1.default,
|
|
33
|
+
InMemoryCache: cache_operation_1.InMemoryCache,
|
|
34
|
+
};
|
|
35
|
+
exports.InstanceTypes = InstanceTypes;
|
|
14
36
|
// Export With All Sub Modules
|
|
15
37
|
exports.default = {
|
|
16
38
|
SchemaTypes: DataTypes_models_1.SchemaTypes,
|
|
17
39
|
schemaValidate: validator_models_1.default,
|
|
18
40
|
AxioDB: Indexation_operation_1.AxioDB,
|
|
41
|
+
InstanceTypes,
|
|
19
42
|
};
|
|
20
43
|
//# sourceMappingURL=DB.js.map
|
package/lib/config/DB.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AAAA,kCAAkC;AAClC,iEAAyD;
|
|
1
|
+
{"version":3,"file":"DB.js","sourceRoot":"","sources":["../../source/config/DB.ts"],"names":[],"mappings":";;;;;;AAAA,kCAAkC;AAClC,gEAA2D;AAC3D,kFAAmD;AACnD,2DAAuD;AACvD,gFAAuD;AACvD,iEAAyD;AAsBhD,4FAtBA,8BAAW,OAsBA;AArBpB,kFAAwD;AAqBlC,yBArBf,0BAAc,CAqBe;AApBpC,2GAAyE;AACzE,wGAAsE;AACtE,kGAAgE;AAChE,4EAA2D;AAiBrB,uFAjB7B,6BAAM,OAiB6B;AAhB5C,yEAAiD;AACjD,6EAAqD;AAErD,uEAAuE;AACvE,MAAM,aAAa,GAAG;IACpB,UAAU,EAAV,8BAAU;IACV,QAAQ,EAAR,4BAAQ;IACR,WAAW,EAAX,+BAAW;IACX,WAAW,EAAX,qBAAW;IACX,aAAa,EAAb,uBAAa;IACb,SAAS,EAAT,0BAAS;IACT,YAAY,EAAZ,4BAAY;IACZ,cAAc,EAAd,yBAAc;IACd,aAAa,EAAb,+BAAa;CACd,CAAC;AAE4C,sCAAa;AAE3D,8BAA8B;AAC9B,kBAAe;IACb,WAAW,EAAX,8BAAW;IACX,cAAc,EAAd,0BAAc;IACd,MAAM,EAAN,6BAAM;IACN,aAAa;CACd,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "axiodb",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.7.11",
|
|
4
4
|
"description": "A blazing-fast, lightweight, and scalable nodejs package based DBMS for modern applications. Supports schemas, encryption, and advanced query capabilities.",
|
|
5
5
|
"main": "./lib/config/DB.js",
|
|
6
6
|
"types": "./lib/config/DB.d.ts",
|