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