Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed May 6, 2024
1 parent 95bce9b commit 48c7a9b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.3.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.7.2/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/utils/numberReplace.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ParserOptions } from '../parser'
import type { ParserOptions } from '../parser'
import { normalize } from './normalize'

export const numberReplace =
Expand Down
4 changes: 3 additions & 1 deletion lib/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ const findNumbersByLength = (
digits: number,
trailingDigits: number,
): RegExp => {
const areaCodes = RIKTNUMMER.map((phoneNumber) => parseInt(phoneNumber, 10))
const areaCodes = RIKTNUMMER.map((phoneNumber) =>
Number.parseInt(phoneNumber, 10),
)
.map((phoneNumber) => `0${phoneNumber.toString()}`)
.filter((phoneNumber) => phoneNumber.length === digits)
.join('|')
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
},
"homepage": "https://github.com/opendevtools/telefonnummer#readme",
"devDependencies": {
"@biomejs/biome": "1.5.3",
"bun-types": "1.0.25",
"@biomejs/biome": "1.7.2",
"bun-types": "1.1.7",
"rimraf": "5.0.5",
"typescript": "5.3.3"
"typescript": "5.4.5"
},
"type": "module"
}

0 comments on commit 48c7a9b

Please sign in to comment.