@shisyamo4131/air-firebase-v2-client-adapter 2.1.1 → 2.1.2

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 +3 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -32,6 +32,7 @@ import { ClientAdapterError, ERRORS } from "./error.js";
32
32
  class ClientAdapter {
33
33
  static firestore = null;
34
34
  static auth = null;
35
+ static functions = null; // 2025-12-29 added
35
36
  static GeoPoint = null; // 2025-12-29 added
36
37
  static httpsCallable = null; // 2025-12-29 added
37
38
 
@@ -80,13 +81,10 @@ class ClientAdapter {
80
81
 
81
82
  /**
82
83
  * Returns the Functions instance.
83
- * - 2025-12-29 added
84
+ * - 2025-12-30 modified to return null if not initialized (instead of throwing error)
84
85
  */
85
86
  get functions() {
86
- if (!ClientAdapter.functions) {
87
- throw new ClientAdapterError(ERRORS.SYSTEM_FUNCTIONS_NOT_INITIALIZED);
88
- }
89
- return ClientAdapter.functions;
87
+ return ClientAdapter.functions; // ← null を返すように変更(エラーをスローしない)
90
88
  }
91
89
 
92
90
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shisyamo4131/air-firebase-v2-client-adapter",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "client adapter for FireModel",
5
5
  "type": "module",
6
6
  "main": "index.js",