Skip to content

Commit

Permalink
Merge pull request #758 from arduino/dependabot/npm_and_yarn/prettier…
Browse files Browse the repository at this point in the history
…-3.0.0

build(deps-dev): bump prettier from 2.8.8 to 3.0.0
  • Loading branch information
per1234 authored Jul 6, 2023
2 parents 2fffa1f + 5ad05be commit 0cbb98e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"markdown-link-check": "^3.11.2",
"markdownlint-cli": "^0.35.0",
"nock": "^13.3.1",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"strip-json-comments-cli": "^2.0.2",
"ts-jest": "^28.0.8",
"typescript": "^5.1.6"
Expand Down
8 changes: 4 additions & 4 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function fetchVersions(repoToken: string): Promise<string[]> {
const tags: ITaskRef[] =
(
await rest.get<ITaskRef[]>(
"https://api.github.com/repos/go-task/task/git/refs/tags"
"https://api.github.com/repos/go-task/task/git/refs/tags",
)
).result || [];

Expand Down Expand Up @@ -92,7 +92,7 @@ function normalizeVersion(version: string): string {
// Compute an actual version starting from the `version` configuration param.
async function computeVersion(
version: string,
repoToken: string
repoToken: string,
): Promise<string> {
// return if passed version is a valid semver
if (semver.valid(version)) {
Expand All @@ -113,7 +113,7 @@ async function computeVersion(

const allVersions = await fetchVersions(repoToken);
const possibleVersions = allVersions.filter((v) =>
v.startsWith(versionPrefix)
v.startsWith(versionPrefix),
);

const versionMap = new Map();
Expand Down Expand Up @@ -155,7 +155,7 @@ async function downloadRelease(version: string): Promise<string> {
const downloadUrl: string = util.format(
"https://github.com/go-task/task/releases/download/%s/%s",
version,
fileName
fileName,
);
let downloadPath: string | null = null;
try {
Expand Down

0 comments on commit 0cbb98e

Please sign in to comment.