@ocap/indexdb-sqlite 1.30.9 → 1.30.10

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/esm/db/base.mjs CHANGED
@@ -235,15 +235,6 @@ var SqliteBaseIndexDB = class extends BaseIndexDB {
235
235
  */
236
236
  async listAssets(params = {}) {
237
237
  const { ownerAddress, factoryAddress, paging, timeFilter = {} } = params;
238
- if (!ownerAddress && !factoryAddress) return {
239
- assets: [],
240
- account: null,
241
- paging: {
242
- cursor: "0",
243
- next: false,
244
- total: 0
245
- }
246
- };
247
238
  const pagination = formatPagination({
248
239
  paging,
249
240
  defaultSortField: "renaissanceTime"
@@ -704,14 +695,6 @@ var SqliteBaseIndexDB = class extends BaseIndexDB {
704
695
  */
705
696
  async listDelegations(params = {}) {
706
697
  const { from, to, paging = {}, timeFilter = {} } = params;
707
- if (!from && !to) return {
708
- delegations: [],
709
- paging: {
710
- cursor: "0",
711
- next: false,
712
- total: 0
713
- }
714
- };
715
698
  const pagination = formatPagination({
716
699
  paging,
717
700
  defaultSortField: "renaissanceTime",
package/lib/db/base.cjs CHANGED
@@ -239,15 +239,6 @@ var SqliteBaseIndexDB = class extends _ocap_indexdb.BaseIndexDB {
239
239
  */
240
240
  async listAssets(params = {}) {
241
241
  const { ownerAddress, factoryAddress, paging, timeFilter = {} } = params;
242
- if (!ownerAddress && !factoryAddress) return {
243
- assets: [],
244
- account: null,
245
- paging: {
246
- cursor: "0",
247
- next: false,
248
- total: 0
249
- }
250
- };
251
242
  const pagination = (0, _ocap_indexdb.formatPagination)({
252
243
  paging,
253
244
  defaultSortField: "renaissanceTime"
@@ -708,14 +699,6 @@ var SqliteBaseIndexDB = class extends _ocap_indexdb.BaseIndexDB {
708
699
  */
709
700
  async listDelegations(params = {}) {
710
701
  const { from, to, paging = {}, timeFilter = {} } = params;
711
- if (!from && !to) return {
712
- delegations: [],
713
- paging: {
714
- cursor: "0",
715
- next: false,
716
- total: 0
717
- }
718
- };
719
702
  const pagination = (0, _ocap_indexdb.formatPagination)({
720
703
  paging,
721
704
  defaultSortField: "renaissanceTime",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocap/indexdb-sqlite",
3
3
  "description": "OCAP indexdb adapter that uses SQLite as backend",
4
- "version": "1.30.9",
4
+ "version": "1.30.10",
5
5
  "author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/ArcBlock/blockchain/issues",
@@ -61,10 +61,10 @@
61
61
  "clean": "rm -rf lib esm"
62
62
  },
63
63
  "dependencies": {
64
- "@arcblock/did": "1.30.9",
65
- "@ocap/indexdb": "1.30.9",
66
- "@ocap/types": "1.30.9",
67
- "@ocap/util": "1.30.9",
64
+ "@arcblock/did": "1.30.10",
65
+ "@ocap/indexdb": "1.30.10",
66
+ "@ocap/types": "1.30.10",
67
+ "@ocap/util": "1.30.10",
68
68
  "debug": "^4.4.3",
69
69
  "better-sqlite3": "^11.8.1",
70
70
  "kysely": "^0.28.14",