Skip to content

Commit

Permalink
chore: bump unified eco-system
Browse files Browse the repository at this point in the history
  • Loading branch information
aloisklink committed Oct 12, 2024
1 parent cbeb23f commit 959d632
Show file tree
Hide file tree
Showing 4 changed files with 775 additions and 859 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Dependencies

- Updated `puppeteer` to `^23`
- Updated `unist-util-visit` to `^5`
- Updated `vfile` to `^6`

## [2.1.1] - 2023-05-11

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ async function transformMermaidNode(
// replace old node with current node
parent.children[index] = newNode;
} catch (error) {
const errorOrString = error instanceof Error ? error : `${error}`;
file.fail(errorOrString, position, PLUGIN_NAME);
const errorError = error instanceof Error ? error : new Error(`${error}`);
file.fail(errorError, position, PLUGIN_NAME);
}
}

Expand Down
Loading

0 comments on commit 959d632

Please sign in to comment.