tapeworm 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,11 +55,11 @@ InMemoryPartition.prototype.applyCommitHeader = function (commitId, header, call
55
55
  InMemoryPartition.prototype.append = function (commit, callback) {
56
56
  commit.isDispatched = false;
57
57
  //check for duplicates
58
- if (_.contains(this._commitIds, commit.id)) {
58
+ if (_.includes(this._commitIds, commit.id)) {
59
59
  throw new DuplicateCommitError('Duplicate commit of ' + commit.id);
60
60
  }
61
61
  var concurrencyKey = getConcurrencyKey(commit);
62
- if (_.contains(this._commitConcurrencyCheck, concurrencyKey)) {
62
+ if (_.includes(this._commitConcurrencyCheck, concurrencyKey)) {
63
63
  throw new ConcurrencyError('Concurrency error on stream ' + commit.streamId);
64
64
  }
65
65
  //check concurrency
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tapeworm",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -34,13 +34,13 @@
34
34
  "eslint-plugin-react": "^3.3.1",
35
35
  "istanbul": "^0.3.2",
36
36
  "mocha": "^2.0.1",
37
- "should": "^4.1.0",
38
37
  "prettier": "^2.1.2",
39
- "prettier-config-surikaterna": "^1.0.1"
38
+ "prettier-config-surikaterna": "^1.0.1",
39
+ "should": "^4.1.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "bluebird": "^2.5.2",
43
- "lodash": "^2.4.2",
43
+ "lodash": "^4.17.21",
44
44
  "uuid": "^8.3.2"
45
45
  }
46
46
  }