@firebase/util 1.9.6-dataconnect-preview.388b61c7e → 1.9.6
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 +0 -56
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.esm2017.js +1 -56
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +1 -59
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +0 -59
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.d.ts +0 -1
- package/dist/node-esm/index.d.ts +0 -1
- package/dist/node-esm/index.node.d.ts +0 -1
- package/dist/node-esm/index.node.esm.js +1 -56
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/util-public.d.ts +0 -26
- package/dist/util.d.ts +0 -26
- package/package.json +1 -1
- package/dist/node-esm/src/fetch_provider.d.ts +0 -25
- package/dist/src/fetch_provider.d.ts +0 -25
package/dist/index.esm5.js
CHANGED
|
@@ -2107,63 +2107,5 @@ function getModularInstance(service) {
|
|
|
2107
2107
|
}
|
|
2108
2108
|
}
|
|
2109
2109
|
|
|
2110
|
-
|
|
2111
|
-
* @license
|
|
2112
|
-
* Copyright 2023 Google LLC
|
|
2113
|
-
*
|
|
2114
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
2115
|
-
* you may not use this file except in compliance with the License.
|
|
2116
|
-
* You may obtain a copy of the License at
|
|
2117
|
-
*
|
|
2118
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
2119
|
-
*
|
|
2120
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
2121
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
2122
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2123
|
-
* See the License for the specific language governing permissions and
|
|
2124
|
-
* limitations under the License.
|
|
2125
|
-
*/
|
|
2126
|
-
var FetchProvider = /** @class */ (function () {
|
|
2127
|
-
function FetchProvider() {
|
|
2128
|
-
}
|
|
2129
|
-
FetchProvider.initialize = function (fetchImpl, headersImpl, responseImpl) {
|
|
2130
|
-
this.fetchImpl = fetchImpl;
|
|
2131
|
-
if (headersImpl) {
|
|
2132
|
-
this.headersImpl = headersImpl;
|
|
2133
|
-
}
|
|
2134
|
-
if (responseImpl) {
|
|
2135
|
-
this.responseImpl = responseImpl;
|
|
2136
|
-
}
|
|
2137
|
-
};
|
|
2138
|
-
FetchProvider.fetch = function () {
|
|
2139
|
-
if (this.fetchImpl) {
|
|
2140
|
-
return this.fetchImpl;
|
|
2141
|
-
}
|
|
2142
|
-
if (typeof self !== 'undefined' && 'fetch' in self) {
|
|
2143
|
-
return self.fetch;
|
|
2144
|
-
}
|
|
2145
|
-
throw new Error('Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
|
|
2146
|
-
};
|
|
2147
|
-
FetchProvider.headers = function () {
|
|
2148
|
-
if (this.headersImpl) {
|
|
2149
|
-
return this.headersImpl;
|
|
2150
|
-
}
|
|
2151
|
-
if (typeof self !== 'undefined' && 'Headers' in self) {
|
|
2152
|
-
return self.Headers;
|
|
2153
|
-
}
|
|
2154
|
-
throw new Error('Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
|
|
2155
|
-
};
|
|
2156
|
-
FetchProvider.response = function () {
|
|
2157
|
-
if (this.responseImpl) {
|
|
2158
|
-
return this.responseImpl;
|
|
2159
|
-
}
|
|
2160
|
-
if (typeof self !== 'undefined' && 'Response' in self) {
|
|
2161
|
-
return self.Response;
|
|
2162
|
-
}
|
|
2163
|
-
throw new Error('Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
|
|
2164
|
-
};
|
|
2165
|
-
return FetchProvider;
|
|
2166
|
-
}());
|
|
2167
|
-
|
|
2168
|
-
export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FetchProvider, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, issuedAtTime, jsonEval, map, ordinal, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, uuidv4, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
|
|
2110
|
+
export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, issuedAtTime, jsonEval, map, ordinal, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, uuidv4, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
|
|
2169
2111
|
//# sourceMappingURL=index.esm5.js.map
|