Skip to content

Commit

Permalink
Update dependencies and drop Node.js < 18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 9, 2024
1 parent cf5ccf1 commit f9e8f45
Show file tree
Hide file tree
Showing 7 changed files with 2,517 additions and 7,708 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: CI
on:
push:
branches:
- "**"
- "!dependabot/**"
- "main"
pull_request:
workflow_dispatch:

Expand All @@ -23,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
node: [14, 16, 18, 20]
node: [18, 20]

steps:
- name: Clone repository
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- "!dependabot/**"
pull_request:
branches:
- main
- "!dependabot/**"
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ name: Lint
on:
push:
branches:
- "**"
- "!dependabot/**"
- "main"
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: 2
NODE: 18
NODE: 20

permissions:
contents: read
Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

15 changes: 13 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ module.exports = (src, options = {}) => {
const ast = typeof src === 'string' ? walker.parse(src) : src;

if (options.onFile) {
options.onFile({ options, src, ast, walker });
options.onFile({
options,
src,
ast,
walker
});
}

walker.walk(src, node => {
Expand Down Expand Up @@ -109,7 +114,13 @@ module.exports = (src, options = {}) => {
});

if (options.onAfterFile) {
options.onAfterFile({ options, src, ast, walker, dependencies });
options.onAfterFile({
options,
src,
ast,
walker,
dependencies
});
}

return dependencies;
Expand Down
Loading

0 comments on commit f9e8f45

Please sign in to comment.