From 40bb476b9a1559b6a13a251fe5858c366789923b Mon Sep 17 00:00:00 2001
From: Jamie Magee <JamieMagee@users.noreply.github.com>
Date: Tue, 7 Jul 2020 13:52:59 +0200
Subject: [PATCH] chore: replace custom types with upstream (#6692)

---
 lib/missing.d.ts | 49 ------------------------------------------------
 package.json     | 10 +++-------
 yarn.lock        | 33 +++++++++-----------------------
 3 files changed, 12 insertions(+), 80 deletions(-)
 delete mode 100644 lib/missing.d.ts

diff --git a/lib/missing.d.ts b/lib/missing.d.ts
deleted file mode 100644
index 49393e12b3..0000000000
--- a/lib/missing.d.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-declare module 'changelog-filename-regex' {
-  const re: RegExp;
-  export = re;
-}
-
-declare module 'linkify-markdown' {
-  export function linkify(
-    source: string,
-    options: Record<string, unknown>
-  ): string;
-}
-
-declare module 'get-installed-path' {
-  interface Options {
-    cwd?: string;
-    local?: boolean;
-    paths?: string[];
-  }
-  export function getInstalledPath(
-    arg: string,
-    opts?: Options
-  ): Promise<string>;
-}
-
-declare module '@snyk/ruby-semver/lib/ruby/gem-version' {
-  export function create(version: string): any;
-  export function parse(version: string): any;
-}
-
-declare module '@snyk/ruby-semver/lib/ruby/gem-requirement' {
-  export function parse(version: string): any;
-}
-
-declare module '@snyk/ruby-semver' {
-  export function diff(a: any, b: any): string;
-  export function eq(a: any, b: any): boolean;
-  export function gt(a: any, b: any): boolean;
-  export function gte(a: any, b: any): boolean;
-  export function lte(a: any, b: any): boolean;
-  export function major(version: any): number;
-  export function maxSatisfying(version: any[], range: string): string;
-  export function minSatisfying(version: any[], range: string): string;
-  export function minor(version: any): number;
-  export function patch(version: any): number;
-
-  export function prerelease(version: any): string[];
-  export function satisfies(version: any, range: string): boolean;
-  export function valid(version: any): boolean;
-}
diff --git a/package.json b/package.json
index bef732255f..b889ac8918 100644
--- a/package.json
+++ b/package.json
@@ -109,8 +109,8 @@
   },
   "dependencies": {
     "@renovate/pep440": "0.4.1",
-    "@sindresorhus/is": "2.1.1",
     "@renovatebot/ruby-semver": "0.1.6",
+    "@sindresorhus/is": "2.1.1",
     "@yarnpkg/lockfile": "1.1.0",
     "aws-sdk": "2.709.0",
     "azure-devops-node-api": "10.1.1",
@@ -190,23 +190,21 @@
     "@semantic-release/exec": "5.0.0",
     "@types/bunyan": "1.8.6",
     "@types/cacache": "12.0.1",
-    "@types/chai": "4.2.11",
+    "@types/changelog-filename-regex": "2.0.0",
     "@types/clean-git-ref": "2.0.0",
     "@types/conventional-commits-detector": "1.0.0",
-    "@types/convert-hrtime": "2.0.0",
     "@types/eslint": "6.8.1",
     "@types/fs-extra": "9.0.1",
     "@types/github-url-from-git": "1.5.0",
     "@types/global-agent": "2.1.0",
     "@types/got": "9.6.11",
-    "@types/graceful-fs": "4.1.3",
     "@types/ini": "1.3.30",
     "@types/jest": "26.0.3",
     "@types/js-yaml": "3.12.4",
     "@types/json-dup-key-validator": "1.0.0",
     "@types/json5": "0.0.30",
     "@types/later": "1.2.6",
-    "@types/lodash": "4.14.157",
+    "@types/linkify-markdown": "1.0.0",
     "@types/luxon": "1.24.1",
     "@types/markdown-it": "10.0.1",
     "@types/markdown-table": "2.0.0",
@@ -216,12 +214,10 @@
     "@types/node-emoji": "1.8.1",
     "@types/parse-link-header": "1.0.0",
     "@types/registry-auth-token": "3.3.0",
-    "@types/safe-regex": "1.1.2",
     "@types/semver": "7.3.1",
     "@types/semver-stable": "3.0.0",
     "@types/semver-utils": "1.1.0",
     "@types/shelljs": "0.8.8",
-    "@types/tmp": "0.2.0",
     "@types/traverse": "0.6.32",
     "@types/xmldoc": "1.1.4",
     "@typescript-eslint/eslint-plugin": "2.34.0",
diff --git a/yarn.lock b/yarn.lock
index 1e7ae627d5..e8bb467e52 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1474,10 +1474,10 @@
   dependencies:
     "@types/node" "*"
 
-"@types/chai@4.2.11":
-  version "4.2.11"
-  resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.11.tgz#d3614d6c5f500142358e6ed24e1bf16657536c50"
-  integrity sha512-t7uW6eFafjO+qJ3BIV2gGUyZs27egcNRkUdalkud+Qa3+kg//f129iuOFivHDXQ+vnU3fDXuwgv0cqMCbcE8sw==
+"@types/changelog-filename-regex@2.0.0":
+  version "2.0.0"
+  resolved "https://registry.yarnpkg.com/@types/changelog-filename-regex/-/changelog-filename-regex-2.0.0.tgz#b5af0ee9b36106f593dfd6ac6b6514ec166c4ef2"
+  integrity sha512-FqMVulrjqvt5Ud1HoHI56dfKqxEiF6wOdQ40nP81Pm022Q4I+U60Zccvg/Jof3zHiOSh7N5DEEv+pk0gzh6acA==
 
 "@types/clean-git-ref@2.0.0":
   version "2.0.0"
@@ -1494,11 +1494,6 @@
   resolved "https://registry.yarnpkg.com/@types/conventional-commits-detector/-/conventional-commits-detector-1.0.0.tgz#27e143c481d6fa6146863d77e6b91de877d4f09e"
   integrity sha512-ZB+G1yG5pQoWaaHg0D4H9c29q61Y0O/kyOtEx0IKL3Gca3EGEcN3jh5OHnoQp00/pFoqJR63htsviivOkTXuCw==
 
-"@types/convert-hrtime@2.0.0":
-  version "2.0.0"
-  resolved "https://registry.yarnpkg.com/@types/convert-hrtime/-/convert-hrtime-2.0.0.tgz#48d8215750e602a8ea439591c741cc927c116bb1"
-  integrity sha512-0+5xvZlHD4Hp2K1yamMvcT8Rq3sQnujafL0PaVg0Q90jWZcK+zF2A+5vJQw0P8F5oOY11l1d5/hF6s4UQEGDdA==
-
 "@types/eslint-visitor-keys@^1.0.0":
   version "1.0.0"
   resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
@@ -1551,7 +1546,7 @@
     "@types/tough-cookie" "*"
     form-data "^2.5.0"
 
-"@types/graceful-fs@4.1.3", "@types/graceful-fs@^4.1.2":
+"@types/graceful-fs@^4.1.2":
   version "4.1.3"
   resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.3.tgz#039af35fe26bec35003e8d86d2ee9c586354348f"
   integrity sha512-AiHRaEB50LQg0pZmm659vNBb9f4SJ0qrAnteuzhSeAUcJKxoYgEnprg/83kppCnc2zvtCKbdZry1a5pVY3lOTQ==
@@ -1626,10 +1621,10 @@
   resolved "https://registry.yarnpkg.com/@types/linkify-it/-/linkify-it-2.1.0.tgz#ea3dd64c4805597311790b61e872cbd1ed2cd806"
   integrity sha512-Q7DYAOi9O/+cLLhdaSvKdaumWyHbm7HAk/bFwwyTuU0arR5yyCeW5GOoqt4tJTpDRxhpx9Q8kQL6vMpuw9hDSw==
 
-"@types/lodash@4.14.157":
-  version "4.14.157"
-  resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.157.tgz#fdac1c52448861dfde1a2e1515dbc46e54926dc8"
-  integrity sha512-Ft5BNFmv2pHDgxV5JDsndOWTRJ+56zte0ZpYLowp03tW+K+t8u8YMOzAnpuqPgzX6WO1XpDIUm7u04M8vdDiVQ==
+"@types/linkify-markdown@1.0.0":
+  version "1.0.0"
+  resolved "https://registry.yarnpkg.com/@types/linkify-markdown/-/linkify-markdown-1.0.0.tgz#50c357a0a60bb220209f19310a79b939e1b8e2a3"
+  integrity sha512-p3rl2HtugwjkH8qjEjUi5JByoZkVc2lz6E7D96X5/FqNyj2/jlgIrMlyrbck0U+HyjhOIy0XyTwES3RRz+1koQ==
 
 "@types/luxon@1.24.1":
   version "1.24.1"
@@ -1730,11 +1725,6 @@
   resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d"
   integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==
 
-"@types/safe-regex@1.1.2":
-  version "1.1.2"
-  resolved "https://registry.yarnpkg.com/@types/safe-regex/-/safe-regex-1.1.2.tgz#0434f128255fe79c34ff21ffd18c706b2bad8856"
-  integrity sha512-wuS9LVpgIiTYaGKd+s6Dj0kRXBkttaXjVxzaXmviCACi8RO+INPayND+VNjAcall/l1Jkyhh9lyPfKW/aP/Yug==
-
 "@types/semver-stable@3.0.0":
   version "3.0.0"
   resolved "https://registry.yarnpkg.com/@types/semver-stable/-/semver-stable-3.0.0.tgz#660cc139fc36749e0d3dae69ebfd079eb41327ac"
@@ -1765,11 +1755,6 @@
   resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e"
   integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw==
 
-"@types/tmp@0.2.0":
-  version "0.2.0"
-  resolved "https://registry.yarnpkg.com/@types/tmp/-/tmp-0.2.0.tgz#e3f52b4d7397eaa9193592ef3fdd44dc0af4298c"
-  integrity sha512-flgpHJjntpBAdJD43ShRosQvNC0ME97DCfGvZEDlAThQmnerRXrLbX6YgzRBQCZTthET9eAWFAMaYP0m0Y4HzQ==
-
 "@types/tough-cookie@*":
   version "4.0.0"
   resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.0.tgz#fef1904e4668b6e5ecee60c52cc6a078ffa6697d"
-- 
GitLab