@firebase/util 1.10.3 → 1.11.0-auth-redirect-credentials.82faa0828
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.cjs.js +25 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm2017.js +25 -2
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +4 -1
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.d.ts +1 -0
- package/dist/node-esm/index.node.esm.js +4 -1
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/postinstall.d.ts +18 -0
- package/dist/node-esm/src/url.d.ts +17 -0
- package/dist/postinstall.js +24 -0
- package/dist/postinstall.mjs +20 -0
- package/dist/src/postinstall.d.ts +18 -0
- package/dist/src/url.d.ts +17 -0
- package/dist/util-public.d.ts +18 -0
- package/dist/util.d.ts +18 -0
- package/package.json +8 -5
- package/postinstall.js +153 -0
package/dist/index.cjs.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var postinstall = require('./postinstall.js');
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* @license
|
|
7
9
|
* Copyright 2017 Google LLC
|
|
@@ -554,7 +556,8 @@ const getDefaultsFromCookie = () => {
|
|
|
554
556
|
*/
|
|
555
557
|
const getDefaults = () => {
|
|
556
558
|
try {
|
|
557
|
-
return (
|
|
559
|
+
return (postinstall.getDefaultsFromPostinstall() ||
|
|
560
|
+
getDefaultsFromGlobal() ||
|
|
558
561
|
getDefaultsFromEnvVariable() ||
|
|
559
562
|
getDefaultsFromCookie());
|
|
560
563
|
}
|
|
@@ -2106,6 +2109,26 @@ function getModularInstance(service) {
|
|
|
2106
2109
|
}
|
|
2107
2110
|
}
|
|
2108
2111
|
|
|
2112
|
+
/**
|
|
2113
|
+
* @license
|
|
2114
|
+
* Copyright 2025 Google LLC
|
|
2115
|
+
*
|
|
2116
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2117
|
+
* you may not use this file except in compliance with the License.
|
|
2118
|
+
* You may obtain a copy of the License at
|
|
2119
|
+
*
|
|
2120
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2121
|
+
*
|
|
2122
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2123
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2124
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2125
|
+
* See the License for the specific language governing permissions and
|
|
2126
|
+
* limitations under the License.
|
|
2127
|
+
*/
|
|
2128
|
+
function isCloudWorkstation(url) {
|
|
2129
|
+
return url.endsWith('.cloudworkstations.dev');
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2109
2132
|
exports.CONSTANTS = CONSTANTS;
|
|
2110
2133
|
exports.DecodeBase64StringError = DecodeBase64StringError;
|
|
2111
2134
|
exports.Deferred = Deferred;
|
|
@@ -2143,6 +2166,7 @@ exports.getUA = getUA;
|
|
|
2143
2166
|
exports.isAdmin = isAdmin;
|
|
2144
2167
|
exports.isBrowser = isBrowser;
|
|
2145
2168
|
exports.isBrowserExtension = isBrowserExtension;
|
|
2169
|
+
exports.isCloudWorkstation = isCloudWorkstation;
|
|
2146
2170
|
exports.isCloudflareWorker = isCloudflareWorker;
|
|
2147
2171
|
exports.isElectron = isElectron;
|
|
2148
2172
|
exports.isEmpty = isEmpty;
|