Skip to content

Commit 76e7491

Browse files
Bump json-stable-stringify from 1.1.1 to 1.2.1 (#360)
* Bump json-stable-stringify from 1.1.1 to 1.2.1 Bumps [json-stable-stringify](https://github.com/ljharb/json-stable-stringify) from 1.1.1 to 1.2.1. - [Changelog](https://github.com/ljharb/json-stable-stringify/blob/main/CHANGELOG.md) - [Commits](ljharb/json-stable-stringify@v1.1.1...v1.2.1) --- updated-dependencies: - dependency-name: json-stable-stringify dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update getUniqueHashStringVisitor.ts --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Loris Leiva <[email protected]>
1 parent c069847 commit 76e7491

File tree

3 files changed

+81
-43
lines changed

3 files changed

+81
-43
lines changed

packages/visitors-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"dependencies": {
5252
"@codama/errors": "workspace:*",
5353
"@codama/nodes": "workspace:*",
54-
"json-stable-stringify": "^1.1.1"
54+
"json-stable-stringify": "^1.2.1"
5555
},
5656
"devDependencies": {
5757
"@types/json-stable-stringify": "^1.1.0"

packages/visitors-core/src/getUniqueHashStringVisitor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Visitor } from './visitor';
88
export function getUniqueHashStringVisitor(options: { removeDocs?: boolean } = {}): Visitor<string> {
99
const removeDocs = options.removeDocs ?? false;
1010
if (!removeDocs) {
11-
return staticVisitor(node => stringify(node));
11+
return staticVisitor(node => stringify(node) as string);
1212
}
13-
return mapVisitor(removeDocsVisitor(), node => stringify(node));
13+
return mapVisitor(removeDocsVisitor(), node => stringify(node) as string);
1414
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)