alado 1.4.8 → 1.4.9

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/README.md CHANGED
@@ -67,6 +67,11 @@ const app = new AladoServer({
67
67
  allowedOrigin: '*',
68
68
  allowedHeaders: ['Authorization'],
69
69
  exposeHeaders: ['x-total-count'],
70
+ allowedCredentials: true,
71
+ maxAge: 3600
72
+ },
73
+ headers: {
74
+ 'a': 'b' //any additional header
70
75
  },
71
76
  openApiDoc: {
72
77
  enable: true,
@@ -1,7 +1,7 @@
1
1
  export interface CorsOptions {
2
2
  enable: boolean;
3
3
  allowedOrigin?: string;
4
- allowedMethods?: any;
4
+ allowedMethods?: Map<any, any>;
5
5
  allowedHeaders?: string[];
6
6
  exposeHeaders?: string[];
7
7
  allowedCredentials?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alado",
3
- "version": "1.4.8",
3
+ "version": "1.4.9",
4
4
  "description": "Extremely fast, lightweight, robust framework for HTTP applications written in Node.js",
5
5
  "keywords": [
6
6
  "HTTP",