Skip to content

Commit

Permalink
Fixing the lib export
Browse files Browse the repository at this point in the history
  • Loading branch information
Yomguithereal committed Mar 5, 2018
1 parent 73bdc3a commit 26e5832
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2.5.2

* Fixing the library's export.

## v2.5.1

* Fixing issue related to monkey not firing the correct events ([@roark](https://github.com/roark)).
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "baobab",
"main": "build/baobab.min.js",
"version": "2.5.0",
"version": "2.5.2",
"homepage": "https://github.com/Yomguithereal/baobab",
"author": {
"name": "Guillaume Plique",
Expand Down
14 changes: 8 additions & 6 deletions build/baobab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Baobab
*
* Homepage: https://github.com/Yomguithereal/baobab
* Version: 2.5.1
* Version: 2.5.2
* Author: Yomguithereal (Guillaume Plique)
* License: MIT
*/
Expand Down Expand Up @@ -564,8 +564,6 @@
},{}],2:[function(require,module,exports){
'use strict';

exports.__esModule = true;

var _emmett = require('emmett');

var _emmett2 = _interopRequireDefault(_emmett);
Expand Down Expand Up @@ -1130,7 +1128,6 @@ var Baobab = function (_Emitter) {
*/


exports.default = Baobab;
Baobab.monkey = function () {
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
Expand All @@ -1154,9 +1151,14 @@ Baobab.type = _type2.default;
Baobab.helpers = helpers;

/**
* Version
* Version.
*/
Baobab.VERSION = '2.5.2';

/**
* Exporting.
*/
Baobab.VERSION = '2.5.0';
module.exports = Baobab;

},{"./cursor":3,"./helpers":4,"./monkey":5,"./type":6,"./update":7,"./watcher":8,"emmett":1}],3:[function(require,module,exports){
'use strict';
Expand Down
4 changes: 2 additions & 2 deletions build/baobab.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baobab",
"version": "2.5.1",
"version": "2.5.2",
"description": "JavaScript persistent data tree with cursors.",
"main": "./dist/baobab.js",
"dependencies": {
Expand Down
11 changes: 8 additions & 3 deletions src/baobab.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const DEFAULTS = {
* @param {function} [opts.validate] - Validation function.
* @param {string} [opts.validationBehaviour] - "rollback" or "notify".
*/
export default class Baobab extends Emitter {
class Baobab extends Emitter {
constructor(initialData, opts) {
super();

Expand Down Expand Up @@ -581,6 +581,11 @@ Baobab.type = type;
Baobab.helpers = helpers;

/**
* Version
* Version.
*/
Baobab.VERSION = '2.5.0';
Baobab.VERSION = '2.5.2';

/**
* Exporting.
*/
module.exports = Baobab;

0 comments on commit 26e5832

Please sign in to comment.