Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

qiniu

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qiniu - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

5

CHANGELOG.md
## CHANGE LOG
## 7.3.2
修复crc32指定值无效
修复checkCrc指定无效
统一checkCrc类型
## 7.3.1

@@ -4,0 +9,0 @@ 新增归档存储解冻接口

2

package.json
{
"name": "qiniu",
"version": "7.3.1",
"version": "7.3.2",
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,3 +29,3 @@ const conf = require('../conf');

this.crc32 = crc32 || null;
this.checkCrc = checkCrc || 1;
this.checkCrc = checkCrc || true;
}

@@ -126,6 +126,12 @@

fsStream.on('end', function () {
fileBody = Buffer.concat(fileBody);
var bodyCrc32 = parseInt('0x' + getCrc32(fileBody));
postForm.field('crc32', bodyCrc32);
fsStream.on('end', function() {
if (putExtra.checkCrc) {
if (putExtra.crc32 == null) {
fileBody = Buffer.concat(fileBody);
var bodyCrc32 = parseInt('0x' + getCrc32(fileBody));
postForm.field('crc32', bodyCrc32);
} else {
postForm.field('crc32', putExtra.crc32);
}
}
});

@@ -132,0 +138,0 @@ callbackFunc(postForm);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc