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 6.1.3 to 6.1.5

gopher.png

14

CHANGELOG.md
## CHANGE LOG
### v6.1.5
2014-7-23 issue [#111](https://github.com/qiniu/nodejs-sdk/pull/111)
- [#109] 统一user agent
- [#110] 更新put policy
### v6.1.4
2014-7-10 issue [#108](https://github.com/qiniu/nodejs-sdk/pull/108)
- [#107] 调整上传host
### v6.1.3

@@ -4,0 +18,0 @@

2

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

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

@@ -0,1 +1,4 @@

var fs = require('fs');
var path = require('path');
var os = require('os');

@@ -5,7 +8,12 @@ exports.ACCESS_KEY = '<PLEASE APPLY YOUR ACCESS KEY>';

exports.USER_AGENT = 'qiniu nodejs-sdk v6.1.3';
var pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../', 'package.json')));
var ua = function(){
return 'QiniuNodejs/' + pkg.version + ' (' + os.type() + '; ' + os.platform() + '; ' + os.arch() + '; )';
}
exports.UP_HOST = 'http://up.qbox.me';
exports.USER_AGENT = ua();
exports.UP_HOST = 'http://upload.qiniu.com';
exports.RS_HOST = 'http://rs.qbox.me';
exports.RSF_HOST = 'http://rsf.qbox.me';
exports.RPC_TIMEOUT = 3600000; // default rpc timeout: one hour

@@ -139,3 +139,3 @@

function PutPolicy(scope, callbackUrl, callbackBody, returnUrl, returnBody,
asyncOps, endUser, expires) {
asyncOps, endUser, expires, persistentOps, persistentNotifyUrl) {
this.scope = scope || null;

@@ -146,5 +146,6 @@ this.callbackUrl = callbackUrl || null;

this.returnBody = returnBody || null;
this.asyncOps = asyncOps || null;
this.endUser = endUser || null;
this.expires = expires || 3600;
this.persistentOps = persistentOps || null;
this.persistentNotifyUrl = persistentNotifyUrl || null;
}

@@ -182,5 +183,2 @@ // @endgist

}
if (this.asyncOps != null) {
flags['asyncOps'] = this.asyncOps;
}
if (this.endUser != null) {

@@ -195,2 +193,17 @@ flags['endUser'] = this.endUser;

}
if (this.persistentPipeline != null) {
flags['persistentPipeline'] = this.persistentPipeline;
}
if (this.mimeLimit != null) {
flags['mimeLimit'] = this.mimeLimit;
}
if (this.insertOnly != null) {
flags['insertOnly'] = this.insertOnly;
}
if (this.detectMime != null) {
flags['detectMime'] = this.detectMime;
}
if (this.saveKey != null) {
flags['saveKey'] = this.saveKey;
}
flags['deadline'] = this.expires + Math.floor(Date.now() / 1000);

@@ -200,3 +213,2 @@ return flags;

function GetPolicy(expires) {

@@ -203,0 +215,0 @@ this.expires = expires || 3600;

@@ -48,5 +48,4 @@ var fs = require('fs');

function isQiniuCallback(path, body, callbackAuth) {
var auth = exports.generateAccessToken(path, body)
var auth = exports.generateAccessToken(path, body);
return auth === callbackAuth;
}
# Qiniu Resource Storage SDK for Node.js
[![Build Status](https://travis-ci.org/qiniu/nodejs-sdk.png?branch=master)](https://travis-ci.org/qiniu/nodejs-sdk)
[![Code Climate](https://codeclimate.com/github/qiniu/nodejs-sdk.png)](https://codeclimate.com/github/qiniu/nodejs-sdk)

@@ -5,0 +6,0 @@ [![Qiniu Logo](http://qiniutek.com/images/logo-2.png)](http://qiniu.com/)

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