Skip to content

Commit

Permalink
Merge pull request #921 from psalm/dependabot/npm_and_yarn/probot-13.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Jan 29, 2024
2 parents 3878ae6 + 61dd97d commit 37f8136
Show file tree
Hide file tree
Showing 3 changed files with 479 additions and 477 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,15 @@
"test:watch": "jest --watch --notify --notifyMode=change --coverage"
},
"dependencies": {
"probot": "^12.3.3"
"node-fetch": "^2.7.0",
"probot": "^13.0.1"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/nock": "^11.1.0",
"@types/node": "^20.11.10",
"@types/node-fetch": "^2.6.11",
"@types/node-fetch": "2.x",
"@typescript-eslint/parser": "^6.19.1",
"eslint": "^8.56.0",
"eslint-plugin-typescript": "^0.14.0",
Expand Down
14 changes: 7 additions & 7 deletions src/SnippetResolver/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type {Logger} from 'pino';
import type { Logger } from 'pino';
import fetch from 'node-fetch';
import {performance, PerformanceObserver} from 'perf_hooks';
import { performance, PerformanceObserver } from 'perf_hooks';
import util from 'util';
import {LinkEntry} from '../CommentParser';
import { LinkEntry } from '../CommentParser';

export class SnippetResolver {
log: Logger;
Expand All @@ -14,7 +14,7 @@ export class SnippetResolver {
this.log.debug('Logging the performance marks: %s', JSON.stringify(list))
list.getEntries().forEach(entry => this.log.info('%s: %dms', entry.name, entry.duration))
})
this.obs.observe({entryTypes: ['measure']})
this.obs.observe({ entryTypes: ['measure'] })
}

async resolve(link: LinkEntry): Promise<ResolvedSnippet> {
Expand All @@ -28,7 +28,7 @@ export class SnippetResolver {
performance.mark(startMark)

const text = await fetch(`${url}/raw`)
.then(async(response) => await response.text())
.then(async (response) => await response.text())

performance.mark(snippetReceivedMark)

Expand Down Expand Up @@ -75,8 +75,8 @@ export class SnippetResolver {
export interface ResolvedSnippet {
link: string;
text: string;
results: SnippetResults|null;
internalError: SnippetInternalError|null;
results: SnippetResults | null;
internalError: SnippetInternalError | null;
}

export interface SnippetResults {
Expand Down
Loading

0 comments on commit 37f8136

Please sign in to comment.