Skip to content

Commit 75aa113

Browse files
committed
style: format
1 parent cbfb001 commit 75aa113

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

src/index.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { UnityChangeset } from "./unityChangeset.ts";
2-
import { distinctBy, sortBy } from "https://deno.land/std@0.180.0/collections/mod.ts";
2+
import {
3+
distinctBy,
4+
sortBy,
5+
} from "https://deno.land/std@0.180.0/collections/mod.ts";
36

47
const REGEXP_HUB_LINKS = /unityhub:\/\/\d{4}\.\d+\.\d+(a|b|f)\d+\/\w{12}/g;
58
const UNITY_ARCHIVE_URL = "https://unity3d.com/get-unity/download/archive";
@@ -9,10 +12,10 @@ const UNITY_RSS_URL = "https://unity.com/releases/editor/releases.xml";
912
const UNITY_BETA_RSS_URL = "https://unity3d.com/unity/beta/latest.xml";
1013

1114
/*
12-
* Get an Unity changeset from specific Unity version.
13-
* @param version The Unity version.
14-
* @returns An Unity changeset.
15-
*/
15+
* Get an Unity changeset from specific Unity version.
16+
* @param version The Unity version.
17+
* @returns An Unity changeset.
18+
*/
1619
export async function getUnityChangeset(
1720
version: string,
1821
): Promise<UnityChangeset> {
@@ -36,9 +39,9 @@ export async function getUnityChangeset(
3639
}
3740

3841
/*
39-
* Scrape the archived Unity changesets from Unity archives.
40-
* @returns The Unity changesets.
41-
*/
42+
* Scrape the archived Unity changesets from Unity archives.
43+
* @returns The Unity changesets.
44+
*/
4245
export async function scrapeArchivedChangesets(): Promise<UnityChangeset[]> {
4346
const changesets = (await getUnityChangesetsFromUrl(UNITY_ARCHIVE_URL))
4447
.concat(await getUnityChangesetsFromUrl(UNITY_RSS_URL));
@@ -50,9 +53,9 @@ export async function scrapeArchivedChangesets(): Promise<UnityChangeset[]> {
5053
}
5154

5255
/*
53-
* Scrape the alpha/beta Unity changesets from Unity RSS feed.
54-
* @returns The Unity changesets (alpha/beta).
55-
*/
56+
* Scrape the alpha/beta Unity changesets from Unity RSS feed.
57+
* @returns The Unity changesets (alpha/beta).
58+
*/
5659
export function scrapeBetaChangesets(): Promise<UnityChangeset[]> {
5760
return getUnityChangesetsFromUrl(UNITY_BETA_RSS_URL);
5861
}

src/unityChangeset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export class UnityChangeset {
2828
};
2929

3030
/*
31-
* Convert a Unity version to a number.
32-
*/
31+
* Convert a Unity version to a number.
32+
*/
3333
static isValid = (href: string): boolean => {
3434
return REGEXP_HUB_LINK.test(href);
3535
};

0 commit comments

Comments
 (0)