Skip to content

Commit b493506

Browse files
author
Daniel A. White
authored
chore(deps): downgrade scripts (#134)
1 parent ccea3e3 commit b493506

4 files changed

Lines changed: 4985 additions & 4461 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"devDependencies": {
5050
"@stoplight/eslint-config": "3.0.0",
51-
"@stoplight/scripts": "^10.0.0",
51+
"@stoplight/scripts": "^7.0.4",
5252
"@types/lodash": "^4.14.144",
5353
"@types/node": "^12.12.5",
5454
"@typescript-eslint/eslint-plugin": "^5.7.0",
@@ -62,6 +62,7 @@
6262
"eslint-plugin-react": "^7.30.1",
6363
"eslint-plugin-react-hooks": "^4.6.0",
6464
"eslint-plugin-simple-import-sort": "^7.0.0",
65+
"husky": "^9.1.1",
6566
"prettier": "^2.3.1",
6667
"typescript": "^5.4.5",
6768
"vitest": "^1.6.0"

src/reparentBundleTarget.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export function reparentBundleTarget(document: Record<string | number, unknown>,
5656
return;
5757
}
5858

59-
//@ts-expect-error
6059
value = value[segment];
6160
}
6261

@@ -72,7 +71,6 @@ export function reparentBundleTarget(document: Record<string | number, unknown>,
7271
}
7372

7473
const newValue = i === targetPath.length - 1 ? value : {};
75-
//@ts-expect-error
7674
newTarget[segment] = newValue;
7775
newTarget = newValue;
7876
}
@@ -86,7 +84,6 @@ function _reparentBundleTarget(document: Record<string, unknown> | unknown[], fr
8684
if (key === '$ref') {
8785
if (typeof value !== 'string' || !isLocalRef(value)) continue;
8886
if (value.indexOf(from) === 0) {
89-
//@ts-expect-error
9087
document[key] = value.replace(from, to);
9188
}
9289

src/resolvers/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export function* traverse(
4343
for (const [i, segment] of path.entries()) {
4444
assertResolvableInput(ctx.value, segment, pointer);
4545

46-
//@ts-expect-error
4746
ctx.value = ctx.value[segment];
4847

4948
if (hasSomeRef(ctx.value)) {

0 commit comments

Comments
 (0)