Skip to content

Commit

Permalink
fix(deps): update dependency sourcegraph to v24 (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Felix Becker <felix.b@outlook.com>
  • Loading branch information
3 people committed Apr 8, 2020
1 parent eba5941 commit 34bc69b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"@types/sinon": "7.5.2",
"rxjs": "^6.5.1",
"sinon": "^7.5.0",
"sourcegraph": "^23.2.0"
"sourcegraph": "^24.0.0"
}
}
5 changes: 2 additions & 3 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const createStubSourcegraphAPI = () => {
createDecorationType: () => ({ key: 'decorationType' + decorationTypeCounter++ }),
createPanelView: notImplemented as ((id: string) => sourcegraph.PanelView),
},
configuration: {
configuration: Object.assign(configSubject.pipe(mapTo(undefined)), {
get: <C extends object = { [key: string]: any }>(): sourcegraph.Configuration<C> => ({
get: <K extends keyof C>(key: K): Readonly<C[K]> | undefined => configSubject.value[key],
update: async <K extends keyof C>(key: K, value: C[K] | undefined): Promise<void> => {
Expand All @@ -110,8 +110,7 @@ export const createStubSourcegraphAPI = () => {
return configSubject.value
},
}),
subscribe: (next: () => void) => configSubject.pipe(mapTo(undefined)).subscribe(next),
},
}),
content: {
registerLinkPreviewProvider: sinon.spy(
(urlMatchPattern: string, provider: sourcegraph.LinkPreviewProvider) => new Subscription()
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5983,10 +5983,10 @@ source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1:
resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==

sourcegraph@^23.2.0:
version "23.2.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-23.2.0.tgz#e5e715760fc12b0672843764a8a7913e45a7dfa2"
integrity sha512-BL9lkjqAKumAn+T21zI5+Jikkj7mt84UW/aAFo2ySc/Ork1RsAeli+Jy8IQO/XCO71NYoRYXRkaqIdErq0xh4Q==
sourcegraph@^24.0.0:
version "24.0.0"
resolved "https://registry.yarnpkg.com/sourcegraph/-/sourcegraph-24.0.0.tgz#2a2a2ba0f84e77bb2676d441b0b6c3e334466b49"
integrity sha512-SQtLGJ0mvCm2vQV5ABNDNXuGWqCL4rdkFWy1EAbGeDk5NrbY/KCfH6rH/4ZTl0YVyL5mYO5squMcdxjHJX2axw==

spawn-error-forwarder@~1.0.0:
version "1.0.0"
Expand Down

0 comments on commit 34bc69b

Please sign in to comment.