Skip to content

Commit

Permalink
fix(context): update valory
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrconley committed Apr 27, 2020
1 parent da18bfc commit 573d827
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valory-adaptor-polka",
"version": "1.0.0",
"version": "2.0.0-beta.2",
"main": "dist/adaptor-polka.js",
"typings": "dist/adaptor-polka.d.ts",
"license": "MIT",
Expand All @@ -13,7 +13,7 @@
"semantic-release": "^17.0.4",
"tslint": "^6.1.0",
"typescript": "^3.8.3",
"valory-runtime": "^4.0.0-v4.14"
"valory-runtime": "^4.0.0-v4.15"
},
"files": [
"dist/adaptor-polka.js",
Expand Down
3 changes: 0 additions & 3 deletions src/adaptor-polka.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {ApiContext, HttpMethod, ApiAdaptor} from "valory-runtime";
import {IncomingMessage, ServerResponse} from "http";
import url = require("url");

const polka = require("polka");
const pathReplacer = /{([\S]*?)}/g;
Expand All @@ -25,10 +24,8 @@ export class PolkaAdaptor implements ApiAdaptor {
});

req.on("end", async () => {
const parsedUrl = url.parse(req.url, true);
const ctx = new ApiContext({
headers: req.headers,
queryParams: parsedUrl.query,
pathParams: (req as any).params,
path,
method,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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.14:
version "4.0.0-v4.14"
resolved "https://registry.yarnpkg.com/valory-runtime/-/valory-runtime-4.0.0-v4.14.tgz#fa37f27513a27b4e04f1ee6ea1c73d4b9f37b226"
integrity sha512-FgEXAqDahaCDQIw5dciTjQHxTBqblIArwwhrNGmwjiZ7jghz13YW/SF9PJ3ls3RO91c0LmhKZVWOTVvQ4KbsQA==
valory-runtime@^4.0.0-v4.15:
version "4.0.0-v4.15"
resolved "https://registry.yarnpkg.com/valory-runtime/-/valory-runtime-4.0.0-v4.15.tgz#58614d6cb900a276ca8dcf41417b949f02968714"
integrity sha512-G1zrwIaWOOo7bQaQ8mT/76dMG2uJS23VqHskem6D+uo0YpUcjMaolHC6VnA/hEJtVHGPCQS4OXc5XdbHwYasPw==
dependencies:
"@types/pino" "^6.0.0"
openapi-types "^1.3.5"
Expand Down

0 comments on commit 573d827

Please sign in to comment.