@wix/motion-edm-autogen-query-wrapper
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -31,4 +31,9 @@ "use strict"; | ||
(0, _defineProperty2.default)(this, "_prevCursor", void 0); | ||
(0, _defineProperty2.default)(this, "cursors", void 0); | ||
this._nextCursor = nextCursor; | ||
this._prevCursor = prevCursor; | ||
this.cursors = { | ||
next: nextCursor, | ||
prev: prevCursor | ||
}; | ||
} | ||
@@ -35,0 +40,0 @@ |
@@ -88,2 +88,6 @@ "use strict"; | ||
skipTo(cursor) { | ||
return this._copyWithCursor(cursor); | ||
} | ||
_copyWithCursor(cursor) { | ||
@@ -90,0 +94,0 @@ return new PlatformizedQueryMethodWrapper({ ...this, |
@@ -10,2 +10,6 @@ import { __extends } from "tslib"; | ||
_this._prevCursor = prevCursor; | ||
_this.cursors = { | ||
next: nextCursor, | ||
prev: prevCursor, | ||
}; | ||
return _this; | ||
@@ -12,0 +16,0 @@ } |
@@ -78,2 +78,5 @@ import { __assign, __awaiter, __extends, __generator } from "tslib"; | ||
}; | ||
PlatformizedQueryMethodWrapper.prototype.skipTo = function (cursor) { | ||
return this._copyWithCursor(cursor); | ||
}; | ||
PlatformizedQueryMethodWrapper.prototype._copyWithCursor = function (cursor) { | ||
@@ -80,0 +83,0 @@ return new PlatformizedQueryMethodWrapper(__assign(__assign({}, this), { cursor: cursor })); |
@@ -5,2 +5,3 @@ import { Iterator } from './Iterator'; | ||
private readonly _prevCursor; | ||
readonly cursors: any; | ||
constructor({ items, originQuery, fetchNextPage, fetchPrevPage, limit, nextCursor, prevCursor, }: { | ||
@@ -7,0 +8,0 @@ items: any; |
@@ -5,2 +5,3 @@ import { PlatformizedQueryBuilder } from './PlatformizedQueryBuilder'; | ||
find(options?: {}): Promise<any>; | ||
skipTo(cursor: any): PlatformizedQueryMethodWrapper; | ||
_copyWithCursor(cursor: any): PlatformizedQueryMethodWrapper; | ||
@@ -7,0 +8,0 @@ _buildQuery(): { |
{ | ||
"name": "@wix/motion-edm-autogen-query-wrapper", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"main": "dist/cjs/index.js", | ||
@@ -70,3 +70,3 @@ "module": "dist/esm/index.js", | ||
}, | ||
"falconPackageHash": "19010fd31786bb4888c01f96a1533c490248e5d3bf1767ac24f7c0b0" | ||
"falconPackageHash": "31cf2fb5e67092855625b9c78d7556b42b7a55abd113c311b61197aa" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4262461
38060