Socket
Socket
Sign inDemoInstall

qiniu

Package Overview
Dependencies
44
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.0 to 7.1.1

3

CHANGELOG.md
## CHANGE LOG
### v7.1.1
- 修复 index.d.ts 中的函数声明错误
### v7.1.0

@@ -4,0 +7,0 @@ - 修复时间戳防盗链中存在特殊字符引发的签名错误

9

examples/cdn_create_timestamp_antileech_url.js

@@ -1,9 +0,10 @@

const qiniu = require("/Users/smile/qiniu/qiniu-sdk/node/node_modules/qiniu");
const qiniu = require("qiniu");
var domain = 'https://qiniu.com';
var fileName = "xx";
var domain = 'http://sq.qiniuts.com';
var fileName = "1491535764000.png";
//加密密钥
var encryptKey = '**';
var query = null
var query = "imageView2/2/w/480/format/jpg"
var deadline = parseInt(Date.now() / 1000) + 3600;

@@ -10,0 +11,0 @@

@@ -348,3 +348,3 @@ /**

*/
function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string)
function generateAccessTokenV2(mac: auth.digest.Mac, requestURI: string, reqMethod: string, reqContentType: string, reqBody?: string): string;

@@ -351,0 +351,0 @@ /**

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

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

@@ -164,8 +164,3 @@ const url = require('url');

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

@@ -172,0 +167,0 @@ urlToSign = domain + '/' + url_encode(fileName);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc