Skip to content

Commit 70e4f8e

Browse files
authored
Merge pull request #12 from kethinov/1.0.4
1.0.4
2 parents 57fa726 + 6b1f331 commit 70e4f8e

5 files changed

Lines changed: 40 additions & 30 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
- Put your changes here...
66

7+
## 1.0.4
8+
9+
- Fixed a bug that would cause the module to crash if the file list provided by the user wasn't a directory.
10+
- Updated various dependencies.
11+
712
## 1.0.3
813

914
- Fixed another bug that caused errors to print to the console if inline CSS existed in a scanned template.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "https://github.com/rooseveltframework/progressively-enhance-web-components/graphs/contributors"
99
}
1010
],
11-
"version": "1.0.3",
11+
"version": "1.0.4",
1212
"homepage": "https://github.com/rooseveltframework/progressively-enhance-web-components",
1313
"license": "CC-BY-4.0",
1414
"main": "progressively-enhance-web-components.js",

progressively-enhance-web-components.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ const beautify = require('js-beautify').html
55

66
function loopThroughFilesSync (dir) {
77
let fileList = []
8-
const files = fs.readdirSync(dir, { withFileTypes: true })
8+
let files
9+
try {
10+
files = fs.readdirSync(dir, { withFileTypes: true })
11+
} catch (err) {
12+
return fileList
13+
}
914
files.forEach(file => {
1015
const filePath = path.join(dir, file.name)
1116
if (file.isDirectory()) fileList = fileList.concat(loopThroughFilesSync(filePath)) // recurse dirs

sampleApps/express/package-lock.json

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sampleApps/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"express": "4.21.2",
66
"fs-extra": "11.3.0",
7-
"teddy": "0.6.22",
7+
"teddy": "0.6.26",
88
"webpack": "5.98.0"
99
},
1010
"scripts": {

0 commit comments

Comments
 (0)