chore: use tnpm as oss-syncing source

This commit is contained in:
JackLian 2023-12-14 10:16:30 +08:00
parent c0ddba5543
commit 27bf7babe5

View File

@ -19,7 +19,7 @@ const onResponse = function (res) {
chunks.push(chunk);
});
res.on('end', (chunk) => {
res.on('end', () => {
const body = Buffer.concat(chunks);
console.table(JSON.stringify(JSON.parse(body.toString()), null, 2));
});
@ -39,9 +39,9 @@ const postData = JSON.stringify({
},
],
// 可以发布指定源的 npm 包,默认公网 npm
useTnpm: false,
useTnpm: true,
});
req.write(postData);
req.end();
req.end();