Refactor: drop all Bun compatability

This commit is contained in:
SukkaW
2024-07-24 10:59:05 +08:00
parent f30f9774c3
commit bb65a4180c
33 changed files with 112 additions and 1150 deletions

53
pnpm-lock.yaml generated
View File

@@ -84,18 +84,12 @@ importers:
'@types/better-sqlite3':
specifier: ^7.6.11
version: 7.6.11
'@types/bun':
specifier: ^1.1.6
version: 1.1.6
'@types/punycode':
specifier: ^2.1.4
version: 2.1.4
'@types/tar-stream':
specifier: ^3.1.3
version: 3.1.3
bun-types:
specifier: ^1.1.20
version: 1.1.20
eslint:
specifier: ^9.7.0
version: 9.7.0
@@ -394,9 +388,6 @@ packages:
'@types/better-sqlite3@7.6.11':
resolution: {integrity: sha512-i8KcD3PgGtGBLl3+mMYA8PdKkButvPyARxA7IQAd6qeslht13qxb1zzO8dRCtE7U3IoJS782zDBAeoKiM695kg==}
'@types/bun@1.1.6':
resolution: {integrity: sha512-uJgKjTdX0GkWEHZzQzFsJkWp5+43ZS7HC8sZPFnOwnSo1AsNl2q9o2bFeS23disNDqbggEgyFkKCHl/w8iZsMA==}
'@types/chrome@0.0.268':
resolution: {integrity: sha512-7N1QH9buudSJ7sI8Pe4mBHJr5oZ48s0hcanI9w3wgijAlv1OZNUZve9JR4x42dn5lJ5Sm87V1JNfnoh10EnQlA==}
@@ -421,9 +412,6 @@ packages:
'@types/json-schema@7.0.15':
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
'@types/node@20.12.14':
resolution: {integrity: sha512-scnD59RpYD91xngrQQLGkE+6UrHUPzeKZWhhjBSa3HSkwjbQc38+q3RoIVEwxQGRw3M+j5hpNAM+lgV3cVormg==}
'@types/node@20.14.11':
resolution: {integrity: sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA==}
@@ -436,9 +424,6 @@ packages:
'@types/tar-stream@3.1.3':
resolution: {integrity: sha512-Zbnx4wpkWBMBSu5CytMbrT5ZpMiF55qgM+EpHzR4yIDu7mv52cej8hTkOc6K+LzpkOAbxwn/m7j3iO+/l42YkQ==}
'@types/ws@8.5.11':
resolution: {integrity: sha512-4+q7P5h3SpJxaBft0Dzpbr6lmMaqh0Jr2tbhJZ/luAwvD7ohSCniYkwz/pLxuT2h0EOa6QADgJj1Ko+TzRfZ+w==}
'@typescript-eslint/eslint-plugin@8.0.0-alpha.45':
resolution: {integrity: sha512-h+pGHKWu+i5D6BmzpggG8bDj/fVVhxzQLE2CPsKtH1ab0QvUz+eyT/lIfz0xs8NF/lQS7tmlU5AYnQdKe1yAQw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -481,10 +466,6 @@ packages:
resolution: {integrity: sha512-a29Ir0EbyKTKHnZWbNsrc/gqfIBqYPwj3F2M+jWE/9bqfEHg0AMtXzkbUkOG6QgEScxh2+Pz9OXe11jHDnHR7A==}
engines: {node: ^18.18.0 || >=20.0.0}
'@typescript-eslint/types@8.0.0-alpha.36':
resolution: {integrity: sha512-D+w5uE8Y83K/P5VQZyKKi4pwTL2YkWOwtQOVJQI38Rp8f3pmY+Jmcps3wkSFSJK8wifTlvoHwwIBf1FsdCW/EA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
'@typescript-eslint/types@8.0.0-alpha.45':
resolution: {integrity: sha512-yjTlmcSnkFV8IoqE0vinmWo+fl7TjkaGyGX/g9gKN/b2IO8g+AimB7BhilmlBqvZupvo2AfiHqcnZEVhQAXI8w==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -605,12 +586,6 @@ packages:
buffer@5.7.1:
resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==}
bun-types@1.1.17:
resolution: {integrity: sha512-Z4+OplcSd/YZq7ZsrfD00DKJeCwuNY96a1IDJyR73+cTBaFIS7SC6LhpY/W3AMEXO9iYq5NJ58WAwnwL1p5vKg==}
bun-types@1.1.20:
resolution: {integrity: sha512-2u84HciDR3E7Uc0t0AEeXHmQAWe9uzRKTz120D3silIJOQlbGIMJMJiGaM8Yx7nEvMyfV0LfSdkEGnb77AN5AA==}
callsites@3.1.0:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
@@ -1670,10 +1645,6 @@ snapshots:
dependencies:
'@types/node': 20.14.11
'@types/bun@1.1.6':
dependencies:
bun-types: 1.1.17
'@types/chrome@0.0.268':
dependencies:
'@types/filesystem': 0.0.36
@@ -1698,10 +1669,6 @@ snapshots:
'@types/json-schema@7.0.15': {}
'@types/node@20.12.14':
dependencies:
undici-types: 5.26.5
'@types/node@20.14.11':
dependencies:
undici-types: 5.26.5
@@ -1714,10 +1681,6 @@ snapshots:
dependencies:
'@types/node': 20.14.11
'@types/ws@8.5.11':
dependencies:
'@types/node': 20.12.14
'@typescript-eslint/eslint-plugin@8.0.0-alpha.45(@typescript-eslint/parser@8.0.0-alpha.45(eslint@9.7.0)(typescript@5.5.4))(eslint@9.7.0)(typescript@5.5.4)':
dependencies:
'@eslint-community/regexpp': 4.11.0
@@ -1773,8 +1736,6 @@ snapshots:
'@typescript-eslint/types@7.17.0': {}
'@typescript-eslint/types@8.0.0-alpha.36': {}
'@typescript-eslint/types@8.0.0-alpha.45': {}
'@typescript-eslint/typescript-estree@7.17.0(typescript@5.5.4)':
@@ -1794,7 +1755,7 @@ snapshots:
'@typescript-eslint/typescript-estree@8.0.0-alpha.45(typescript@5.5.4)':
dependencies:
'@typescript-eslint/types': 8.0.0-alpha.36
'@typescript-eslint/types': 8.0.0-alpha.45
'@typescript-eslint/visitor-keys': 8.0.0-alpha.45
debug: 4.3.5
globby: 11.1.0
@@ -1836,7 +1797,7 @@ snapshots:
'@typescript-eslint/visitor-keys@8.0.0-alpha.45':
dependencies:
'@typescript-eslint/types': 8.0.0-alpha.36
'@typescript-eslint/types': 8.0.0-alpha.45
eslint-visitor-keys: 3.4.3
acorn-jsx@5.3.2(acorn@8.12.1):
@@ -1921,16 +1882,6 @@ snapshots:
base64-js: 1.5.1
ieee754: 1.2.1
bun-types@1.1.17:
dependencies:
'@types/node': 20.12.14
'@types/ws': 8.5.11
bun-types@1.1.20:
dependencies:
'@types/node': 20.12.14
'@types/ws': 8.5.11
callsites@3.1.0: {}
chalk@4.1.2: