Skip to content

Commit

Permalink
Fix/52 (#53)
Browse files Browse the repository at this point in the history
Fix #52
  • Loading branch information
mvanbrab authored Jan 12, 2021
1 parent 2750861 commit 5205e36
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Filter query/path parameters before substituting variables (see [issue 36](https://github.com/KNowledgeOnWebScale/walder/issues/36))
- 404 error on /favicon.ico in examples (see [issue 31](https://github.com/KNowledgeOnWebScale/walder/issues/31))
- Deprecation warning for x-walder-resources.path is wrong and does not appear (see [issue 52](https://github.com/KNowledgeOnWebScale/walder/issues/52))

## [2.0.3] - 2020-08-31

Expand Down
2 changes: 1 addition & 1 deletion lib/parsers/resource-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = (data, cwd, logger = null) => {
if (data) {
if (data.path) {
if (logger) {
this.logger.warn(`"x-walder-resources.root" is deprecated. Use "x-walder-resources.root" instead.`);
logger.warn(`"x-walder-resources.path" is deprecated. Use "x-walder-resources.root" instead.`);
}

data.root = data.path;
Expand Down
2 changes: 1 addition & 1 deletion lib/walder.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = class Walder {
}

// Resources
const resources = parseResources(yamlData['x-walder-resources'], this.cwd);
const resources = parseResources(yamlData['x-walder-resources'], this.cwd, this.logger);

// Data sources
const graphQLLDHandler = new GraphQLLDHandler(this.logger);
Expand Down

0 comments on commit 5205e36

Please sign in to comment.