namirasoft-node 1.3.48 → 1.3.49
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/dist/BaseDatabase.d.ts +1 -0
- package/dist/BaseDatabase.js.map +1 -1
- package/dist/EmptyDatabase.d.ts +7 -0
- package/dist/EmptyDatabase.js +27 -0
- package/dist/EmptyDatabase.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/BaseDatabase.ts +1 -0
- package/src/EmptyDatabase.ts +12 -0
- package/src/index.ts +1 -0
package/dist/BaseDatabase.d.ts
CHANGED
package/dist/BaseDatabase.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseDatabase.js","sourceRoot":"","sources":["../src/BaseDatabase.ts"],"names":[],"mappings":";;;AAAA,MAAsB,YAAY;
|
|
1
|
+
{"version":3,"file":"BaseDatabase.js","sourceRoot":"","sources":["../src/BaseDatabase.ts"],"names":[],"mappings":";;;AAAA,MAAsB,YAAY;CAMjC;AAND,oCAMC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EmptyDatabase = void 0;
|
|
13
|
+
const BaseDatabase_1 = require("./BaseDatabase");
|
|
14
|
+
class EmptyDatabase extends BaseDatabase_1.BaseDatabase {
|
|
15
|
+
init() { }
|
|
16
|
+
connect() { }
|
|
17
|
+
sync(_) {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () { });
|
|
19
|
+
}
|
|
20
|
+
getValues(_, __, ___) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
return [];
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.EmptyDatabase = EmptyDatabase;
|
|
27
|
+
//# sourceMappingURL=EmptyDatabase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyDatabase.js","sourceRoot":"","sources":["../src/EmptyDatabase.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAA8C;AAE9C,MAAa,aAAc,SAAQ,2BAAY;IAElC,IAAI,KAAK,CAAC;IACV,OAAO,KAAK,CAAC;IACP,IAAI,CAAC,CAAU;8DAAI,CAAC;KAAA;IACpB,SAAS,CAAC,CAAS,EAAE,EAAU,EAAE,GAAW;;YAEvD,OAAO,EAAE,CAAC;QACd,CAAC;KAAA;CACJ;AATD,sCASC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./BaseDatabase";
|
|
|
7
7
|
export * from "./BaseEmailService";
|
|
8
8
|
export * from "./BaseTable";
|
|
9
9
|
export * from "./CommandOperation";
|
|
10
|
+
export * from "./EmptyDatabase";
|
|
10
11
|
export * from "./EnvService";
|
|
11
12
|
export * from "./GmailService";
|
|
12
13
|
export * from "./IPOperation";
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./BaseDatabase"), exports);
|
|
|
23
23
|
__exportStar(require("./BaseEmailService"), exports);
|
|
24
24
|
__exportStar(require("./BaseTable"), exports);
|
|
25
25
|
__exportStar(require("./CommandOperation"), exports);
|
|
26
|
+
__exportStar(require("./EmptyDatabase"), exports);
|
|
26
27
|
__exportStar(require("./EnvService"), exports);
|
|
27
28
|
__exportStar(require("./GmailService"), exports);
|
|
28
29
|
__exportStar(require("./IPOperation"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,6CAA2B;AAC3B,iDAA+B;AAC/B,qDAAmC;AACnC,8CAA4B;AAC5B,qDAAmC;AACnC,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,yCAAuB;AACvB,iDAA+B;AAC/B,yDAAuC;AACvC,4DAA0C;AAC1C,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,wDAAsC;AACtC,mDAAiC;AACjC,6CAA2B;AAC3B,iDAA+B;AAC/B,qDAAmC;AACnC,8CAA4B;AAC5B,qDAAmC;AACnC,kDAAgC;AAChC,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,yCAAuB;AACvB,iDAA+B;AAC/B,yDAAuC;AACvC,4DAA0C;AAC1C,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"framework": "npm",
|
|
9
9
|
"application": "package",
|
|
10
10
|
"private": false,
|
|
11
|
-
"version": "1.3.
|
|
11
|
+
"version": "1.3.49",
|
|
12
12
|
"author": "Amir Abolhasani",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"main": "./dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@types/cookie-parser": "^1.4.7",
|
|
22
22
|
"@types/cors": "^2.8.17",
|
|
23
23
|
"@types/express": "^4.17.21",
|
|
24
|
-
"@types/node": "^20.14.
|
|
24
|
+
"@types/node": "^20.14.4",
|
|
25
25
|
"@types/node-cron": "^3.0.11",
|
|
26
26
|
"@types/nodemailer": "^6.4.15",
|
|
27
27
|
"@types/nodemailer-smtp-transport": "^2.7.8",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"cors": "^2.8.5",
|
|
33
33
|
"express": "^4.19.2",
|
|
34
34
|
"joi": "^17.13.1",
|
|
35
|
-
"namirasoft-core": "^1.3.
|
|
35
|
+
"namirasoft-core": "^1.3.57",
|
|
36
36
|
"namirasoft-log": "^1.3.24",
|
|
37
37
|
"namirasoft-schema": "^1.3.16",
|
|
38
38
|
"node-cron": "^3.0.3",
|
package/src/BaseDatabase.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseDatabase } from "./BaseDatabase";
|
|
2
|
+
|
|
3
|
+
export class EmptyDatabase extends BaseDatabase
|
|
4
|
+
{
|
|
5
|
+
override init() { }
|
|
6
|
+
override connect() { }
|
|
7
|
+
override async sync(_: boolean) { }
|
|
8
|
+
override async getValues(_: string, __: string, ___: number): Promise<string[]>
|
|
9
|
+
{
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./BaseDatabase";
|
|
|
7
7
|
export * from "./BaseEmailService";
|
|
8
8
|
export * from "./BaseTable";
|
|
9
9
|
export * from "./CommandOperation";
|
|
10
|
+
export * from "./EmptyDatabase";
|
|
10
11
|
export * from "./EnvService";
|
|
11
12
|
export * from "./GmailService";
|
|
12
13
|
export * from "./IPOperation";
|