bpmn-client 2.3.2 → 2.3.5

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.
@@ -191,8 +191,8 @@ class ClientDatastore {
191
191
  this.client = client;
192
192
  }
193
193
  find(_a) {
194
- return __awaiter(this, arguments, void 0, function* ({ filter, sort, limit, after, projection, getTotalCount }) {
195
- var res = yield this.client.get('datastore/find', { filter, after, limit, sort, projection, getTotalCount });
194
+ return __awaiter(this, arguments, void 0, function* ({ filter, sort, limit, after, projection, lastItem, latestItem, getTotalCount }) {
195
+ var res = yield this.client.get('datastore/find', { filter, after, limit, sort, projection, lastItem, latestItem, getTotalCount });
196
196
  if (res.error) {
197
197
  console.log(res.error);
198
198
  throw new Error(res.error);
@@ -148,8 +148,8 @@ class ClientData2 {
148
148
  this.client = client;
149
149
  }
150
150
  find(_a) {
151
- return __awaiter(this, arguments, void 0, function* ({ filter, sort, limit, after, projection, getTotalCount, user }) {
152
- var res = yield this.client.get('datastore/find', { filter, after, limit, sort, projection, getTotalCount });
151
+ return __awaiter(this, arguments, void 0, function* ({ filter, sort, limit, after, projection, lastItem, latestItem, getTotalCount, user }) {
152
+ var res = yield this.client.get('datastore/find', { filter, after, limit, sort, projection, lastItem, latestItem, getTotalCount, user });
153
153
  if (res.error) {
154
154
  console.log(res.error);
155
155
  throw new Error(res.error);
package/dist/testFind.js CHANGED
@@ -20,7 +20,7 @@ function test() {
20
20
  const res = yield server1.datastore.find({
21
21
  filter: { "items.type": "bpmn:UserTask" },
22
22
  sort: { 'items.startedAt': 1 },
23
- limit: 20, // limit
23
+ //limit:20, // limit
24
24
  projection: { id: 1, "_id": 1, name: 1, startedAt: 1, status: 1,
25
25
  "items.name": 1, "items.startedAt": 1, "items.type": 1, "items.status": 1 },
26
26
  getTotalCount: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-client",
3
- "version": "2.3.2",
3
+ "version": "2.3.5",
4
4
  "license": "MIT",
5
5
  "main":"./dist/index.js",
6
6
  "scripts": {