From e22faa1e8aa55cd36f1c34d853426f01c3a6b558 Mon Sep 17 00:00:00 2001 From: Frederic Barthelemy Date: Mon, 31 Jan 2022 18:28:53 -0800 Subject: [PATCH 1/5] Upgrade new Buffer to Buffer.from (node v10+) --- .../bitbucket_cloud/BitBucketCloudAPI.ts | 8 ++-- .../_tests_/_bitbucket_cloud_api.test.ts | 4 +- .../bitbucket_server/BitBucketServerAPI.ts | 2 +- .../_tests/_bitbucket_server_api.test.ts | 2 +- source/platforms/github/GitHubAPI.ts | 6 +-- source/platforms/github/GitHubUtils.ts | 41 +++++++++++++++---- 6 files changed, 43 insertions(+), 20 deletions(-) diff --git a/source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts b/source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts index 603f5f7ac..16796c477 100644 --- a/source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts +++ b/source/platforms/bitbucket_cloud/BitBucketCloudAPI.ts @@ -310,7 +310,7 @@ export class BitBucketCloudAPI { // API implementation private api = async (url: string, headers: any = {}, body: any = {}, method: string, suppressErrors?: boolean) => { if (this.credentials.type === "PASSWORD") { - headers["Authorization"] = `Basic ${new Buffer( + headers["Authorization"] = `Basic ${Buffer.from( this.credentials.username + ":" + this.credentials.password ).toString("base64")}` } else { @@ -324,9 +324,9 @@ export class BitBucketCloudAPI { this.oauthURL, { ...headers, - Authorization: `Basic ${new Buffer(this.credentials.oauthKey + ":" + this.credentials.oauthSecret).toString( - "base64" - )}`, + Authorization: `Basic ${Buffer.from( + this.credentials.oauthKey + ":" + this.credentials.oauthSecret + ).toString("base64")}`, "Content-Type": "application/x-www-form-urlencoded", }, params, diff --git a/source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts b/source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts index b9846c003..a43a5bcb8 100644 --- a/source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts +++ b/source/platforms/bitbucket_cloud/_tests_/_bitbucket_cloud_api.test.ts @@ -22,7 +22,7 @@ describe("API testing - BitBucket Cloud", () => { let textResult: string const expectedJSONHeaders = { "Content-Type": "application/json", - Authorization: `Basic ${new Buffer("username:password").toString("base64")}`, + Authorization: `Basic ${Buffer.from("username:password").toString("base64")}`, } function APIFactory(username: string, password: string, uuid: string) { @@ -354,7 +354,7 @@ describe("API testing - BitBucket Cloud", () => { const expectedAuthHeaders = { "Content-Type": "application/x-www-form-urlencoded", - Authorization: `Basic ${new Buffer("superOAUTHKey:superSecretOAUTH").toString("base64")}`, + Authorization: `Basic ${Buffer.from("superOAUTHKey:superSecretOAUTH").toString("base64")}`, } const expectedOAUTHRequestHeaders = { "Content-Type": "application/json", diff --git a/source/platforms/bitbucket_server/BitBucketServerAPI.ts b/source/platforms/bitbucket_server/BitBucketServerAPI.ts index 752bd1c6f..6ae1e07e1 100644 --- a/source/platforms/bitbucket_server/BitBucketServerAPI.ts +++ b/source/platforms/bitbucket_server/BitBucketServerAPI.ts @@ -339,7 +339,7 @@ export class BitBucketServerAPI implements BitBucketServerAPIDSL { if (this.repoCredentials.token) { headers["Authorization"] = `Bearer ${this.repoCredentials.token}` } else if (this.repoCredentials.password) { - headers["Authorization"] = `Basic ${new Buffer( + headers["Authorization"] = `Basic ${Buffer.from( this.repoCredentials.username + ":" + this.repoCredentials.password ).toString("base64")}` } diff --git a/source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts b/source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts index be428a48f..a6d9f37b7 100644 --- a/source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts +++ b/source/platforms/bitbucket_server/_tests/_bitbucket_server_api.test.ts @@ -9,7 +9,7 @@ describe("API testing - BitBucket Server", () => { const host = "http://localhost:7990" const expectedJSONHeaders = { "Content-Type": "application/json", - Authorization: `Basic ${new Buffer("username:password").toString("base64")}`, + Authorization: `Basic ${Buffer.from("username:password").toString("base64")}`, } function APIFactory({ password, token }: { password?: string; token?: string }) { diff --git a/source/platforms/github/GitHubAPI.ts b/source/platforms/github/GitHubAPI.ts index 485fcf7fe..3bf4253ce 100644 --- a/source/platforms/github/GitHubAPI.ts +++ b/source/platforms/github/GitHubAPI.ts @@ -46,7 +46,7 @@ export class GitHubAPI { const token = accessTokenForApp || this.token! const host = process.env["DANGER_GITHUB_API_BASE_URL"] || process.env["GITHUB_URL"] || undefined - const options: GitHubNodeAPI.Options & { debug: boolean } = { + const options: ConstructorParameters[0] & { debug: boolean } = { debug: !!process.env.LOG_FETCH_REQUESTS, baseUrl: host, auth: `token ${token}`, @@ -76,7 +76,7 @@ export class GitHubAPI { } const data = await this.getFileContents(path, repoSlug, ref) - const buffer = new Buffer(data.content, "base64") + const buffer = Buffer.from(data.content, "base64") return buffer.toString() } @@ -421,7 +421,7 @@ export class GitHubAPI { return res.ok } catch (error) { this.d(`Posting a status to: ${statusURL} failed, this is the response:`) - this.d(error.message) + this.d((error && (error as Error).message) || error) } } diff --git a/source/platforms/github/GitHubUtils.ts b/source/platforms/github/GitHubUtils.ts index fdb7aa1c6..72a9a3dad 100644 --- a/source/platforms/github/GitHubUtils.ts +++ b/source/platforms/github/GitHubUtils.ts @@ -1,8 +1,20 @@ import { basename } from "path" +import { components as OctokitOpenApiTypes } from "@octokit/openapi-types" +import { filepathContentsMapToUpdateGitHubBranch, BranchCreationConfig } from "memfs-or-file-map-to-github-branch" + import { sentence, href } from "../../runner/DangerUtils" import { GitHubPRDSL, GitHubUtilsDSL } from "./../../dsl/GitHubDSL" import { debug } from "../../debug" -import { filepathContentsMapToUpdateGitHubBranch, BranchCreationConfig } from "memfs-or-file-map-to-github-branch" + +export type GetContentResponseData = + | OctokitOpenApiTypes["schemas"]["content-file"] + | OctokitOpenApiTypes["schemas"]["content-symlink"] + | OctokitOpenApiTypes["schemas"]["content-submodule"] +export function isFileContents( + response: GetContentResponseData +): response is OctokitOpenApiTypes["schemas"]["content-file"] { + return response.type === "file" +} const d = debug("GitHub::Utils") @@ -66,14 +78,18 @@ export const fileContentsGenerator = ( owner: repoSlug.split("/")[0], } try { - // response of getContents() can be one of 4 things. We are interested in file responses only - // https://developer.github.com/v3/repos/contents/#get-contents - const response = await api.repos.getContents(opts) + // response of getContent() can be one of 4 things. We are interested in file responses only + // https://docs.github.com/en/rest/reference/repos#get-repository-content + const response = await api.repos.getContent(opts) + if (!response || !response.data) { + return "" + } if (Array.isArray(response.data)) { + // If we get an array, we have a directory return "" } - if (response && response.data && response.data.content) { - const buffer = new Buffer(response.data.content, response.data.encoding) + if (isFileContents(response.data) && response.data.content) { + const buffer = Buffer.from(response.data.content, response.data.encoding) return buffer.toString() } else { return "" @@ -94,7 +110,7 @@ export const createUpdatedIssueWithIDGenerator = (api: GitHub) => async ( // by label const uniqueHeader = `Danger-Issue-ID-${id.replace(/ /g, "_")}` const q = `user:${settings.owner} repo:${settings.repo} ${uniqueHeader}` - const { data: searchResults } = await api.search.issues({ q }) + const { data: searchResults } = await api.search.issuesAndPullRequests({ q }) d(`Got ${searchResults.total_count} for ${uniqueHeader}`) const body = `${content}\n\n${uniqueHeader}` @@ -104,7 +120,14 @@ export const createUpdatedIssueWithIDGenerator = (api: GitHub) => async ( if (searchResults.total_count > 0 && searchResults.items[0]) { const issueToUpdate = searchResults.items[0] d(`Found: ${issueToUpdate}`) - const { data: issue } = await api.issues.update({ body, owner, repo, title, number: issueToUpdate.number, state }) + const { data: issue } = await api.issues.update({ + body, + owner, + repo, + title, + issue_number: issueToUpdate.number, + state, + }) return issue.html_url } else { const { data: issue } = await api.issues.create({ body, owner, repo, title }) @@ -161,7 +184,7 @@ export const createOrUpdatePR = (pr: GitHubPRDSL | undefined, api: GitHub) => as if (existingPR) { d("Updating existing PR") return await api.pulls.update({ - number: existingPR.number, + pull_number: existingPR.number, base: config.baseBranch, owner, repo, From 0253cf2bb8fb54e967db90b714190279da6c457a Mon Sep 17 00:00:00 2001 From: Frederic Barthelemy Date: Mon, 31 Jan 2022 18:32:39 -0800 Subject: [PATCH 2/5] Bump TypeScript from v3.9.7 to v4.5.5 I intended to use 'type' imports & optional-chaining / null coalescing features, so I upgraded TS, but unfortunately, those features can't be used in this repo until tslint is replaced with ESLint --- package.json | 2 +- scripts/run-fixtures.js | 6 +++--- source/platforms/gitlab/GitLabAPI.ts | 2 +- source/runner/Executor.ts | 2 +- source/runner/runners/inline.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index a3fd60b33..df0f4dc6c 100644 --- a/package.json +++ b/package.json @@ -132,7 +132,7 @@ "tslint": "^5.11.0", "tslint-config-prettier": "^1.15.0", "typedoc": "0.9.0", - "typescript": "^3.9.7", + "typescript": "^4.5.5", "typescript-json-schema": "^0.32.0" }, "dependencies": { diff --git a/scripts/run-fixtures.js b/scripts/run-fixtures.js index 72bc4faf0..1f2462d5c 100755 --- a/scripts/run-fixtures.js +++ b/scripts/run-fixtures.js @@ -5,7 +5,7 @@ // Toggle this on to update the JSON files for each run // or use `yarn test:update-fixtures` -const writeResults = false || process.argv.includes('--update') +const writeResults = false || process.argv.includes("--update") const fs = require("fs") const child_process = require("child_process") @@ -32,7 +32,7 @@ const fixtures = fs let runCount = 0 -console.log("Running Fixures for Danger JS. This uses the built version of danger.\n") +console.log("Running Fixtures for Danger JS. This uses the built version of danger.\n") // Runs the danger runner over a fixture, then compares it to the // fixtured JSON data @@ -107,7 +107,7 @@ const next = () => { } } -process.on("unhandledRejection", function (reason, _p) { +process.on("unhandledRejection", function(reason, _p) { console.log(chalk.red("Error: "), reason) process.exitCode = 1 }) diff --git a/source/platforms/gitlab/GitLabAPI.ts b/source/platforms/gitlab/GitLabAPI.ts index 3cc67aa56..1531f881e 100644 --- a/source/platforms/gitlab/GitLabAPI.ts +++ b/source/platforms/gitlab/GitLabAPI.ts @@ -237,7 +237,7 @@ class GitLabAPI { } catch (e) { this.d("getFileContents", e) // GitHubAPI.fileContents returns "" when the file does not exist, keep it consistent across providers - if (e.response.status === 404) { + if ((e as any).response.status === 404) { return "" } throw e diff --git a/source/runner/Executor.ts b/source/runner/Executor.ts index 6707abe62..0a05d5424 100644 --- a/source/runner/Executor.ts +++ b/source/runner/Executor.ts @@ -100,7 +100,7 @@ export class Executor { try { results = await this.runner.runDangerfileEnvironment([file], [undefined], runtime) } catch (error) { - results = this.resultsForError(error) + results = this.resultsForError(error as Error) } await this.handleResults(results, runtime.danger.git) diff --git a/source/runner/runners/inline.ts b/source/runner/runners/inline.ts index a7487d42f..5350a25f4 100644 --- a/source/runner/runners/inline.ts +++ b/source/runner/runners/inline.ts @@ -116,7 +116,7 @@ export const runDangerfileEnvironment = async ( d("Got a parse error: ", error) // Call the internal functions to fail the build - const errorResults = resultsForCaughtError(filename, content, error) + const errorResults = resultsForCaughtError(filename, content, error as Error) environment.markdown(errorResults.markdowns[0].message) environment.fail(errorResults.fails[0].message) } From 50ae51c72fe7bdf61e8676fc973ac7a468fafefb Mon Sep 17 00:00:00 2001 From: Frederic Barthelemy Date: Mon, 31 Jan 2022 18:40:30 -0800 Subject: [PATCH 3/5] Bump @octokit/rest from v16.43.1 to v18.12.0 --- CHANGELOG.md | 1 + package.json | 5 +- .../github/_tests/_github_git.test.ts | 2 +- .../github/_tests/_github_utils.test.ts | 12 +- .../github/_tests/fixturedGitHubDSL.ts | 2 +- .../github/comms/checks/resultsToCheck.ts | 2 +- source/runner/jsonToDSL.ts | 2 +- yarn.lock | 126 +++++++++++++++++- 8 files changed, 135 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63ff24c52..5ccd8146c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ +- *Breaking:* Upgrade @octokit/rest from v16.43.1 to v18.12.0 - [#1204](https://github.com/danger/danger-js/pull/1204) [@fbartho] diff --git a/package.json b/package.json index df0f4dc6c..eb2001b24 100644 --- a/package.json +++ b/package.json @@ -94,6 +94,7 @@ "@babel/plugin-transform-typescript": "7.1.0", "@babel/preset-env": "7.1.0", "@babel/traverse": "7.1.0", + "@octokit/openapi-types": "^11.2.0", "@types/async-retry": "^1.4.1", "@types/debug": "0.0.30", "@types/get-stdin": "^5.0.1", @@ -137,7 +138,7 @@ }, "dependencies": { "@babel/polyfill": "^7.2.5", - "@octokit/rest": "^16.43.1", + "@octokit/rest": "^18.12.0", "async-retry": "1.2.3", "chalk": "^2.3.0", "commander": "^2.18.0", @@ -157,7 +158,7 @@ "lodash.keys": "^4.0.8", "lodash.mapvalues": "^4.6.0", "lodash.memoize": "^4.1.2", - "memfs-or-file-map-to-github-branch": "^1.1.0", + "memfs-or-file-map-to-github-branch": "^1.2.0", "micromatch": "^4.0.4", "node-cleanup": "^2.1.2", "node-fetch": "^2.6.7", diff --git a/source/platforms/github/_tests/_github_git.test.ts b/source/platforms/github/_tests/_github_git.test.ts index b1947b0f8..e20527f71 100644 --- a/source/platforms/github/_tests/_github_git.test.ts +++ b/source/platforms/github/_tests/_github_git.test.ts @@ -64,7 +64,7 @@ describe("the dangerfile gitDSL", () => { nodeGitHubAPI = new NodeGitHub() const mockContents = async ({ ref }: any) => (await requestWithFixturedJSON(`static_file.${ref}.json`))() - nodeGitHubAPI.repos.getContents = mockContents as any + nodeGitHubAPI.repos.getContent = mockContents as any gitJSONDSL = await github.getPlatformGitRepresentation() const githubJSONDSL = await github.getPlatformReviewDSLRepresentation() diff --git a/source/platforms/github/_tests/_github_utils.test.ts b/source/platforms/github/_tests/_github_utils.test.ts index 7379e8b66..119d39616 100644 --- a/source/platforms/github/_tests/_github_utils.test.ts +++ b/source/platforms/github/_tests/_github_utils.test.ts @@ -4,11 +4,11 @@ import { readFileSync } from "fs" import { resolve } from "path" const fixtures = resolve(__dirname, "..", "..", "_tests", "fixtures") -const fixuredData = (path: string) => JSON.parse(readFileSync(`${fixtures}/${path}`, {}).toString()) -const pr = fixuredData("github_pr.json") +const fixturedData = (path: string) => JSON.parse(readFileSync(`${fixtures}/${path}`, {}).toString()) +const pr = fixturedData("github_pr.json") const apiFake = { repos: { - getContents: jest.fn(), + getContent: jest.fn(), }, } as any @@ -38,11 +38,11 @@ describe("fileLinks", () => { }) }) -describe("getContents", () => { - it("should call the API's getContents", () => { +describe("getContent", () => { + it("should call the API's getContent", () => { const sut = utils(pr, apiFake) sut.fileContents("/a/b/c.ts") - expect(apiFake.repos.getContents).toHaveBeenCalledWith({ + expect(apiFake.repos.getContent).toHaveBeenCalledWith({ owner: "orta", path: "/a/b/c.ts", ref: "genevc", diff --git a/source/platforms/github/_tests/fixturedGitHubDSL.ts b/source/platforms/github/_tests/fixturedGitHubDSL.ts index e4c596f32..fbe9f0b75 100644 --- a/source/platforms/github/_tests/fixturedGitHubDSL.ts +++ b/source/platforms/github/_tests/fixturedGitHubDSL.ts @@ -54,7 +54,7 @@ export const fixturedGitHubDSL = async (): Promise => { nodeGitHubAPI = new NodeGitHub() const mockContents = async ({ ref }: any) => (await requestWithFixturedJSON(`static_file.${ref}.json`))() - nodeGitHubAPI.repos.getContents = mockContents as any + nodeGitHubAPI.repos.getContent = mockContents as any gitJSONDSL = await github.getPlatformGitRepresentation() const githubJSONDSL = await github.getPlatformReviewDSLRepresentation() diff --git a/source/platforms/github/comms/checks/resultsToCheck.ts b/source/platforms/github/comms/checks/resultsToCheck.ts index 8d85f0de8..45c90d7fc 100644 --- a/source/platforms/github/comms/checks/resultsToCheck.ts +++ b/source/platforms/github/comms/checks/resultsToCheck.ts @@ -70,7 +70,7 @@ export const resultsToCheck = async ( try { // response of getContents() can be one of 4 things. We are interested in file responses only // https://developer.github.com/v3/repos/contents/#get-contents - const { data } = await api.repos.getContents({ + const { data } = await api.repos.getContent({ path, ref: pr.head.sha, repo: pr.head.repo.name, diff --git a/source/runner/jsonToDSL.ts b/source/runner/jsonToDSL.ts index 6e036f3b1..67021ee77 100644 --- a/source/runner/jsonToDSL.ts +++ b/source/runner/jsonToDSL.ts @@ -85,7 +85,7 @@ const apiForDSL = (dsl: DangerDSLJSONType): Octokit | BitBucketServerAPI | GitLa return new GitLabAPI(gitlab.metadata, getGitLabAPICredentialsFromEnv(process.env)) } - const options: Octokit.Options & { debug: boolean } = { + const options: ConstructorParameters[0] & { debug: boolean } = { debug: !!process.env.LOG_FETCH_REQUESTS, baseUrl: dsl.settings.github.baseURL, } diff --git a/yarn.lock b/yarn.lock index 394418ea8..e1742ff89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -788,6 +788,13 @@ dependencies: "@octokit/types" "^2.0.0" +"@octokit/auth-token@^2.4.4": + version "2.5.0" + resolved "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36" + integrity sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g== + dependencies: + "@octokit/types" "^6.0.3" + "@octokit/core@^2.4.3": version "2.4.3" resolved "https://registry.yarnpkg.com/@octokit/core/-/core-2.4.3.tgz#f51c0c228e6aa01253f9452ba5a25dc20aee8577" @@ -800,6 +807,19 @@ before-after-hook "^2.1.0" universal-user-agent "^5.0.0" +"@octokit/core@^3.5.1": + version "3.5.1" + resolved "https://registry.yarnpkg.com/@octokit/core/-/core-3.5.1.tgz#8601ceeb1ec0e1b1b8217b960a413ed8e947809b" + integrity sha512-omncwpLVxMP+GLpLPgeGJBF6IWJFjXDS5flY5VbppePYX9XehevbDykRH9PdCdvqt9TS5AOTiDide7h0qrkHjw== + dependencies: + "@octokit/auth-token" "^2.4.4" + "@octokit/graphql" "^4.5.8" + "@octokit/request" "^5.6.0" + "@octokit/request-error" "^2.0.5" + "@octokit/types" "^6.0.3" + before-after-hook "^2.2.0" + universal-user-agent "^6.0.0" + "@octokit/endpoint@^5.5.0": version "5.5.2" resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-5.5.2.tgz#ed19d01fe85ac58bc2b774661658f9e5429b8164" @@ -818,6 +838,15 @@ is-plain-object "^3.0.0" universal-user-agent "^5.0.0" +"@octokit/endpoint@^6.0.1": + version "6.0.12" + resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658" + integrity sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA== + dependencies: + "@octokit/types" "^6.0.3" + is-plain-object "^5.0.0" + universal-user-agent "^6.0.0" + "@octokit/graphql@^4.3.1": version "4.3.1" resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.3.1.tgz#9ee840e04ed2906c7d6763807632de84cdecf418" @@ -827,6 +856,20 @@ "@octokit/types" "^2.0.0" universal-user-agent "^4.0.0" +"@octokit/graphql@^4.5.8": + version "4.8.0" + resolved "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.8.0.tgz#664d9b11c0e12112cbf78e10f49a05959aa22cc3" + integrity sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg== + dependencies: + "@octokit/request" "^5.6.0" + "@octokit/types" "^6.0.3" + universal-user-agent "^6.0.0" + +"@octokit/openapi-types@^11.2.0": + version "11.2.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6" + integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA== + "@octokit/plugin-paginate-rest@^1.1.1": version "1.1.2" resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz#004170acf8c2be535aba26727867d692f7b488fc" @@ -841,11 +884,23 @@ dependencies: "@octokit/types" "^2.0.1" +"@octokit/plugin-paginate-rest@^2.16.8": + version "2.17.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.17.0.tgz#32e9c7cab2a374421d3d0de239102287d791bce7" + integrity sha512-tzMbrbnam2Mt4AhuyCHvpRkS0oZ5MvwwcQPYGtMv4tUa5kkzG58SVB0fcsLulOZQeRnOgdkZWkRUiyBlh0Bkyw== + dependencies: + "@octokit/types" "^6.34.0" + "@octokit/plugin-request-log@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz#eef87a431300f6148c39a7f75f8cfeb218b2547e" integrity sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw== +"@octokit/plugin-request-log@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" + integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== + "@octokit/plugin-rest-endpoint-methods@2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz#3288ecf5481f68c494dd0602fc15407a59faf61e" @@ -862,6 +917,14 @@ "@octokit/types" "^2.0.1" deprecation "^2.3.1" +"@octokit/plugin-rest-endpoint-methods@^5.12.0": + version "5.13.0" + resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.13.0.tgz#8c46109021a3412233f6f50d28786f8e552427ba" + integrity sha512-uJjMTkN1KaOIgNtUPMtIXDOjx6dGYysdIFhgA52x4xSadQCz3b/zJexvITDVpANnfKPW/+E0xkOvLntqMYpviA== + dependencies: + "@octokit/types" "^6.34.0" + deprecation "^2.3.1" + "@octokit/request-error@^1.0.1", "@octokit/request-error@^1.0.2": version "1.2.1" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801" @@ -880,6 +943,15 @@ deprecation "^2.0.0" once "^1.4.0" +"@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" + integrity sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg== + dependencies: + "@octokit/types" "^6.0.3" + deprecation "^2.0.0" + once "^1.4.0" + "@octokit/request@^5.2.0": version "5.3.1" resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.3.1.tgz#3a1ace45e6f88b1be4749c5da963b3a3b4a2f120" @@ -908,6 +980,18 @@ once "^1.4.0" universal-user-agent "^5.0.0" +"@octokit/request@^5.6.0": + version "5.6.3" + resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0" + integrity sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A== + dependencies: + "@octokit/endpoint" "^6.0.1" + "@octokit/request-error" "^2.1.0" + "@octokit/types" "^6.16.1" + is-plain-object "^5.0.0" + node-fetch "^2.6.7" + universal-user-agent "^6.0.0" + "@octokit/rest@17.1.4": version "17.1.4" resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-17.1.4.tgz#b03eb97635de62b48428f998ad1cb9244edd2d10" @@ -940,6 +1024,16 @@ once "^1.4.0" universal-user-agent "^4.0.0" +"@octokit/rest@^18.12.0": + version "18.12.0" + resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881" + integrity sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q== + dependencies: + "@octokit/core" "^3.5.1" + "@octokit/plugin-paginate-rest" "^2.16.8" + "@octokit/plugin-request-log" "^1.0.4" + "@octokit/plugin-rest-endpoint-methods" "^5.12.0" + "@octokit/types@^2.0.0", "@octokit/types@^2.0.1": version "2.1.1" resolved "https://registry.yarnpkg.com/@octokit/types/-/types-2.1.1.tgz#77e80d1b663c5f1f829e5377b728fa3c4fe5a97d" @@ -947,6 +1041,13 @@ dependencies: "@types/node" ">= 8" +"@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.34.0": + version "6.34.0" + resolved "https://registry.yarnpkg.com/@octokit/types/-/types-6.34.0.tgz#c6021333334d1ecfb5d370a8798162ddf1ae8218" + integrity sha512-s1zLBjWhdEI2zwaoSgyOFoKSl109CUcVBCc7biPJ3aAf6LGLU6szDvi31JPU7bxfla2lqfhjbbg/5DdFNxOwHw== + dependencies: + "@octokit/openapi-types" "^11.2.0" + "@samverschueren/stream-to-observable@^0.3.0": version "0.3.0" resolved "https://registry.yarnpkg.com/@samverschueren/stream-to-observable/-/stream-to-observable-0.3.0.tgz#ecdf48d532c58ea477acfcab80348424f8d0662f" @@ -1676,6 +1777,11 @@ before-after-hook@^2.0.0, before-after-hook@^2.1.0: resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635" integrity sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A== +before-after-hook@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.2.tgz#a6e8ca41028d90ee2c24222f201c90956091613e" + integrity sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ== + binary-extensions@^1.0.0: version "1.8.0" resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.8.0.tgz#48ec8d16df4377eae5fa5884682480af4d95c774" @@ -4555,6 +4661,11 @@ is-plain-object@^3.0.0: dependencies: isobject "^4.0.0" +is-plain-object@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== + is-promise@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" @@ -5809,7 +5920,7 @@ mem@^4.0.0: mimic-fn "^1.0.0" p-is-promise "^1.1.0" -memfs-or-file-map-to-github-branch@^1.1.0: +memfs-or-file-map-to-github-branch@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/memfs-or-file-map-to-github-branch/-/memfs-or-file-map-to-github-branch-1.2.0.tgz#a56cd13443144a8c7fbe2a4b90b5f570fb39c845" integrity sha512-PloI9AkRXrLQuBU1s7eYQpl+4hkL0U0h23lddMaJ3ZGUufn8pdNRxd1kCfBqL5gISCFQs78ttXS15e4/f5vcTA== @@ -8703,10 +8814,10 @@ typescript@^3.0.1: resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.3.tgz#01b70247a6d3c2467f70c45795ef5ea18ce191d5" integrity sha512-+81MUSyX+BaSo+u2RbozuQk/UWx6hfG0a5gHu4ANEM4sU96XbuIyAB+rWBW1u70c6a5QuZfuYICn3s2UjuHUpA== -typescript@^3.9.7: - version "3.9.9" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.9.tgz#e69905c54bc0681d0518bd4d587cc6f2d0b1a674" - integrity sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w== +typescript@^4.5.5: + version "4.5.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3" + integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA== uglify-js@^2.6: version "2.8.29" @@ -8819,6 +8930,11 @@ universal-user-agent@^5.0.0: dependencies: os-name "^3.1.0" +universal-user-agent@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee" + integrity sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w== + universalify@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7" From 248f8c1536fe5aaf2dc6a0bcfe59b0984cd40a89 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Tue, 1 Feb 2022 07:57:12 +0000 Subject: [PATCH 4/5] Use published memfs --- package.json | 2 +- yarn.lock | 113 ++++----------------------------------------------- 2 files changed, 8 insertions(+), 107 deletions(-) diff --git a/package.json b/package.json index eb2001b24..5a4f642b0 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ "lodash.keys": "^4.0.8", "lodash.mapvalues": "^4.6.0", "lodash.memoize": "^4.1.2", - "memfs-or-file-map-to-github-branch": "^1.2.0", + "memfs-or-file-map-to-github-branch": "^1.2.1", "micromatch": "^4.0.4", "node-cleanup": "^2.1.2", "node-fetch": "^2.6.7", diff --git a/yarn.lock b/yarn.lock index e1742ff89..a2a36287f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -820,15 +820,6 @@ before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/endpoint@^5.5.0": - version "5.5.2" - resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-5.5.2.tgz#ed19d01fe85ac58bc2b774661658f9e5429b8164" - integrity sha512-ICDcRA0C2vtTZZGud1nXRrBLXZqFayodXAKZfo3dkdcLNqcHsgaz3YSTupbURusYeucSVRjjG+RTcQhx6HPPcg== - dependencies: - "@octokit/types" "^2.0.0" - is-plain-object "^3.0.0" - universal-user-agent "^4.0.0" - "@octokit/endpoint@^6.0.0": version "6.0.0" resolved "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.0.tgz#4c7acd79ab72df78732a7d63b09be53ec5a2230b" @@ -870,13 +861,6 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-11.2.0.tgz#b38d7fc3736d52a1e96b230c1ccd4a58a2f400a6" integrity sha512-PBsVO+15KSlGmiI8QAzaqvsNlZlrDlyAJYcrXBCvVUxCp7VnXjkwPoFHgjEJXx3WF9BAwkA6nfCUA7i9sODzKA== -"@octokit/plugin-paginate-rest@^1.1.1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz#004170acf8c2be535aba26727867d692f7b488fc" - integrity sha512-jbsSoi5Q1pj63sC16XIUboklNw+8tL9VOnJsWycWYR78TKss5PVpIPb1TUUcMQ+bBh7cY579cVAWmf5qG+dw+Q== - dependencies: - "@octokit/types" "^2.0.1" - "@octokit/plugin-paginate-rest@^2.0.0": version "2.0.2" resolved "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.0.2.tgz#fee7a81a4cc7d03784aaf9225499dd6e27f6d01e" @@ -901,14 +885,6 @@ resolved "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85" integrity sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA== -"@octokit/plugin-rest-endpoint-methods@2.4.0": - version "2.4.0" - resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz#3288ecf5481f68c494dd0602fc15407a59faf61e" - integrity sha512-EZi/AWhtkdfAYi01obpX0DF7U6b1VRr30QNQ5xSFPITMdLSfhcBqjamE3F+sKcxPbD7eZuMHu3Qkk2V+JGxBDQ== - dependencies: - "@octokit/types" "^2.0.1" - deprecation "^2.3.1" - "@octokit/plugin-rest-endpoint-methods@3.4.0": version "3.4.0" resolved "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.4.0.tgz#27b1dac7fba4d0d6e488967919b6a5bd3595ffbc" @@ -925,15 +901,6 @@ "@octokit/types" "^6.34.0" deprecation "^2.3.1" -"@octokit/request-error@^1.0.1", "@octokit/request-error@^1.0.2": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801" - integrity sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA== - dependencies: - "@octokit/types" "^2.0.0" - deprecation "^2.0.0" - once "^1.4.0" - "@octokit/request-error@^2.0.0": version "2.0.0" resolved "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.0.0.tgz#94ca7293373654400fbb2995f377f9473e00834b" @@ -952,20 +919,6 @@ deprecation "^2.0.0" once "^1.4.0" -"@octokit/request@^5.2.0": - version "5.3.1" - resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.3.1.tgz#3a1ace45e6f88b1be4749c5da963b3a3b4a2f120" - integrity sha512-5/X0AL1ZgoU32fAepTfEoggFinO3rxsMLtzhlUX+RctLrusn/CApJuGFCd0v7GMFhF+8UiCsTTfsu7Fh1HnEJg== - dependencies: - "@octokit/endpoint" "^5.5.0" - "@octokit/request-error" "^1.0.1" - "@octokit/types" "^2.0.0" - deprecation "^2.0.0" - is-plain-object "^3.0.0" - node-fetch "^2.3.0" - once "^1.4.0" - universal-user-agent "^4.0.0" - "@octokit/request@^5.3.0", "@octokit/request@^5.3.1": version "5.3.4" resolved "https://registry.yarnpkg.com/@octokit/request/-/request-5.3.4.tgz#fbc950bf785d59da3b0399fc6d042c8cf52e2905" @@ -1002,29 +955,7 @@ "@octokit/plugin-request-log" "^1.0.0" "@octokit/plugin-rest-endpoint-methods" "3.4.0" -"@octokit/rest@^16.43.1": - version "16.43.1" - resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.43.1.tgz#3b11e7d1b1ac2bbeeb23b08a17df0b20947eda6b" - integrity sha512-gfFKwRT/wFxq5qlNjnW2dh+qh74XgTQ2B179UX5K1HYCluioWj8Ndbgqw2PVqa1NnVJkGHp2ovMpVn/DImlmkw== - dependencies: - "@octokit/auth-token" "^2.4.0" - "@octokit/plugin-paginate-rest" "^1.1.1" - "@octokit/plugin-request-log" "^1.0.0" - "@octokit/plugin-rest-endpoint-methods" "2.4.0" - "@octokit/request" "^5.2.0" - "@octokit/request-error" "^1.0.2" - atob-lite "^2.0.0" - before-after-hook "^2.0.0" - btoa-lite "^1.0.0" - deprecation "^2.0.0" - lodash.get "^4.4.2" - lodash.set "^4.3.2" - lodash.uniq "^4.5.0" - octokit-pagination-methods "^1.1.0" - once "^1.4.0" - universal-user-agent "^4.0.0" - -"@octokit/rest@^18.12.0": +"@octokit/rest@^16.43.0 || ^17.11.0 || ^18.12.0", "@octokit/rest@^18.12.0": version "18.12.0" resolved "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881" integrity sha512-gDPiOHlyGavxr72y0guQEhLsemgVjwRePayJ+FcKc2SJqKUbxbkvf5kAZEWA/MKvsfYlQAMVzNJE3ezQcxMJ2Q== @@ -1658,11 +1589,6 @@ asynckit@^0.4.0: resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= -atob-lite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696" - integrity sha1-D+9a1G8b16hQLGVyfwNn1e5D1pY= - atob@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.0.tgz#ab2b150e51d7b122b9efc8d7340c06b6c41076bc" @@ -1772,7 +1698,7 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" -before-after-hook@^2.0.0, before-after-hook@^2.1.0: +before-after-hook@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635" integrity sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A== @@ -1919,11 +1845,6 @@ bser@^2.0.0: dependencies: node-int64 "^0.4.0" -btoa-lite@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337" - integrity sha1-M3dm2hWAEhD92VbCLpxokaudAzc= - buffer-equal-constant-time@1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" @@ -5655,11 +5576,6 @@ lodash.flatten@^4.4.0: resolved "https://registry.yarnpkg.com/lodash.flatten/-/lodash.flatten-4.4.0.tgz#f31c22225a9632d2bbf8e4addbef240aa765a61f" integrity sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8= -lodash.get@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99" - integrity sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk= - lodash.includes@^4.3.0: version "4.3.0" resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" @@ -5715,11 +5631,6 @@ lodash.once@^4.0.0: resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= -lodash.set@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" - integrity sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM= - lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" @@ -5730,11 +5641,6 @@ lodash.unescape@4.0.1: resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c" integrity sha1-vyJJiGzlFM2hEvrpIYzcBlIR/Jw= -lodash.uniq@^4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" - integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= - lodash@4.17.15, lodash@^4.17.11, lodash@^4.17.15: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" @@ -5920,12 +5826,12 @@ mem@^4.0.0: mimic-fn "^1.0.0" p-is-promise "^1.1.0" -memfs-or-file-map-to-github-branch@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/memfs-or-file-map-to-github-branch/-/memfs-or-file-map-to-github-branch-1.2.0.tgz#a56cd13443144a8c7fbe2a4b90b5f570fb39c845" - integrity sha512-PloI9AkRXrLQuBU1s7eYQpl+4hkL0U0h23lddMaJ3ZGUufn8pdNRxd1kCfBqL5gISCFQs78ttXS15e4/f5vcTA== +memfs-or-file-map-to-github-branch@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/memfs-or-file-map-to-github-branch/-/memfs-or-file-map-to-github-branch-1.2.1.tgz#fdb9a85408262316a9bd5567409bf89be7d72f96" + integrity sha512-I/hQzJ2a/pCGR8fkSQ9l5Yx+FQ4e7X6blNHyWBm2ojeFLT3GVzGkTj7xnyWpdclrr7Nq4dmx3xrvu70m3ypzAQ== dependencies: - "@octokit/rest" "^16.43.1" + "@octokit/rest" "^16.43.0 || ^17.11.0 || ^18.12.0" memory-fs@^0.4.0: version "0.4.1" @@ -6448,11 +6354,6 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" -octokit-pagination-methods@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4" - integrity sha512-fZ4qZdQ2nxJvtcasX7Ghl+WlWS/d9IgnBIwFZXVNNZUmzpno91SX5bc5vuxiuKoCtK78XxGGNuSCrDC7xYB3OQ== - on-finished@~2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" From fbac09271e973ff2f8b5a496f5412302b2470998 Mon Sep 17 00:00:00 2001 From: Orta Therox Date: Tue, 1 Feb 2022 08:19:38 +0000 Subject: [PATCH 5/5] Handle a mocking issue in the ts upgrade --- source/runner/runners/utils/_tests/_transpiler.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/source/runner/runners/utils/_tests/_transpiler.test.ts b/source/runner/runners/utils/_tests/_transpiler.test.ts index 966893525..eb108f2c6 100644 --- a/source/runner/runners/utils/_tests/_transpiler.test.ts +++ b/source/runner/runners/utils/_tests/_transpiler.test.ts @@ -1,5 +1,6 @@ jest.mock("fs", () => ({ readFileSync: jest.fn(), + realpathSync: {}, existsSync: jest.fn(), })) jest.mock("path", () => {