chore(docs): use tnpm as oss-syncing source

This commit is contained in:
JackLian 2023-12-14 10:44:34 +08:00
parent 9d526ebcd8
commit bb50a20ef1

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();