@nattyjs/common 0.0.1-beta.27 → 0.0.1-beta.28

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/index.cjs CHANGED
@@ -48,7 +48,8 @@ const commonContainer = new class {
48
48
  }
49
49
  }
50
50
  };
51
- this.nattyConfig = { ...{ api: { rootPath: "api" }, autoGeneratePort: true, modelBinding, globalConfig: {} }, ...config };
51
+ const secureConfig = { sensitiveProps: ["password", "mobileNo", "email"] };
52
+ this.nattyConfig = { ...{ api: { rootPath: "api" }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
52
53
  }
53
54
  setupBuildOptions(options) {
54
55
  this.buildOptions = options;
package/dist/index.d.ts CHANGED
@@ -65,6 +65,10 @@ interface PayloadConfig {
65
65
  limit?: number;
66
66
  }
67
67
 
68
+ interface SecureConfig {
69
+ sensitiveProps?: String[];
70
+ }
71
+
68
72
  interface NattyConfig {
69
73
  app: any;
70
74
  testModule?: NattyTestModule;
@@ -77,6 +81,7 @@ interface NattyConfig {
77
81
  port?: number;
78
82
  cors?: CorsConfig;
79
83
  payload?: PayloadConfig;
84
+ secure?: SecureConfig;
80
85
  }
81
86
 
82
87
  declare abstract class AbstractRunner {
package/dist/index.mjs CHANGED
@@ -31,7 +31,8 @@ const commonContainer = new class {
31
31
  }
32
32
  }
33
33
  };
34
- this.nattyConfig = { ...{ api: { rootPath: "api" }, autoGeneratePort: true, modelBinding, globalConfig: {} }, ...config };
34
+ const secureConfig = { sensitiveProps: ["password", "mobileNo", "email"] };
35
+ this.nattyConfig = { ...{ api: { rootPath: "api" }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
35
36
  }
36
37
  setupBuildOptions(options) {
37
38
  this.buildOptions = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.27",
3
+ "version": "0.0.1-beta.28",
4
4
  "description": "Now I’m the model of a modern major general / The venerated Virginian veteran whose men are all / Lining up, to put me up on a pedestal / Writin’ letters to relatives / Embellishin’ my elegance and eloquence / But the elephant is in the room / The truth is in ya face when ya hear the British cannons go / BOOM",
5
5
  "keywords": [],
6
6
  "author": "ajayojha <ojhaajay@outlook.com>",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/node": "20.3.1",
24
- "@nattyjs/types": "0.0.1-beta.27",
24
+ "@nattyjs/types": "0.0.1-beta.28",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }