diff --git a/lib/index.ts b/lib/index.ts index 1871002..c2a75fa 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -95,7 +95,7 @@ function parseDateLine(dateLine: string): { type: string; date: string } { try { var date = new Date( - Date.UTC(+parsed[4], getMonth(parsed[3]), +parsed[2], +parsed[1]) + Date.UTC(+parsed[4], getMonth(parsed[3]), +parsed[2], +parsed[1]), ).toISOString(); } catch (error) { throw new GslError("Failed to parse date line", error); @@ -127,10 +127,10 @@ function parseLines(lines: string[]) { const parsedLines = lines.map((l) => l.split(/[ ]+/).filter((s) => s !== "")); const identificationLine = parsedLines.find( - (l) => +l[0] === RapLineTypes.Identification + (l) => +l[0] === RapLineTypes.Identification, ); const stationIdLine = parsedLines.find( - (l) => +l[0] === RapLineTypes.StationID + (l) => +l[0] === RapLineTypes.StationID, ); if (!identificationLine || !stationIdLine) @@ -143,7 +143,7 @@ function parseLines(lines: string[]) { (l) => +l[0] === RapLineTypes.MandatoryLevel || +l[0] === RapLineTypes.SignificantLevel || - +l[0] === RapLineTypes.SurfaceLevel + +l[0] === RapLineTypes.SurfaceLevel, ); const data = parseDataLines(dataLines); @@ -236,7 +236,7 @@ function isInvalidDewpt(dewpt: number) { } function parseToNumber( - data: Record + data: Record, ): Record { const ret = {} as Record; diff --git a/package.json b/package.json index 547cc51..1119872 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "devDependencies": { "@types/fs-extra": "^11.0.4", "fs-extra": "^11.2.0", - "prettier": "^2.6.2", + "prettier": "^3.2.5", "tsx": "^4.9.1", "typescript": "^5.4.5", "watch": "^1.0.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eda1efe..a378299 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^11.2.0 version: 11.2.0 prettier: - specifier: ^2.6.2 - version: 2.8.8 + specifier: ^3.2.5 + version: 3.2.5 tsx: specifier: ^4.9.1 version: 4.9.1 @@ -208,9 +208,9 @@ packages: minimist@1.2.8: resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} + prettier@3.2.5: + resolution: {integrity: sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==} + engines: {node: '>=14'} hasBin: true resolve-pkg-maps@1.0.0: @@ -377,7 +377,7 @@ snapshots: minimist@1.2.8: {} - prettier@2.8.8: {} + prettier@3.2.5: {} resolve-pkg-maps@1.0.0: {}