@onehat/data 1.22.32 → 1.22.33

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.22.32",
3
+ "version": "1.22.33",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -518,6 +518,21 @@ class OneBuildRepository extends AjaxRepository {
518
518
 
519
519
  }
520
520
 
521
+ /**
522
+ * Get all Entities on current page.
523
+ * OneBuild repositories load a single page from the server, so
524
+ * this.entities already represents the current page.
525
+ * This is an override of the parent method.
526
+ * @return {array} Entities
527
+ */
528
+ getEntitiesOnPage() {
529
+ if (this.isDestroyed) {
530
+ this.throwError('this.getEntitiesOnPage is no longer valid. Repository has been destroyed.');
531
+ return;
532
+ }
533
+ return this.getEntities();
534
+ }
535
+
521
536
  /**
522
537
  * Login to OneBuild API
523
538
  * @param {object} creds - object with two properties: