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 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.post.apiVersion !== this.apiVersion) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lambder",
3
- "version": "1.0.143",
3
+ "version": "1.0.144",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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.post.apiVersion !== this.apiVersion){
384
+ if(ctx._otherInternal.requestVersion !== this.apiVersion){
385
385
  const responseBuilder = this.getResponseBuilder();
386
386
  return resolve(responseBuilder.versionExpired());
387
387
  }