Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit db34d0c

Browse files
authored
feat: update packages (#46)
1 parent 56e198b commit db34d0c

File tree

4 files changed

+457
-457
lines changed

4 files changed

+457
-457
lines changed

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build": "sl-scripts build",
3636
"build.docs": "sl-scripts build:typedoc",
3737
"commit": "git-cz",
38-
"lint": "tslint 'src/**/*.ts'",
38+
"lint": "tslint -p tsconfig.json 'src/**/*.ts'",
3939
"lint.fix": "yarn lint --fix",
4040
"release": "sl-scripts release",
4141
"release.docs": "sl-scripts release:docs",
@@ -46,28 +46,28 @@
4646
"test.watch": "yarn test --watch"
4747
},
4848
"dependencies": {
49-
"@stoplight/json": "1.9.x",
49+
"@stoplight/json": "^2.1.0",
5050
"dependency-graph": "0.8.x",
5151
"fast-memoize": "2.x.x",
52-
"immer": "2.x.x",
52+
"immer": "^3.1.2",
5353
"lodash": "4.x.x",
5454
"urijs": "1.x.x"
5555
},
5656
"devDependencies": {
5757
"@stoplight/scripts": "5.1.0",
58-
"@types/jest": "^24.0.11",
59-
"@types/lodash": "4.x.x",
60-
"@types/urijs": "1.15.x",
58+
"@types/jest": "^24.0.13",
59+
"@types/lodash": "4.14.132",
60+
"@types/urijs": "1.19.1",
6161
"benchmark": "2.x.x",
62-
"jest": "^24.5.0",
63-
"ts-jest": "^24.0.1",
64-
"tslint": "^5.14.0",
65-
"tslint-config-stoplight": "^1.2.0",
66-
"typescript": "3.4.1"
62+
"jest": "^24.8.0",
63+
"ts-jest": "^24.0.2",
64+
"tslint": "^5.16.0",
65+
"tslint-config-stoplight": "^1.3.0",
66+
"typescript": "3.4.5"
6767
},
6868
"lint-staged": {
6969
"*.{ts,tsx}$": [
70-
"yarn lint.fix",
70+
"tslint -p tsconfig.json --fix",
7171
"git add"
7272
]
7373
},

src/resolver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class Resolver {
4545
resolveAuthorities: this.resolveAuthorities,
4646
parseAuthorityResult: this.parseAuthorityResult,
4747
},
48-
opts
48+
opts,
4949
);
5050

5151
// merge ctx

src/runner.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class ResolveRunner implements Types.IResolveRunner {
148148

149149
if (!r.resolved.result) continue;
150150

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

174174
try {
@@ -269,7 +269,7 @@ export class ResolveRunner implements Types.IResolveRunner {
269269
ref,
270270
authority: this.authority,
271271
},
272-
this.ctx
272+
this.ctx,
273273
);
274274
}
275275

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

0 commit comments

Comments
 (0)