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

ali-oss

Package Overview
Dependencies
Maintainers
3
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 3.1.4 to 3.1.5

5

History.md
3.1.5 / 2016-03-08
==================
* fix: replace %20 to +
3.1.4 / 2016-01-26

@@ -3,0 +8,0 @@ ==================

17

lib/client.js

@@ -271,11 +271,12 @@ /**

resource = resource || '';
var parsed = url.parse(resource);
if (!parsed.pathname) {
return resource;
let split = resource.indexOf('?');
var pathname = resource;
var query = '';
if (split !== -1) {
pathname = resource.slice(0, split);
query = resource.slice(split);
}
parsed.pathname = parsed.pathname.split('/').map(function (p) {
return encodeURIComponent(p);
}).join('/');
return url.format(parsed);
// need remain '/'
// oss don't support %20, use '+'
return encodeURIComponent(pathname).replace(/%2F/g, '/').replace(/%20/g, '+') + query;
};

@@ -282,0 +283,0 @@

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

@@ -5,0 +5,0 @@ "main": "lib/client.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