From 2e8c91a3a5a04641e7898667b66fcf858e35a8fb Mon Sep 17 00:00:00 2001 From: John Conley Date: Mon, 27 Apr 2020 19:20:58 -0700 Subject: [PATCH] fix: update valory version --- package.json | 4 ++-- src/adaptor-polka.ts | 3 ++- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 33af5a5..4acfa25 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "valory-adaptor-polka", - "version": "2.0.0-beta.3", + "version": "2.0.0-beta.4", "main": "dist/adaptor-polka.js", "typings": "dist/adaptor-polka.d.ts", "license": "MIT", @@ -13,7 +13,7 @@ "semantic-release": "^17.0.4", "tslint": "^6.1.0", "typescript": "^3.8.3", - "valory-runtime": "^4.0.0-v4.16" + "valory-runtime": "^4.0.0-v4.18" }, "files": [ "dist/adaptor-polka.js", diff --git a/src/adaptor-polka.ts b/src/adaptor-polka.ts index 43563e6..ccb2300 100644 --- a/src/adaptor-polka.ts +++ b/src/adaptor-polka.ts @@ -27,9 +27,10 @@ export class PolkaAdaptor implements ApiAdaptor { const ctx = new ApiContext({ headers: req.headers, pathParams: (req as any).params, - url: req.url, + path, method, rawBody, + query: (req as any)._parsedUrl.query }); await handler(ctx); diff --git a/yarn.lock b/yarn.lock index b0a8a16..039e3b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5069,10 +5069,10 @@ validate-npm-package-name@^3.0.0, validate-npm-package-name@~3.0.0: dependencies: builtins "^1.0.3" -valory-runtime@^4.0.0-v4.16: - version "4.0.0-v4.16" - resolved "https://registry.yarnpkg.com/valory-runtime/-/valory-runtime-4.0.0-v4.16.tgz#32f725895d752e6806ff6c217619309db65f27db" - integrity sha512-rqFyX6kgfakCHKLNOryxLJs/nkqafKggXIS3hy+l5GUysNAHI9mLnMScFtupBbMFJ73tPFIEaR8INLhevglf8w== +valory-runtime@^4.0.0-v4.18: + version "4.0.0-v4.18" + resolved "https://registry.yarnpkg.com/valory-runtime/-/valory-runtime-4.0.0-v4.18.tgz#c455774920c5603b124d4bdc6937796a2da91857" + integrity sha512-gD2e7Y3/dt0PaaIocQkRY4GQAgx4iS3/4kGBEpz+OG5csNY2DzNcD2Qy3KoCdfCRwcWHLDZzZNNvIgtWV4tYQg== dependencies: "@types/pino" "^6.0.0" openapi-types "^1.3.5"