namirasoft-node 1.0.20 → 1.0.22

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.
@@ -2,4 +2,6 @@ import { BaseDatabase } from "./BaseDatabase";
2
2
  export declare class BaseTable<D extends BaseDatabase> {
3
3
  database: D;
4
4
  constructor(database: D);
5
+ getSecureColumns(): string[];
6
+ secure(obj: any): void;
5
7
  }
package/dist/BaseTable.js CHANGED
@@ -5,6 +5,13 @@ class BaseTable {
5
5
  constructor(database) {
6
6
  this.database = database;
7
7
  }
8
+ getSecureColumns() {
9
+ return [];
10
+ }
11
+ secure(obj) {
12
+ let cols = this.getSecureColumns();
13
+ cols.forEach(col => delete obj[col]);
14
+ }
8
15
  }
9
16
  exports.BaseTable = BaseTable;
10
17
  //# sourceMappingURL=BaseTable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTable.js","sourceRoot":"","sources":["../src/BaseTable.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;IAGlB,YAAY,QAAW;QAEnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;CACJ;AAPD,8BAOC"}
1
+ {"version":3,"file":"BaseTable.js","sourceRoot":"","sources":["../src/BaseTable.ts"],"names":[],"mappings":";;;AAEA,MAAa,SAAS;IAGlB,YAAY,QAAW;QAEnB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IACD,gBAAgB;QAEZ,OAAO,EAAE,CAAC;IACd,CAAC;IACD,MAAM,CAAC,GAAQ;QAEX,IAAI,IAAI,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;CACJ;AAhBD,8BAgBC"}
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.20",
4
+ "version": "1.0.22",
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.12",
21
+ "namirasoft-core": "^1.0.13",
22
22
  "namirasoft-log": "^1.0.1",
23
23
  "nodemailer": "^6.9.7",
24
24
  "nodemailer-smtp-transport": "^2.7.4",
package/public/index.html CHANGED
@@ -53,10 +53,14 @@
53
53
  justify-content: space-between;
54
54
  }
55
55
 
56
- .project-logo {
56
+ .big-logo {
57
57
  width: 128px;
58
58
  height: 128px;
59
59
  }
60
+
61
+ h3 {
62
+ font-size: 1.25rem;
63
+ }
60
64
  </style>
61
65
  </head>
62
66
 
@@ -64,7 +68,7 @@
64
68
  <div class="container page-parent">
65
69
  <div>
66
70
  <div class="header">
67
- <img src="@logo" alt="Project Logo" class="img-fluid project-logo">
71
+ <img src="@logo" alt="Project Logo" class="img-fluid big-logo">
68
72
  <h1>@title</h1>
69
73
  <h5>@description</h5>
70
74
  </div>
@@ -86,9 +90,11 @@
86
90
  </div>
87
91
  </div>
88
92
  <div class="company">
89
- <img src="https://static.namirasoft.com/logo/namirasoft/base.png" alt="Company Logo" class="img-fluid">
90
- <h3>Namira Software Corporation</h3>
91
- <p>Visit our website: <a target="_blank" href="https://namirasoft.com">namirasoft.com</a></p>
93
+ <a href="https://namirasoft.com" target="_blank">
94
+ <img src="https://static.namirasoft.com/logo/namirasoft/base.png" alt="Company Logo"
95
+ class="img-fluid big-logo">
96
+ <h3>Namira Software Corporation</h3>
97
+ </a>
92
98
  <p>©Copyright 2010 to 2023 <a target="_blank" href="https://namirasoft.com">Namira Software Corporation</a>.
93
99
  All rights
94
100
  reserved.</p>
package/src/BaseTable.ts CHANGED
@@ -7,4 +7,13 @@ export class BaseTable<D extends BaseDatabase>
7
7
  {
8
8
  this.database = database;
9
9
  }
10
+ getSecureColumns(): string[]
11
+ {
12
+ return [];
13
+ }
14
+ secure(obj: any)
15
+ {
16
+ let cols = this.getSecureColumns();
17
+ cols.forEach(col => delete obj[col]);
18
+ }
10
19
  }