ACIL FM
Dark
Refresh
Current DIR:
/lib/node_modules/npm/node_modules/npm-registry-fetch/lib
/
lib
node_modules
npm
node_modules
npm-registry-fetch
lib
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
auth.js
4.16 MB
chmod
View
DL
Edit
Rename
Delete
check-response.js
3.19 MB
chmod
View
DL
Edit
Rename
Delete
clean-url.js
555 B
chmod
View
DL
Edit
Rename
Delete
default-opts.js
386 B
chmod
View
DL
Edit
Rename
Delete
errors.js
2.23 MB
chmod
View
DL
Edit
Rename
Delete
index.js
6.44 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/node_modules/npm/node_modules/npm-registry-fetch/lib/clean-url.js
const { URL } = require('url') const replace = '***' const tokenRegex = /\bnpm_[a-zA-Z0-9]{36}\b/g const guidRegex = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/g const cleanUrl = (str) => { if (typeof str !== 'string' || !str) { return str } try { const url = new URL(str) if (url.password) { str = str.replace(url.password, replace) } } catch { // ignore errors } return str .replace(tokenRegex, `npm_${replace}`) .replace(guidRegex, `npm_${replace}`) } module.exports = cleanUrl
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply