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.
@@ -1,6 +1,6 @@
1
1
  import { ConvertService } from "namirasoft-core";
2
2
  export declare class EnvService extends ConvertService {
3
3
  name: string;
4
- constructor(name: string);
4
+ constructor(name: string, mandatory?: boolean);
5
5
  getNullString(): string | null;
6
6
  }
@@ -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() {
@@ -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;QAEpB,KAAK,EAAE,CAAC;QACR,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"}
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;QAE1C,KAAK,EAAE,CAAC;QACR,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"}
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.25",
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.13",
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
  }