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

ali-oss

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ali-oss - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

7

History.md
2.5.1 / 2015-08-24
==================
* fix: remove unnecessary decode
* fix: signature url
* fix: escape resource
2.5.0 / 2015-08-22

@@ -3,0 +10,0 @@ ==================

19

lib/client.js

@@ -29,2 +29,3 @@ /**!

var merge = require('merge-descriptors');
var url = require('url');

@@ -190,7 +191,6 @@ /**

var resource = params.resource;
var authResource = params.authResource || resource;
var authResource = params.authResource || params.resource;
headers.authorization = this.authorization(params.method, authResource, headers);
var url = 'http://' + host + resource;
var url = 'http://' + host + this._escape(params.resource);
if (params.query) {

@@ -251,2 +251,15 @@ url += '?' + querystring.stringify(params.query);

proto._escape = function (resource) {
resource = resource || '';
var parsed = url.parse(resource);
if (!parsed.pathname) {
return resource;
}
parsed.pathname = parsed.pathname.split('/').map(function (p) {
return encodeURIComponent(p);
}).join('/');
return url.format(parsed);
};
proto._getRegionHost = function (region) {

@@ -253,0 +266,0 @@ if (this.options.internal) {

5

lib/object.js

@@ -173,3 +173,2 @@ /**!

params.successStatuses = [200];
var result = yield* this.request(params);

@@ -305,3 +304,5 @@

var url = 'http://';
url += customHost ? (customHost + '/' + name) : (options.host + authResource);
url += customHost
? customHost + '/' + this._escape(name)
: options.host + this._escape(authResource);

@@ -308,0 +309,0 @@ return url + '?OSSAccessKeyId=' + encodeURIComponent(options.accessKeyId) +

{
"name": "ali-oss",
"version": "2.5.0",
"version": "2.5.1",
"description": "aliyun oss(open storage service) node client",

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

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