lambder 2.0.16 → 2.0.18
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/Lambder.js +1 -1
- package/package.json +1 -1
- package/src/Lambder.ts +1 -1
package/dist/Lambder.js
CHANGED
|
@@ -267,7 +267,7 @@ export default class Lambder {
|
|
|
267
267
|
try {
|
|
268
268
|
const resolver = this.getResolver(ctx, resolve, reject);
|
|
269
269
|
if (ctx.method === "OPTIONS")
|
|
270
|
-
return resolver.cors();
|
|
270
|
+
return resolve(resolver.cors());
|
|
271
271
|
const firstMatchedAction = this.actionList.find(action => action.conditionFn(ctx));
|
|
272
272
|
if (firstMatchedAction) {
|
|
273
273
|
// Check version if provided by the client and the server
|
package/package.json
CHANGED
package/src/Lambder.ts
CHANGED
|
@@ -367,7 +367,7 @@ export default class Lambder<TSessionData = any, _TContract extends Record<strin
|
|
|
367
367
|
)=> {
|
|
368
368
|
try{
|
|
369
369
|
const resolver = this.getResolver(ctx, resolve, reject);
|
|
370
|
-
if(ctx.method === "OPTIONS") return resolver.cors();
|
|
370
|
+
if(ctx.method === "OPTIONS") return resolve(resolver.cors());
|
|
371
371
|
|
|
372
372
|
const firstMatchedAction = this.actionList.find(action => action.conditionFn(ctx));
|
|
373
373
|
if(firstMatchedAction){
|