Merge branch 'release/1.0.4' into production
This commit is contained in:
commit
c8f4ae44ff
|
@ -25,6 +25,11 @@ function patchBaseClass(cls) {
|
|||
proto._setProperties = function (details) {
|
||||
// Use an empty object to receive the calculated properties from details
|
||||
var receiver = {};
|
||||
// Pass in some context as non-enumerable properties
|
||||
Object.defineProperties(receiver, {
|
||||
client: {value: this.client},
|
||||
files: {value: this.files}
|
||||
});
|
||||
m1.call(receiver, details);
|
||||
// Apply the calculated properties to this
|
||||
for (var p in receiver) {
|
||||
|
|
|
@ -64,6 +64,7 @@ StorageService.prototype.getContainers = function (cb) {
|
|||
StorageService.prototype.createContainer = function (options, cb) {
|
||||
options = options || {};
|
||||
if ('object' === typeof options && !(options instanceof storage.Container)) {
|
||||
options.Name = options.name; // Amazon expects Name
|
||||
var Container = factory.getProvider(this.provider).storage.Container;
|
||||
options = new Container(this.client, options);
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "loopback-storage-service",
|
||||
"description": "Loopback Storage Service",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/mocha --timeout 30000 test/*test.js"
|
||||
|
|
Loading…
Reference in New Issue