@nattyjs/common 0.0.1-beta.56 → 0.0.1-beta.58

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
@@ -49,7 +49,7 @@ const commonContainer = new class {
49
49
  }
50
50
  };
51
51
  const secureConfig = { sensitiveProps: ["password", "mobileNo", "email"] };
52
- this.nattyConfig = { ...{ api: { rootPath: "api" }, ...{ static: { dir: "public", enabled: true } }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
52
+ this.nattyConfig = { ...{ api: { rootPath: "api" }, ...{ static: { enabled: true } }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
53
53
  }
54
54
  setupBuildOptions(options) {
55
55
  this.buildOptions = options;
@@ -731,7 +731,7 @@ function overrideProp(instance, prop, modelName) {
731
731
  },
732
732
  set: (v) => {
733
733
  if (prop.type == "boolean" && v !== null && v !== void 0)
734
- v = v === 0 ? false : true;
734
+ v = v === 0 || v === false ? false : true;
735
735
  const type = typeof v;
736
736
  if (v === null || v === void 0 || prop.type == type)
737
737
  value = v;
package/dist/index.d.ts CHANGED
@@ -109,10 +109,8 @@ interface NattyConfig {
109
109
  lifeCycle?: LifeCycleEvents;
110
110
  webSchedules?: Array<WebScheduleConfig>;
111
111
  static?: {
112
- dir?: string;
113
112
  indexFile?: string;
114
113
  spaFallback?: boolean;
115
- maxAge?: string | number;
116
114
  enabled?: boolean;
117
115
  };
118
116
  }
package/dist/index.mjs CHANGED
@@ -32,7 +32,7 @@ const commonContainer = new class {
32
32
  }
33
33
  };
34
34
  const secureConfig = { sensitiveProps: ["password", "mobileNo", "email"] };
35
- this.nattyConfig = { ...{ api: { rootPath: "api" }, ...{ static: { dir: "public", enabled: true } }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
35
+ this.nattyConfig = { ...{ api: { rootPath: "api" }, ...{ static: { enabled: true } }, autoGeneratePort: true, modelBinding, globalConfig: {}, secure: secureConfig }, ...config };
36
36
  }
37
37
  setupBuildOptions(options) {
38
38
  this.buildOptions = options;
@@ -714,7 +714,7 @@ function overrideProp(instance, prop, modelName) {
714
714
  },
715
715
  set: (v) => {
716
716
  if (prop.type == "boolean" && v !== null && v !== void 0)
717
- v = v === 0 ? false : true;
717
+ v = v === 0 || v === false ? false : true;
718
718
  const type = typeof v;
719
719
  if (v === null || v === void 0 || prop.type == type)
720
720
  value = v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.56",
3
+ "version": "0.0.1-beta.58",
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.56",
24
+ "@nattyjs/types": "0.0.1-beta.58",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }