We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7972959 commit e55da21Copy full SHA for e55da21
deno.json
@@ -6,6 +6,11 @@
6
"lineWidth": 200,
7
"exclude": ["README.md"]
8
},
9
+ "lint": {
10
+ "rules": {
11
+ "exclude": ["no-node-globals"]
12
+ }
13
+ },
14
"publish": {
15
"exclude": [
16
".github",
mod.ts
@@ -276,9 +276,10 @@ export function getCurrentVersion(): string | undefined {
276
case Product.Bun:
277
// @ts-ignore Runtime detection
278
return process.versions.bun;
279
- default:
+ default: {
280
const userAgent = globalThis.navigator?.userAgent;
281
return getVersionFromUserAgent(userAgent);
282
283
}
284
285
0 commit comments