Comparing version 4.2.0 to 4.2.1
4.2.1 / 2016-04-07 | ||
================== | ||
* fix: add getObjectUrl on cluster client | ||
4.2.0 / 2016-04-07 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -1,2 +0,2 @@ | ||
/**! | ||
/** | ||
* Copyright(c) ali-sdk and other contributors. | ||
@@ -20,2 +20,3 @@ * MIT Licensed | ||
const util = require('util'); | ||
const utility = require('utility'); | ||
const ready = require('get-ready'); | ||
@@ -80,3 +81,3 @@ const copy = require('copy-to'); | ||
proto[method] = function* () { | ||
const args = Array.prototype.slice.call(arguments); | ||
const args = utility.argumentsToArray(arguments); | ||
var client = this.chooseAvailable(); | ||
@@ -120,3 +121,3 @@ var lastError; | ||
proto[method] = function* () { | ||
var args = Array.prototype.slice.call(arguments); | ||
var args = utility.argumentsToArray(arguments); | ||
var res = yield this.clients.map(function (client) { | ||
@@ -130,3 +131,3 @@ return client[method].apply(client, args); | ||
proto.signatureUrl = function (/* name */) { | ||
const args = Array.prototype.slice.call(arguments); | ||
var args = utility.argumentsToArray(arguments); | ||
var client = this.chooseAvailable(); | ||
@@ -136,2 +137,8 @@ return client.signatureUrl.apply(client, args); | ||
proto.getObjectUrl = function (/* name, baseUrl */) { | ||
var args = utility.argumentsToArray(arguments); | ||
var client = this.chooseAvailable(); | ||
return client.getObjectUrl.apply(client, args); | ||
}; | ||
proto._init = function() { | ||
@@ -138,0 +145,0 @@ const that = this; |
{ | ||
"name": "ali-oss", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "aliyun oss(open storage service) node client", | ||
@@ -5,0 +5,0 @@ "main": "lib/client.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129825
1948