@ez4/gateway 0.22.0 → 0.23.0

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/library.cjs CHANGED
@@ -198,7 +198,7 @@ l,r);break;case"services":s.services=(0,g.getLinkedServiceList)(l,e,r);break}if(
198
198
  s)){r.push(new F([...i],c));continue}if(t[n.name]){r.push(new g.DuplicateServiceError(
199
199
  n.name,c));continue}t[n.name]=s}return{services:t,errors:r}},"getHttpServices"),
200
200
  nt=p(e=>!!e.name&&!!e.routes&&!!e.extras,"isValidService");var zr=!1,pt=p(()=>{zr||((0,Cr.registerTriggers)(),(0,kr.registerTriggers)(),(0,qr.createTrigger)(
201
- "@ez4/gateway",{"metadata:getServices":Ke}),zr=!1)},"registerTriggers");var je=require("@ez4/common/library");var B=class extends je.InvalidTypeError{static{p(this,"InvalidDefaultsTypeError")}constructor(t){
201
+ "@ez4/gateway",{"metadata:getServices":Ke}),zr=!0)},"registerTriggers");var je=require("@ez4/common/library");var B=class extends je.InvalidTypeError{static{p(this,"InvalidDefaultsTypeError")}constructor(t){
202
202
  super("Invalid defaults",void 0,"Http.Defaults",t)}},N=class extends je.IncorrectTypeError{constructor(r,o){
203
203
  super("Incorrect defaults",r,"Http.Defaults",o);this.defaultsType=r}static{p(this,
204
204
  "IncorrectDefaultsTypeError")}};0&&(module.exports={IncompleteAuthorizerError,IncompleteCacheError,IncompleteCorsError,
package/dist/library.mjs CHANGED
@@ -177,7 +177,7 @@ cors":s.cors=Fe(l.value,n,e,r);break;case"variables":s.variables=Bo(l,r);break;c
177
177
  services":s.services=Fo(l,e,r);break}if(!Jo(s)){r.push(new y([...i],c));continue}
178
178
  if(t[n.name]){r.push(new qo(n.name,c));continue}t[n.name]=s}return{services:t,errors:r}},
179
179
  "getHttpServices"),Jo=p(e=>!!e.name&&!!e.routes&&!!e.extras,"isValidService");var Je=!1,oi=p(()=>{Je||(Go(),Yo(),Ko("@ez4/gateway",{"metadata:getServices":Qe}),
180
- Je=!1)},"registerTriggers");import{IncorrectTypeError as Wo,InvalidTypeError as Xo}from"@ez4/common/library";var T=class extends Xo{static{p(this,"InvalidDefaultsTypeError")}constructor(t){
180
+ Je=!0)},"registerTriggers");import{IncorrectTypeError as Wo,InvalidTypeError as Xo}from"@ez4/common/library";var T=class extends Xo{static{p(this,"InvalidDefaultsTypeError")}constructor(t){
181
181
  super("Invalid defaults",void 0,"Http.Defaults",t)}},g=class extends Wo{constructor(r,o){
182
182
  super("Incorrect defaults",r,"Http.Defaults",o);this.defaultsType=r}static{p(this,
183
183
  "IncorrectDefaultsTypeError")}};export{H as IncompleteAuthorizerError,N as IncompleteCacheError,D as IncompleteCorsError,
@@ -1,5 +1,5 @@
1
1
  import type { AllType, SourceMap, TypeIntersection, TypeModel, TypeObject } from '@ez4/reflection';
2
2
  import type { ArraySchema, ObjectSchema, UnionSchema } from '@ez4/schema/library';
3
3
  type TypeParent = TypeObject | TypeModel | TypeIntersection;
4
- export declare const getHttpBody: (type: AllType, parent: TypeParent, reflection: SourceMap, errorList: Error[]) => import("@ez4/schema/library").BooleanSchema | import("@ez4/schema/library").NumberSchema | import("@ez4/schema/library").StringSchema | ObjectSchema | UnionSchema | ArraySchema | null;
4
+ export declare const getHttpBody: (type: AllType, parent: TypeParent, reflection: SourceMap, errorList: Error[]) => ObjectSchema | UnionSchema | ArraySchema | import("@ez4/schema/library").BooleanSchema | import("@ez4/schema/library").NumberSchema | import("@ez4/schema/library").StringSchema | null;
5
5
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ez4/gateway",
3
3
  "description": "EZ4: Components to build gateway services",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "author": "Silas B.",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -47,10 +47,10 @@
47
47
  "live:publish": "npm run test && npm publish --access public"
48
48
  },
49
49
  "dependencies": {
50
- "@ez4/common": "^0.22.0",
51
- "@ez4/project": "^0.22.0",
52
- "@ez4/reflection": "^0.22.0",
53
- "@ez4/schema": "^0.22.0",
54
- "@ez4/utils": "^0.22.0"
50
+ "@ez4/common": "^0.23.0",
51
+ "@ez4/project": "^0.23.0",
52
+ "@ez4/reflection": "^0.23.0",
53
+ "@ez4/schema": "^0.23.0",
54
+ "@ez4/utils": "^0.23.0"
55
55
  }
56
56
  }