@nattyjs/common 0.0.1-beta.55 → 0.0.1-beta.57

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" }, 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;
package/dist/index.d.ts CHANGED
@@ -109,10 +109,9 @@ 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;
114
+ enabled?: boolean;
116
115
  };
117
116
  }
118
117
 
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" }, 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.55",
3
+ "version": "0.0.1-beta.57",
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.55",
24
+ "@nattyjs/types": "0.0.1-beta.57",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }