Skip to content

Commit

Permalink
Adding second argument to ondelete() & onset() handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Feb 3, 2017
1 parent 98aa80c commit 5b07d1d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions lib/haro.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.8
* @version 3.1.9
*/
"use strict";

Expand Down Expand Up @@ -473,7 +473,7 @@
}

return defer.promise.then(arg => {
this.ondelete(arg);
this.ondelete(arg, batch);

if (this.versioning) {
this.versions.delete(key);
Expand Down Expand Up @@ -870,7 +870,7 @@
defer.resolve(this.get(key));

return defer.promise.then(arg => {
this.onset(arg);
this.onset(arg, batch);

if (!batch && this.uri) {
this.transmit(key, x, og, override, method).catch(e => {
Expand Down Expand Up @@ -1155,7 +1155,7 @@
}

factory.transform = cast;
factory.version = "3.1.8";
factory.version = "3.1.9";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
8 changes: 4 additions & 4 deletions lib/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @author Jason Mulligan <jason.mulligan@avoidwork.com>
* @copyright 2017
* @license BSD-3-Clause
* @version 3.1.8
* @version 3.1.9
*/
"use strict";

Expand Down Expand Up @@ -532,7 +532,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

return defer.promise.then(function (arg) {
_this3.ondelete(arg);
_this3.ondelete(arg, batch);

if (_this3.versioning) {
_this3.versions.delete(key);
Expand Down Expand Up @@ -1065,7 +1065,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
defer.resolve(this.get(key));

return defer.promise.then(function (arg) {
_this13.onset(arg);
_this13.onset(arg, batch);

if (!batch && _this13.uri) {
_this13.transmit(key, x, og, override, method).catch(function (e) {
Expand Down Expand Up @@ -1406,7 +1406,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
}

factory.transform = cast;
factory.version = "3.1.8";
factory.version = "3.1.9";

// Node, AMD & window supported
if (typeof exports !== "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lib/haro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/haro.min.js.map

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": "haro",
"version": "3.1.8",
"version": "3.1.9",
"description": "Harō is a modern immutable DataStore",
"main": "lib/haro.es6.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/haro.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
}

return defer.promise.then(arg => {
this.ondelete(arg);
this.ondelete(arg, batch);

if (this.versioning) {
this.versions.delete(key);
Expand Down Expand Up @@ -518,7 +518,7 @@
defer.resolve(this.get(key));

return defer.promise.then(arg => {
this.onset(arg);
this.onset(arg, batch);

if (!batch && this.uri) {
this.transmit(key, x, og, override, method).catch(e => {
Expand Down

0 comments on commit 5b07d1d

Please sign in to comment.