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.0.5 to 7.0.6

4

CHANGELOG.md
## CHANGE LOG
### v7.0.6
- 修复时间戳防盗链算法中对文件名的urlencode不兼容问题
- 发布index.d.ts文件
### v7.0.5

@@ -4,0 +8,0 @@ - 修复zone获取失败时callbackFunc不存在的问题

6

index.d.ts

@@ -197,3 +197,3 @@ /**

*/
putFile(uploadToken: string, key: string | null, localFile: string, putExtra: PutExtra | null, callback: callback);
putFile(uploadToken: string, key: string | null, localFile: string, putExtra: PutExtra | null, callback: callback): void;

@@ -207,3 +207,3 @@ /**

*/
putFileWithoutKey(uploadToken: string, localFile: string, putExtra: PutExtra | null, callback: callback);
putFileWithoutKey(uploadToken: string, localFile: string, putExtra: PutExtra | null, callback: callback): void;
}

@@ -488,3 +488,3 @@

*/
changeMime(bucket: string, key: string, newMime: string, callback: callback);
changeMime(bucket: string, key: string, newMime: string, callback: callback): void;

@@ -491,0 +491,0 @@ /**

{
"name": "qiniu",
"version": "7.0.5",
"version": "7.0.6",
"description": "Node wrapper for Qiniu Resource (Cloud) Storage API",

@@ -43,7 +43,7 @@ "main": "index.js",

}, {
"name": "ikbear",
"email": "sunikbear@gmail.com"
"name": "guhao",
"email": "guhao@qiniu.com"
}, {
"name": "lintianzhi",
"email": "lintianzhi1992@gmail.com"
"name": "jinxinxin",
"email": "jinxinxin@qiniu.com"
}],

@@ -50,0 +50,0 @@ "engines": [

@@ -166,7 +166,8 @@ const url = require('url');

Object.getOwnPropertyNames(query).forEach(function(val, idx, array) {
arr.push(val + "=" + urlencode(query[val]));
arr.push(val + "=" + encodeURIComponent(query[val]));
});
urlToSign = domain + '/' + urlencode(fileName) + '?' + arr.join('&');
urlToSign = domain + '/' + encodeURI(fileName) + '?' + arr.join(
'&');
} else {
urlToSign = domain + '/' + urlencode(fileName);
urlToSign = domain + '/' + encodeURI(fileName);
}

@@ -173,0 +174,0 @@

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