WIP: support bun
This commit is contained in:
parent
7ce7e9d091
commit
9ee294eab3
|
@ -668,11 +668,18 @@ function setDefaults(defs) {
|
|||
return smartUrequest;
|
||||
}
|
||||
|
||||
var runtime = process.release?.name || '';
|
||||
if (!runtime) {
|
||||
if (process.isBun) {
|
||||
runtime = 'bun';
|
||||
}
|
||||
}
|
||||
|
||||
var nodeUa =
|
||||
'@root+request/' +
|
||||
pkg.version +
|
||||
' ' +
|
||||
process.release.name +
|
||||
runtime +
|
||||
'/' +
|
||||
process.version +
|
||||
' ' +
|
||||
|
|
Loading…
Reference in New Issue