Skip to content

Commit

Permalink
fixing typos
Browse files Browse the repository at this point in the history
removing overlooked console.log
  • Loading branch information
Idrinth committed Mar 31, 2021
1 parent 134ed77 commit 08a1fc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@idrinth/api-bench",
"description": "A library to benchmark apis, no matter if rest or soap",
"license": "MIT",
"version": "1.2.10",
"version": "1.2.11",
"homepage": "https://github.com/Idrinth/api-bench",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions src/middlewares/encoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import staticImplements from '../helper/static-implements';

const handleForm = (request: Request,): Request => {
if (! request.headers['content-type']) {
request.headers['content-tyoe'] = 'application/x-www-form-urlencoded';
request.headers['content-type'] = 'application/x-www-form-urlencoded';
}
request.body = formUrlEncoded(request.body,);
return request;
};
const handleJSON = (request: Request,): Request => {
request.body = JSON.stringify(request.body,);
if (! request.headers['content-type']) {
request.headers['content-tyoe'] = 'application/json';
request.headers['content-type'] = 'application/json';
}
return request;
};
Expand Down
2 changes: 1 addition & 1 deletion src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
throw new Error('Invalid Key',);
}
if (! existsSync(cachefolder,)) {
console.log(mkdirSync(cachefolder, {recursive: true,}));
mkdirSync(cachefolder, {recursive: true,});
}
writeFileSync(cachefolder + sep + key, value,);
},
Expand Down

0 comments on commit 08a1fc3

Please sign in to comment.