Skip to content

Commit

Permalink
Merge branch 'master' into greenkeeper/standard-13.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
WindomZ authored Jan 2, 2022
2 parents d95d19b + 3173629 commit 1fd447c
Show file tree
Hide file tree
Showing 4 changed files with 339 additions and 252 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:alpine

RUN npm install -g swagger-merger watch

CMD ["swagger-merger"]
2 changes: 2 additions & 0 deletions lib/reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ function sliceHashtagJSON (content, hashtag) {
if (hashtag) {
let obj = JSON.parse(content)
hashtag.split('/').every(k => {
k = k.replace(/~0/g, '~')
k = k.replace(/~1/g, '/')
obj = Object.getOwnPropertyDescriptor(obj, k).value
return obj
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"devDependencies": {
"ava": "^0.25.0",
"coveralls": "^3.0.2",
"nyc": "^13.1.0",
"nyc": "^14.0.0",
"standard": "^13.0.1"
}
}
Loading

0 comments on commit 1fd447c

Please sign in to comment.