Skip to content

Commit

Permalink
Merge branch 'release-6.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoboucas committed Oct 29, 2019
2 parents 67fc322 + ef508db commit b8be6c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [6.0.1](2019-10-29)

### Fixed

- [3ce11f6](https://github.com/dadi/api/commit/3ce11f628772260d85f4204ca8516f5c8434e093): fix error with non-directory files in collections directory

## [6.0.0](2019-10-28)

### Added
Expand Down
9 changes: 8 additions & 1 deletion dadi/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,14 @@ Server.prototype.scanDirectoryForCollections = function(directory, callback) {

directoryFiles.forEach(item => {
const itemPath = path.join(directory, item)
const subItems = fs.readdirSync(itemPath)

let subItems

try {
subItems = fs.readdirSync(itemPath)
} catch (_) {
return
}

// We don't know whether `item` is a property or a version (legacy). We
// determine that by checking whether there is a sub-directory inside it,
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": "@dadi/api",
"version": "6.0.0",
"version": "6.0.1",
"main": "main.js",
"scripts": {
"create-client": "cd ../../.. && node ./node_modules/@dadi/api/utils/create-client.js",
Expand Down

0 comments on commit b8be6c3

Please sign in to comment.