仪表盘
版本库
文件存储
活动
搜索
登录
main
/
chemicalsApp
危化品全生命周期管理app
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
提交
马宇豪
2025-04-29
9d5b4d650e5b01081d3537c750e7469db4d161e3
[chemicalsApp.git]
/
node_modules
/
npm
/
lib
/
utils
/
ping.js
1
2
3
4
5
6
7
// ping the npm registry
// used by the ping and doctor commands
const fetch = require('npm-registry-fetch')
module.exports = async (flatOptions) => {
const res = await fetch('/-/ping?write=true', flatOptions)
return res.json().catch(() => ({}))
}