Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build": "sl-scripts build",
"build.docs": "sl-scripts build:typedoc",
"commit": "git-cz",
"lint": "tslint 'src/**/*.ts'",
"lint": "tslint -p tsconfig.json 'src/**/*.ts'",
"lint.fix": "yarn lint --fix",
"release": "sl-scripts release",
"release.docs": "sl-scripts release:docs",
Expand All @@ -46,28 +46,28 @@
"test.watch": "yarn test --watch"
},
"dependencies": {
"@stoplight/json": "1.9.x",
"@stoplight/json": "^2.1.0",
"dependency-graph": "0.8.x",
"fast-memoize": "2.x.x",
"immer": "2.x.x",
"immer": "^3.1.2",
"lodash": "4.x.x",
"urijs": "1.x.x"
},
"devDependencies": {
"@stoplight/scripts": "5.1.0",
"@types/jest": "^24.0.11",
"@types/lodash": "4.x.x",
"@types/urijs": "1.15.x",
"@types/jest": "^24.0.13",
"@types/lodash": "4.14.132",
"@types/urijs": "1.19.1",
"benchmark": "2.x.x",
"jest": "^24.5.0",
"ts-jest": "^24.0.1",
"tslint": "^5.14.0",
"tslint-config-stoplight": "^1.2.0",
"typescript": "3.4.1"
"jest": "^24.8.0",
"ts-jest": "^24.0.2",
"tslint": "^5.16.0",
"tslint-config-stoplight": "^1.3.0",
"typescript": "3.4.5"
},
"lint-staged": {
"*.{ts,tsx}$": [
"yarn lint.fix",
"tslint -p tsconfig.json --fix",
"git add"
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class Resolver {
resolveAuthorities: this.resolveAuthorities,
parseAuthorityResult: this.parseAuthorityResult,
},
opts
opts,
);

// merge ctx
Expand Down
8 changes: 4 additions & 4 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export class ResolveRunner implements Types.IResolveRunner {

if (!r.resolved.result) continue;

this._source = produce(this._source, draft => {
this._source = produce(this._source, (draft: any) => {
if (r.resolved) {
if (!resolvedTargetPath.length) {
return r.resolved.result;
Expand All @@ -168,7 +168,7 @@ export class ResolveRunner implements Types.IResolveRunner {
// If using parseAuthorityResult, do not need to replace local pointers here (parseAuthorityResult is responsible)
// if this is not an authority, then we should parse even if parseAuthorityResult is present
if (this.resolvePointers) {
this._source = produce(this._source, draft => {
this._source = produce(this._source, (draft: any) => {
let processOrder: any[] = [];

try {
Expand Down Expand Up @@ -269,7 +269,7 @@ export class ResolveRunner implements Types.IResolveRunner {
ref,
authority: this.authority,
},
this.ctx
this.ctx,
);
}

Expand Down Expand Up @@ -335,7 +335,7 @@ export class ResolveRunner implements Types.IResolveRunner {
// TODO: report this to bugsnag so we can track? throw it as some special
// fatal error, that platform can look for and report (maybe other errors as well)?
throw new Error(
`Max authority depth (${this.authorityStack.length}) reached. Halting, this is probably a circular loop.`
`Max authority depth (${this.authorityStack.length}) reached. Halting, this is probably a circular loop.`,
);
}

Expand Down
Loading