Skip to content

Commit

Permalink
Remove redundant new lines
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy authored Oct 13, 2023
1 parent 676dd6a commit f0bc0cb
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,18 @@
- Changed rule's `test` option to apply to POSIX paths disregarding of operating system used
- Changed `include` and `exclude` options to take POSIX paths disregarding of operating system used which are supposed to be relative to `basedir`
- Changed a returning value of `scanFs()`:

- Added `basedir` field
- Replaced `stat` object with fields `pathsScanned` and `filesTested`
- Return a plain object instead of `File[]` array with additional fields

```js
// before
const files = await scanFs(...)
console.log(files, files.symlinks);

// after
const { files, symlinks } = await scanFs(...)
console.log(files, symlinks);
```

```js
// before
const files = await scanFs(...)
console.log(files, files.symlinks);

// after
const { files, symlinks } = await scanFs(...)
console.log(files, symlinks);
```
- Renamed `NormRule` type into `MatchRule`
- Added `ScanResult` type to define returning type of `scanFs()`
- Removed output errors to console by default
Expand Down

0 comments on commit f0bc0cb

Please sign in to comment.