Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Gama committed Oct 26, 2016
1 parent a35ad4c commit 9d2a8e9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
14 changes: 12 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# Changelog

## [1.0.0](https://github.com/seegno/bookshelf-mask/tree/1.0.0)
## [2.0.0](https://github.com/seegno/bookshelf-mask/tree/2.0.0) (2016-10-26)
[Full Changelog](https://github.com/seegno/bookshelf-mask/compare/1.0.0...2.0.0)

**Merged pull requests:**

- Add node version badge to README.md [\#6](https://github.com/seegno/bookshelf-mask/pull/6) ([ricardogama](https://github.com/ricardogama))
- Add documentation for ES6 class syntax usage [\#5](https://github.com/seegno/bookshelf-mask/pull/5) ([ricardogama](https://github.com/ricardogama))
- Add .npmignore [\#4](https://github.com/seegno/bookshelf-mask/pull/4) ([ricardogama](https://github.com/ricardogama))
- Update test code against new eslint configuration [\#3](https://github.com/seegno/bookshelf-mask/pull/3) ([ricardogama](https://github.com/ricardogama))
- Update dependencies versions [\#2](https://github.com/seegno/bookshelf-mask/pull/2) ([ricardogama](https://github.com/ricardogama))

## [1.0.0](https://github.com/seegno/bookshelf-mask/tree/1.0.0) (2016-06-22)
**Merged pull requests:**

- Add initial code [\#1](https://github.com/seegno/bookshelf-mask/pull/1) ([ricardogama](https://github.com/ricardogama))



\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
10 changes: 5 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
* Export `bookshelf-mask` plugin.
*/

exports.default = function (Bookshelf) {
exports.default = Bookshelf => {
Bookshelf.Model = Bookshelf.Model.extend({
mask: function mask(scope, options) {
return (0, _jsonMask2.default)(this.toJSON(options), this.masks && this.masks[scope] || scope);
Expand All @@ -25,12 +25,12 @@ exports.default = function (Bookshelf) {
mask: function mask(scope, options) {
scope = this.model.prototype.masks && this.model.prototype.masks[scope] || scope;

return this.toJSON(options).map(function (model) {
return (0, _jsonMask2.default)(model, scope);
});
return this.toJSON(options).map(model => (0, _jsonMask2.default)(model, scope));
}
});
};
/**
* Module dependencies.
*/
*/

module.exports = exports['default'];
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bookshelf-mask",
"version": "1.0.0",
"version": "2.0.0",
"description": "Mask Bookshelf.js models with json-mask",
"license": "MIT",
"author": {
Expand Down

0 comments on commit 9d2a8e9

Please sign in to comment.