@nattyjs/common 0.0.1-beta.52 → 0.0.1-beta.53

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
@@ -122,6 +122,9 @@ const typeContainer = new class {
122
122
  }
123
123
  return controllerName.substr(0, controllerName.length - 10).toLowerCase();
124
124
  }
125
+ setClassMetaInfo(typeMeta) {
126
+ this.modelSchemas.set(typeMeta.name, typeMeta);
127
+ }
125
128
  getRoutes() {
126
129
  const routes = {};
127
130
  for (const key of this.controllerInfo.keys()) {
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { RequestRouteInfo, IHttpResult, Cookie, IModelBindingContext, ProblemDetail, IExceptionContext, HttpResponseInit, NattyTestModule, ModelBinding, BuildOptions, TypesInfo, ClassTypeInfo } from '@nattyjs/types';
1
+ import { RequestRouteInfo, IHttpResult, Cookie, IModelBindingContext, ProblemDetail, IExceptionContext, HttpResponseInit, NattyTestModule, ModelBinding, BuildOptions, TypesInfo, ClassTypeInfo, TypeMeta } from '@nattyjs/types';
2
2
  import { ChildProcess } from 'child_process';
3
3
 
4
4
  interface ClassType<T> extends Function {
@@ -174,6 +174,7 @@ declare const commonContainer: {
174
174
  declare const typeContainer: {
175
175
  setControllerJsonSchema(classInfo: ClassTypeInfo): void;
176
176
  getControllersJsonSchema(): ClassTypeInfo[];
177
+ setClassMetaInfo(typeMeta: TypeMeta): void;
177
178
  getRoutes(): any;
178
179
  getControllerJsonSchema(name: string): ClassTypeInfo;
179
180
  removeControllerInfo(path: string): void;
package/dist/index.mjs CHANGED
@@ -105,6 +105,9 @@ const typeContainer = new class {
105
105
  }
106
106
  return controllerName.substr(0, controllerName.length - 10).toLowerCase();
107
107
  }
108
+ setClassMetaInfo(typeMeta) {
109
+ this.modelSchemas.set(typeMeta.name, typeMeta);
110
+ }
108
111
  getRoutes() {
109
112
  const routes = {};
110
113
  for (const key of this.controllerInfo.keys()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nattyjs/common",
3
- "version": "0.0.1-beta.52",
3
+ "version": "0.0.1-beta.53",
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.52",
24
+ "@nattyjs/types": "0.0.1-beta.53",
25
25
  "unbuild": "1.2.1"
26
26
  }
27
27
  }