@akashic/headless-driver 2.5.2 → 2.5.3

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.
@@ -187,12 +187,7 @@ class AMFlowClient {
187
187
  return;
188
188
  }
189
189
  const tickList = this.store.getTickList(opts);
190
- if (tickList) {
191
- callback(null, tickList);
192
- }
193
- else {
194
- callback((0, ErrorFactory_1.createError)("runtime_error", "No tick list"), undefined);
195
- }
190
+ callback(null, tickList !== null && tickList !== void 0 ? tickList : undefined);
196
191
  });
197
192
  }
198
193
  putStartPoint(startPoint, callback) {
@@ -51,6 +51,9 @@ class AMFlowStore {
51
51
  const tickList = opts.excludeEventFlags && opts.excludeEventFlags.ignorable ? this.filteredTickList : this.unfilteredTickList;
52
52
  const from = Math.max(opts.begin, tickList[0 /* TickListIndex.From */]);
53
53
  const to = Math.min(opts.end - 1, tickList[1 /* TickListIndex.To */]);
54
+ if (to < from) {
55
+ return null;
56
+ }
54
57
  const tickListTicks = tickList[2 /* TickListIndex.Ticks */];
55
58
  if (tickListTicks == null) {
56
59
  return [from, to];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akashic/headless-driver",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "A library to execute contents using Akashic Engine headlessly",
5
5
  "main": "lib/index.js",
6
6
  "author": "DWANGO Co., Ltd.",