Comparing version 0.0.4 to 0.0.5
@@ -313,3 +313,3 @@ 'use strict'; | ||
} | ||
}), _applyDecoratedDescriptor(_class.prototype, 'ids', [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'ids'), _class.prototype)), _class); | ||
}), _applyDecoratedDescriptor(_class.prototype, 'add', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'add'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'remove', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'remove'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'set', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'create', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'create'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'fetch', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'fetch'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'ids', [_mobx.computed], Object.getOwnPropertyDescriptor(_class.prototype, 'ids'), _class.prototype)), _class); | ||
exports.default = Collection; |
@@ -9,3 +9,3 @@ 'use strict'; | ||
var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3; | ||
var _desc, _value, _class, _descriptor, _descriptor2; | ||
@@ -77,7 +77,5 @@ var _mobx = require('mobx'); | ||
_initDefineProp(this, 'attributes', _descriptor3, this); | ||
this.uuid = _nodeUuid2.default.v4(); | ||
this.collection = collection; | ||
this.set(attributes); | ||
(0, _mobx.extendObservable)(this, { attributes: (0, _mobx.asMap)(attributes) }); | ||
} | ||
@@ -190,8 +188,3 @@ | ||
initializer: null | ||
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'attributes', [_mobx.observable], { | ||
enumerable: true, | ||
initializer: function initializer() { | ||
return {}; | ||
} | ||
})), _class); | ||
}), _applyDecoratedDescriptor(_class.prototype, 'set', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'set'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'save', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'save'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'destroy', [action], Object.getOwnPropertyDescriptor(_class.prototype, 'destroy'), _class.prototype)), _class); | ||
exports.default = Model; |
{ | ||
"name": "mobx-rest", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
38343
877