Skip to content

Commit b8be6c3

Browse files
committed
Merge branch 'release-6.0.1'
2 parents 67fc322 + ef508db commit b8be6c3

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [6.0.1](2019-10-29)
9+
10+
### Fixed
11+
12+
- [3ce11f6](https://github.com/dadi/api/commit/3ce11f628772260d85f4204ca8516f5c8434e093): fix error with non-directory files in collections directory
13+
814
## [6.0.0](2019-10-28)
915

1016
### Added

dadi/lib/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,14 @@ Server.prototype.scanDirectoryForCollections = function(directory, callback) {
531531

532532
directoryFiles.forEach(item => {
533533
const itemPath = path.join(directory, item)
534-
const subItems = fs.readdirSync(itemPath)
534+
535+
let subItems
536+
537+
try {
538+
subItems = fs.readdirSync(itemPath)
539+
} catch (_) {
540+
return
541+
}
535542

536543
// We don't know whether `item` is a property or a version (legacy). We
537544
// determine that by checking whether there is a sub-directory inside it,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dadi/api",
3-
"version": "6.0.0",
3+
"version": "6.0.1",
44
"main": "main.js",
55
"scripts": {
66
"create-client": "cd ../../.. && node ./node_modules/@dadi/api/utils/create-client.js",

0 commit comments

Comments
 (0)