Skip to content

Commit

Permalink
Use Proper Type Definitions Where Possible (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Urook authored Oct 5, 2023
1 parent 733c149 commit 00cc8bc
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "explorook",
"version": "1.15.9",
"version": "1.15.10",
"description": "Rookout's site addon to support local files and folders",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -95,6 +95,7 @@
"@types/lodash": "^4.14.182",
"@types/node-fetch": "^2.6.1",
"@types/semver": "^7.5.3",
"@types/url-assembler": "^2.1.2",
"aws-lambda": "^1.0.5",
"copyfiles": "^2.3.0",
"cross-env": "^5.2.0",
Expand Down Expand Up @@ -133,7 +134,7 @@
"patch-package": "^6.4.0",
"postinstall-postinstall": "^2.1.0",
"semver": "7.5.4",
"slash": "^2.0.0",
"slash": "3.0.0",
"url-assembler": "^2.1.1",
"uuid": "^3.2.1",
"walk": "^2.3.13"
Expand Down
6 changes: 3 additions & 3 deletions src/BitBucketOnPrem.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import _ = require("lodash");
import UrlAssembler = require("url-assembler");
import {notify} from "./exceptionManager";
import { notify } from "./exceptionManager";
import { getStoreSafe } from "./explorook-store";
import {getLogger} from "./logger";
import { getLogger } from "./logger";

const logger = getLogger("bitbucket");
const isNode = () => !(typeof window !== "undefined" && window !== null);
Expand Down Expand Up @@ -523,7 +523,7 @@ export const getCommitDetailsFromBitbucket = async ({url, accessToken, projectKe
projectKey,
repoName,
commit
});
}).toString();
const res = await fetchNoCache(commitQuery, {
headers: {
Authorization: `Bearer ${accessToken}`
Expand Down
4 changes: 0 additions & 4 deletions src/UrlAssembler.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/parseRepo.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
declare module 'parse-repo';
declare module "parse-repo";
4 changes: 0 additions & 4 deletions src/slash.d.ts

This file was deleted.

12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,13 @@
"@types/mime" "^1"
"@types/node" "*"

"@types/url-assembler@^2.1.2":
version "2.1.2"
resolved "https://registry.yarnpkg.com/@types/url-assembler/-/url-assembler-2.1.2.tgz#29eddddbe19ed0cfd8b2684c6b1c0dd358399002"
integrity sha512-Dxp3Z8hS90Cvezg1ofr+Xt0oylCr4T6chcOH4RskipvLZPn/eZcSsHllFkPXYg+6XZKmJu9t41T8wOWdlKoVfw==
dependencies:
"@types/qs" "*"

"@types/verror@^1.10.3":
version "1.10.4"
resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.4.tgz#805c0612b3a0c124cf99f517364142946b74ba3b"
Expand Down Expand Up @@ -6755,6 +6762,11 @@ simple-update-notifier@2.0.0:
dependencies:
semver "^7.5.3"

slash@3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634"
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==

slash@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44"
Expand Down

0 comments on commit 00cc8bc

Please sign in to comment.