@shisyamo4131/air-firebase-v2-client-adapter 2.0.3 → 2.0.4

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.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -992,6 +992,8 @@ class ClientAdapter {
992
992
  queryConstraints.push(...this.createQueries(options));
993
993
  } else if (Array.isArray(constraints)) {
994
994
  queryConstraints.push(...this.createQueries(constraints));
995
+ } else if (constraints == null || constraints === undefined) {
996
+ return this.docs;
995
997
  } else {
996
998
  throw new ClientAdapterError(ERRORS.VALIDATION_INVALID_CONSTRAINTS);
997
999
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-firebase-v2-client-adapter",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "description": "client adapter for FireModel",
5
5
  "type": "module",
6
6
  "main": "index.js",