
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
@annexwu-packages/cos-upload-utils
Advanced tools
this is a utils which contains several cos upload functions
const fs = require('fs');
const { CosUpload } = require('@annexwu-packages/cos-upload-utils');
async function test() {
const cosUpload = new CosUpload({
cos: {
SecretId: 'xxx',
SecretKey: 'xxx',
},
putObjectLimit: 5 * 1024 * 1024 * 1024,
defaultChunkSize: 8 * 1024 * 1024,
});
const result = await cosUpload.runTask({
object: {
Bucket: 'xxx',
Region: 'xxx',
Key: 'xxx',
ContentLength: 1024,
},
getRangeReadStream: (start, end) => {
return fs.createReadStream('xxx', { start, end: end - 1 });
},
getReadStream: () => {
return fs.createReadStream('xxx');
},
});
}
test();
Create a cos upload controller
const fs = require('fs');
const { CosUpload } = require('@annexwu-packages/cos-upload-utils');
async function test() {
const cosUpload = new CosUpload({
cos: {
SecretId: 'xxx',
SecretKey: 'xxx',
},
putObjectLimit: 5 * 1024 * 1024 * 1024,
defaultChunkSize: 8 * 1024 * 1024,
});
const result = await cosUpload.runTask({
object: {
Bucket: 'xxx',
Region: 'xxx',
Key: 'xxx',
ContentLength: 1024,
},
getRangeReadStream: (start, end) => {
return fs.createReadStream('xxx', { start, end: end - 1 });
},
getReadStream: () => {
return fs.createReadStream('xxx');
},
});
}
test();
FAQs
this is a utils which contains several cos upload functions
We found that @annexwu-packages/cos-upload-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.