ITADN

fix: handle missing constants export in Node.js 14

#345Pull Requestluckfunc 创建于 2024-09-08
L
luckfunccommented
This PR addresses the issue where Node.js 14 does not export constants from 'fs/promises', causing compatibility problems. It checks the Node.js version and falls back to using 'fs.constants' when running in Node.js 14. For more context, see(https://github.com/sindresorhus/open/issues/341)
合并状态:未合并 关闭于 2024-09-08 2 条评论