namirasoft-node 1.0.25 → 1.0.26
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/EnvService.d.ts +1 -1
- package/dist/EnvService.js +2 -2
- package/dist/EnvService.js.map +1 -1
- package/dist/RequestHeaderService.d.ts +1 -1
- package/dist/RequestHeaderService.js +2 -2
- package/dist/RequestHeaderService.js.map +1 -1
- package/package.json +2 -2
- package/src/EnvService.ts +2 -2
- package/src/RequestHeaderService.ts +2 -2
package/dist/EnvService.d.ts
CHANGED
package/dist/EnvService.js
CHANGED
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EnvService = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
5
|
class EnvService extends namirasoft_core_1.ConvertService {
|
|
6
|
-
constructor(name) {
|
|
7
|
-
super();
|
|
6
|
+
constructor(name, mandatory = false) {
|
|
7
|
+
super(mandatory);
|
|
8
8
|
this.name = name;
|
|
9
9
|
}
|
|
10
10
|
getNullString() {
|
package/dist/EnvService.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnvService.js","sourceRoot":"","sources":["../src/EnvService.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEjD,MAAa,UAAW,SAAQ,gCAAc;IAG1C,YAAY,IAAY;
|
|
1
|
+
{"version":3,"file":"EnvService.js","sourceRoot":"","sources":["../src/EnvService.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AAEjD,MAAa,UAAW,SAAQ,gCAAc;IAG1C,YAAY,IAAY,EAAE,YAAqB,KAAK;QAEhD,KAAK,CAAC,SAAS,CAAC,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACQ,aAAa;QAElB,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,GAAG;YACH,OAAO,GAAG,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAfD,gCAeC"}
|
|
@@ -3,6 +3,6 @@ import { ConvertService } from 'namirasoft-core';
|
|
|
3
3
|
export declare class RequestHeaderService extends ConvertService {
|
|
4
4
|
private req;
|
|
5
5
|
private name;
|
|
6
|
-
constructor(req: express.Request, name: string);
|
|
6
|
+
constructor(req: express.Request, name: string, mandatory?: boolean);
|
|
7
7
|
getNullString(): string | null;
|
|
8
8
|
}
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RequestHeaderService = void 0;
|
|
4
4
|
const namirasoft_core_1 = require("namirasoft-core");
|
|
5
5
|
class RequestHeaderService extends namirasoft_core_1.ConvertService {
|
|
6
|
-
constructor(req, name) {
|
|
7
|
-
super();
|
|
6
|
+
constructor(req, name, mandatory = false) {
|
|
7
|
+
super(mandatory);
|
|
8
8
|
this.req = req;
|
|
9
9
|
this.name = name;
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestHeaderService.js","sourceRoot":"","sources":["../src/RequestHeaderService.ts"],"names":[],"mappings":";;;AACA,qDAAgE;AAEhE,MAAa,oBAAqB,SAAQ,gCAAc;IAIpD,YAAY,GAAoB,EAAE,IAAY;
|
|
1
|
+
{"version":3,"file":"RequestHeaderService.js","sourceRoot":"","sources":["../src/RequestHeaderService.ts"],"names":[],"mappings":";;;AACA,qDAAgE;AAEhE,MAAa,oBAAqB,SAAQ,gCAAc;IAIpD,YAAY,GAAoB,EAAE,IAAY,EAAE,YAAqB,KAAK;QAEtE,KAAK,CAAC,SAAS,CAAC,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IACQ,aAAa;QAElB,IAAI,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvC,OAAO,IAAI,+BAAa,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,CAAC;IACnD,CAAC;CACJ;AAfD,oDAeC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "namirasoft-node",
|
|
3
3
|
"description": "Namira Software Corporation Node NPM Package",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.26",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"cors": "^2.8.5",
|
|
19
19
|
"express": "^4.18.2",
|
|
20
20
|
"joi": "^17.11.0",
|
|
21
|
-
"namirasoft-core": "^1.0.
|
|
21
|
+
"namirasoft-core": "^1.0.14",
|
|
22
22
|
"namirasoft-log": "^1.0.3",
|
|
23
23
|
"nodemailer": "^6.9.7",
|
|
24
24
|
"nodemailer-smtp-transport": "^2.7.4",
|
package/src/EnvService.ts
CHANGED
|
@@ -3,9 +3,9 @@ import { ConvertService } from "namirasoft-core";
|
|
|
3
3
|
export class EnvService extends ConvertService
|
|
4
4
|
{
|
|
5
5
|
name: string;
|
|
6
|
-
constructor(name: string)
|
|
6
|
+
constructor(name: string, mandatory: boolean = false)
|
|
7
7
|
{
|
|
8
|
-
super();
|
|
8
|
+
super(mandatory);
|
|
9
9
|
this.name = name;
|
|
10
10
|
}
|
|
11
11
|
override getNullString(): string | null
|
|
@@ -5,9 +5,9 @@ export class RequestHeaderService extends ConvertService
|
|
|
5
5
|
{
|
|
6
6
|
private req: express.Request;
|
|
7
7
|
private name: string;
|
|
8
|
-
constructor(req: express.Request, name: string)
|
|
8
|
+
constructor(req: express.Request, name: string, mandatory: boolean = false)
|
|
9
9
|
{
|
|
10
|
-
super();
|
|
10
|
+
super(mandatory);
|
|
11
11
|
this.req = req;
|
|
12
12
|
this.name = name;
|
|
13
13
|
}
|