2024-04-28 22:41:28 +03:00
|
|
|
import * as os from 'os'
|
|
|
|
|
2024-04-24 13:22:16 +03:00
|
|
|
import { NodePlatform } from './common-internals-node/platform.js'
|
|
|
|
import { normalizeFile } from './utils/normalize-file.js'
|
|
|
|
|
|
|
|
export class BunPlatform extends NodePlatform {
|
|
|
|
declare normalizeFile: typeof normalizeFile
|
2024-04-28 22:41:28 +03:00
|
|
|
|
|
|
|
getDeviceModel(): string {
|
2024-06-23 20:43:32 +03:00
|
|
|
return `Bun/${Bun.version} (${os.type()} ${os.arch()})`
|
2024-04-28 22:41:28 +03:00
|
|
|
}
|
2024-04-24 13:22:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
BunPlatform.prototype.normalizeFile = normalizeFile
|