Skip to content

Commit

Permalink
build: 3.0.6 release
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Jun 3, 2020
1 parent df83550 commit 4cfad6c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## <small>3.0.6 (2020-06-03)</small>

* ci: create Dependabot config file (#97) ([df83550](https://github.com/readmeio/swagger-inline/commit/df83550)), closes [#97](https://github.com/readmeio/swagger-inline/issues/97)
* chore(deps-dev): Bump @babel/cli from 7.8.4 to 7.10.1 (#95) ([4bf630c](https://github.com/readmeio/swagger-inline/commit/4bf630c)), closes [#95](https://github.com/readmeio/swagger-inline/issues/95)
* chore(deps-dev): Bump @babel/preset-env from 7.9.6 to 7.10.2 (#96) ([a1bd1ba](https://github.com/readmeio/swagger-inline/commit/a1bd1ba)), closes [#96](https://github.com/readmeio/swagger-inline/issues/96)
* docs: adding a CoC and contributing guide ([e75c43b](https://github.com/readmeio/swagger-inline/commit/e75c43b))
* docs: refreshing the readme a bit ([6ddf933](https://github.com/readmeio/swagger-inline/commit/6ddf933))



## <small>3.0.5 (2020-05-26)</small>

* chore: adding a few more items into npmignore ([170ed04](https://github.com/readmeio/swagger-inline/commit/170ed04))
Expand Down
9 changes: 4 additions & 5 deletions build/extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,27 +140,26 @@ var Extractor = /*#__PURE__*/function () {
var yamlLines = [];
var route = null;
var scopeMatched = false;
lines.some(function (line) {
lines.forEach(function (line) {
if (route) {
if (options && options.scope) {
if (line.trim().indexOf('scope:') === 0 && line.indexOf(options.scope) >= 0) {
scopeMatched = true;
return false;
return;
}
} else {
scopeMatched = true;
}

if (line.trim().indexOf('scope:') === 0) {
return false;
return;
}

pushLine(yamlLines, line);
return undefined;
return;
}

route = route || line.match(_this4.SCHEMA_REGEX);
return false;
});

if (!scopeMatched) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-inline",
"version": "3.0.5",
"version": "3.0.6",
"description": "Generate your OAS/Swagger files from inline comments.",
"main": "build/index.js",
"scripts": {
Expand Down

0 comments on commit 4cfad6c

Please sign in to comment.