mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 06:54:03 +03:00
Add missing function in adapter.
This commit is contained in:
parent
e4e20646c5
commit
bf98a76aed
@ -214,6 +214,14 @@ function reqToJson(req, requestTime) {
|
||||
jsonBody: jsonBody,
|
||||
};
|
||||
}
|
||||
|
||||
function paramsToObject(entries) {
|
||||
const result = {};
|
||||
for (const [key, value] of entries) {
|
||||
result[key] = value;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
`;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user