-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(apiv6): implemented closeChangeset #12
Conversation
c7529d5
to
ecb2dfe
Compare
d31d742
to
4a6babf
Compare
4a6babf
to
fe11da1
Compare
@@ -1,2 +1,3 @@ | |||
# node-osm-api | |||
|
|||
easy communication with osm api |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add documentation to README.md how to close a changeset, add a code snippet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do it at the end
src/api/v6/index.ts
Outdated
OwnerMismatchError, | ||
NotAllowedError, | ||
ChangesetAlreadyClosedError, | ||
} from '../../lib/error-handler'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename file to errors.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/api/v6/index.ts
Outdated
throw new ChangesetNotFoundError(axiosError); | ||
} else if (axiosError.response?.status === StatusCodes.CONFLICT) { | ||
if ( | ||
axiosError.response.data === "The user doesn't own that changeset" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be single quote, lets try to fix prettier configuration.
export the magic string to a constant
I see lines are breaking lets change prettier print-width option to 150
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- works, but when there is single quote inside the string it converts to double quote
- done
- done
d46486a
to
85424fe
Compare
closes #12