1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -05:00

fix(ext/node): add missing release property to node's process (#18923)

This commit is contained in:
Yarden Shoham 2023-05-02 09:05:10 +03:00 committed by GitHub
parent 2f651b2d64
commit cf893741c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -331,6 +331,17 @@ class Process extends EventEmitter {
super();
}
/** https://nodejs.org/api/process.html#processrelease */
get release() {
return {
name: "node",
sourceUrl:
`https://nodejs.org/download/release/${version}/node-${version}.tar.gz`,
headersUrl:
`https://nodejs.org/download/release/${version}/node-${version}-headers.tar.gz`,
};
}
/** https://nodejs.org/api/process.html#process_process_arch */
get arch() {
if (!arch) {