Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
Fix URL parse bug introduced in previous release, set version 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume committed May 12, 2021
1 parent b85f4c9 commit e35f86a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mockoon/commons-server",
"description": "Mockoon's commons server library. Used in Mockoon desktop application and CLI.",
"version": "2.1.0",
"version": "2.1.1",
"author": {
"name": "Guillaume Monnet",
"email": "hi@255kb.dev",
Expand Down
2 changes: 1 addition & 1 deletion src/libs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const CreateTransaction = (
): Transaction => ({
request: {
method: request.method,
urlPath: new URL(request.originalUrl).pathname,
urlPath: new URL(request.originalUrl, 'http://localhost/').pathname,
route: request.route ? request.route.path : null,
params: request.params
? Object.keys(request.params).map((paramName) => ({
Expand Down

0 comments on commit e35f86a

Please sign in to comment.