lambder 1.0.143 → 1.0.144
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
|
@@ -239,7 +239,7 @@ export default class Lambder {
|
|
|
239
239
|
if (firstMatchedAction) {
|
|
240
240
|
// Check version if provided by the client and the server
|
|
241
241
|
if (this.apiVersion && ctx._otherInternal.requestVersion) {
|
|
242
|
-
if (ctx.
|
|
242
|
+
if (ctx._otherInternal.requestVersion !== this.apiVersion) {
|
|
243
243
|
const responseBuilder = this.getResponseBuilder();
|
|
244
244
|
return resolve(responseBuilder.versionExpired());
|
|
245
245
|
}
|
package/package.json
CHANGED
package/src/Lambder.ts
CHANGED
|
@@ -381,7 +381,7 @@ export default class Lambder<TContract extends ApiContractShape = any> {
|
|
|
381
381
|
if(firstMatchedAction){
|
|
382
382
|
// Check version if provided by the client and the server
|
|
383
383
|
if(this.apiVersion && ctx._otherInternal.requestVersion){
|
|
384
|
-
if(ctx.
|
|
384
|
+
if(ctx._otherInternal.requestVersion !== this.apiVersion){
|
|
385
385
|
const responseBuilder = this.getResponseBuilder();
|
|
386
386
|
return resolve(responseBuilder.versionExpired());
|
|
387
387
|
}
|