@firebase/database-compat 2.0.5-ssl-check.4f23f3343 → 2.0.6-20250505162014
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/dist/index.esm2017.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.standalone.js +11 -14
- package/dist/index.standalone.js.map +1 -1
- package/dist/node-esm/index.js +1 -1
- package/package.json +7 -7
    
        package/dist/index.esm2017.js
    CHANGED
    
    | @@ -5,7 +5,7 @@ import { errorPrefix, validateArgCount, validateCallback, validateContextObject, | |
| 5 5 | 
             
            import { Logger } from '@firebase/logger';
         | 
| 6 6 |  | 
| 7 7 | 
             
            const name = "@firebase/database-compat";
         | 
| 8 | 
            -
            const version = "2.0. | 
| 8 | 
            +
            const version = "2.0.6-20250505162014";
         | 
| 9 9 |  | 
| 10 10 | 
             
            /**
         | 
| 11 11 | 
             
             * @license
         | 
    
        package/dist/index.js
    CHANGED
    
    | @@ -11,7 +11,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau | |
| 11 11 | 
             
            var firebase__default = /*#__PURE__*/_interopDefaultLegacy(firebase);
         | 
| 12 12 |  | 
| 13 13 | 
             
            const name = "@firebase/database-compat";
         | 
| 14 | 
            -
            const version = "2.0. | 
| 14 | 
            +
            const version = "2.0.6-20250505162014";
         | 
| 15 15 |  | 
| 16 16 | 
             
            /**
         | 
| 17 17 | 
             
             * @license
         | 
    
        package/dist/index.standalone.js
    CHANGED
    
    | @@ -3717,7 +3717,7 @@ function isVersionServiceProvider(provider) { | |
| 3717 3717 | 
             
            }
         | 
| 3718 3718 |  | 
| 3719 3719 | 
             
            const name$q = "@firebase/app";
         | 
| 3720 | 
            -
            const version$1 = "0.11. | 
| 3720 | 
            +
            const version$1 = "0.11.6-20250505162014";
         | 
| 3721 3721 |  | 
| 3722 3722 | 
             
            /**
         | 
| 3723 3723 | 
             
             * @license
         | 
| @@ -3788,7 +3788,7 @@ const name$2 = "@firebase/vertexai"; | |
| 3788 3788 | 
             
            const name$1 = "@firebase/firestore-compat";
         | 
| 3789 3789 |  | 
| 3790 3790 | 
             
            const name = "firebase";
         | 
| 3791 | 
            -
            const version = "11.6. | 
| 3791 | 
            +
            const version = "11.6.2-20250505162014";
         | 
| 3792 3792 |  | 
| 3793 3793 | 
             
            /**
         | 
| 3794 3794 | 
             
             * @license
         | 
| @@ -18383,18 +18383,11 @@ let useRestClient = false; | |
| 18383 18383 | 
             
             * Update an existing `Repo` in place to point to a new host/port.
         | 
| 18384 18384 | 
             
             */
         | 
| 18385 18385 | 
             
            function repoManagerApplyEmulatorSettings(repo, hostAndPort, emulatorOptions, tokenProvider) {
         | 
| 18386 | 
            -
                 | 
| 18387 | 
            -
                 | 
| 18388 | 
            -
                 | 
| 18389 | 
            -
             | 
| 18390 | 
            -
             | 
| 18391 | 
            -
                }
         | 
| 18392 | 
            -
                if (/^wss:\/\//.test(finalHost)) {
         | 
| 18393 | 
            -
                    ssl = true;
         | 
| 18394 | 
            -
                    finalHost = finalHost.substring(6);
         | 
| 18395 | 
            -
                }
         | 
| 18396 | 
            -
                repo.repoInfo_ = new RepoInfo(finalHost, 
         | 
| 18397 | 
            -
                /* secure= */ ssl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams, 
         | 
| 18386 | 
            +
                const portIndex = hostAndPort.lastIndexOf(':');
         | 
| 18387 | 
            +
                const host = hostAndPort.substring(0, portIndex);
         | 
| 18388 | 
            +
                const useSsl = util.isCloudWorkstation(host);
         | 
| 18389 | 
            +
                repo.repoInfo_ = new RepoInfo(hostAndPort, 
         | 
| 18390 | 
            +
                /* secure= */ useSsl, repo.repoInfo_.namespace, repo.repoInfo_.webSocketOnly, repo.repoInfo_.nodeAdmin, repo.repoInfo_.persistenceKey, repo.repoInfo_.includeNamespaceInQueryParams, 
         | 
| 18398 18391 | 
             
                /*isUsingEmulator=*/ true, emulatorOptions);
         | 
| 18399 18392 | 
             
                if (tokenProvider) {
         | 
| 18400 18393 | 
             
                    repo.authTokenProvider_ = tokenProvider;
         | 
| @@ -18581,6 +18574,10 @@ function connectDatabaseEmulator(db, host, port, options = {}) { | |
| 18581 18574 | 
             
                        : util.createMockUserToken(options.mockUserToken, db.app.options.projectId);
         | 
| 18582 18575 | 
             
                    tokenProvider = new EmulatorTokenProvider(token);
         | 
| 18583 18576 | 
             
                }
         | 
| 18577 | 
            +
                // Workaround to get cookies in Firebase Studio
         | 
| 18578 | 
            +
                if (util.isCloudWorkstation(host)) {
         | 
| 18579 | 
            +
                    void util.pingServer(host);
         | 
| 18580 | 
            +
                }
         | 
| 18584 18581 | 
             
                // Modify the repo to apply emulator settings
         | 
| 18585 18582 | 
             
                repoManagerApplyEmulatorSettings(repo, hostAndPort, options, tokenProvider);
         | 
| 18586 18583 | 
             
            }
         |