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.7.0 to 2.8.0

lib/cluster.js

7

History.md
2.8.0 / 2015-09-29
==================
* test: cluster store to two different bucket
* feat: support signatureUrl
* feat: add clusterClient
2.7.0 / 2015-09-22

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

4

lib/client.js

@@ -89,2 +89,6 @@ /**!

Client.ImageClient = require('./image')(Client);
/**
* Cluster Client class
*/
Client.ClusterClient = require('./cluster')(Client);

@@ -91,0 +95,0 @@ proto.setRegion = function (region) {

31

package.json
{
"name": "ali-oss",
"version": "2.7.0",
"version": "2.8.0",
"description": "aliyun oss(open storage service) node client",
"main": "index.js",
"main": "lib/client.js",
"files": [
"index.js",
"lib/"
"lib"
],
"scripts": {
"test": "mocha --harmony --check-leaks -R dot -t 30000 -r co-mocha test/*.test.js",
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot --check-leaks -t 60000 -r co-mocha test/*.test.js",
"test": "mocha --harmony --check-leaks -t 30000 -r co-mocha -r should test/*.test.js",
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -R dot --check-leaks -t 60000 -r co-mocha -r should test/*.test.js",
"jshint": "jshint .",
"autod": "autod -w --prefix '~'",
"autod": "autod -w --prefix '~' -D mocha,autod,should,co-mocha,istanbul-harmony",
"cnpm": "npm install --registry=https://registry.npm.taobao.org",

@@ -35,9 +34,10 @@ "contributors": "contributors -f plain -o AUTHORS"

"devDependencies": {
"autod": "*",
"autod": "~2.1.3",
"co": "*",
"co-fs": "1",
"co-mocha": "*",
"istanbul-harmony": "*",
"mocha": "*",
"should": "*"
"co-fs": "~1.2.0",
"co-mocha": "~1.1.2",
"istanbul-harmony": "~0.3.16",
"mm": "~1.3.4",
"mocha": "~2.3.3",
"should": "~7.1.0"
},

@@ -54,6 +54,7 @@ "dependencies": {

"mime": "~1.3.4",
"urllib": "~2.3.9",
"sdk-base": "~1.0.1",
"urllib": "~2.4.0",
"utility": "~1.4.0",
"xml2js": "~0.4.9"
"xml2js": "~0.4.12"
}
}

@@ -1665,2 +1665,46 @@ ali-oss

## Cluster Mode
Cluster mode now only support object operations.
```js
var Cluster = require('ali-oss').ClusterClient;
var client = Cluster({
cluster: [{
host: 'host1',
accessKeyId: 'id1',
accessKeySecret: 'secret1'
}, {
host: 'host2',
accessKeyId: 'id2',
accessKeySecret: 'secret2'
}],
schedule: 'masterSlave', //default is `roundRobin`
});
```
### Get Methods
Will choose an alive client by schedule(`masterSlave` or `roundRobin`).
- `client.get()`
- `client.head()`
- `client.getStream()`
- `client.list()`
- `client.signatureUrl()`
___Notice: client.signatureUrl now is a generatorFunction.___
### Put Methods
Will put to all clients.
- `client.put()`
- `client.putStream()`
- `client.delete()`
- `client.deleteMulti()`
- `client.copy()`
- `client.putMeta()`
## Known Errors

@@ -1667,0 +1711,0 @@

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