@jd-data-limited/easy-fm 1.2.2-alpha4 → 1.2.2-alpha5

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.
Files changed (2) hide show
  1. package/index.ts +3 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -906,11 +906,13 @@ class recordGetOperation {
906
906
  addToPortalLimit(portal: portal, offset = 0, limit = 100) {
907
907
  if (offset < 0) throw "Portal offset cannot be less than 0"
908
908
  this.limitPortals.push({portal, offset, limit})
909
+ return this
909
910
  }
910
911
 
911
912
  setLimit(limit: number) {
912
913
  if (limit < 1) throw "Record limit too low"
913
914
  this.limit = limit
915
+ return this
914
916
  }
915
917
 
916
918
  addSort(fieldName, sortOrder) {
@@ -921,6 +923,7 @@ class recordGetOperation {
921
923
  setOffset(offset: number) {
922
924
  if (offset < 0) throw "Record offset too low"
923
925
  this.limit = offset
926
+ return this
924
927
  }
925
928
  }
926
929
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jd-data-limited/easy-fm",
3
- "version": "1.2.2alpha4",
3
+ "version": "1.2.2alpha5",
4
4
  "dependencies": {
5
5
  "@types/btoa": "^1.2.3",
6
6
  "@types/events": "^3.0.0",