@firebase/util 1.9.6-dataconnect-preview.877f8b7d0 → 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 CHANGED
@@ -2113,66 +2113,10 @@ function getModularInstance(service) {
2113
2113
  }
2114
2114
  }
2115
2115
 
2116
- /**
2117
- * @license
2118
- * Copyright 2023 Google LLC
2119
- *
2120
- * Licensed under the Apache License, Version 2.0 (the "License");
2121
- * you may not use this file except in compliance with the License.
2122
- * You may obtain a copy of the License at
2123
- *
2124
- * http://www.apache.org/licenses/LICENSE-2.0
2125
- *
2126
- * Unless required by applicable law or agreed to in writing, software
2127
- * distributed under the License is distributed on an "AS IS" BASIS,
2128
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2129
- * See the License for the specific language governing permissions and
2130
- * limitations under the License.
2131
- */
2132
- class FetchProvider {
2133
- static initialize(fetchImpl, headersImpl, responseImpl) {
2134
- this.fetchImpl = fetchImpl;
2135
- if (headersImpl) {
2136
- this.headersImpl = headersImpl;
2137
- }
2138
- if (responseImpl) {
2139
- this.responseImpl = responseImpl;
2140
- }
2141
- }
2142
- static fetch() {
2143
- if (this.fetchImpl) {
2144
- return this.fetchImpl;
2145
- }
2146
- if (typeof self !== 'undefined' && 'fetch' in self) {
2147
- return self.fetch;
2148
- }
2149
- throw new Error('Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
2150
- }
2151
- static headers() {
2152
- if (this.headersImpl) {
2153
- return this.headersImpl;
2154
- }
2155
- if (typeof self !== 'undefined' && 'Headers' in self) {
2156
- return self.Headers;
2157
- }
2158
- throw new Error('Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
2159
- }
2160
- static response() {
2161
- if (this.responseImpl) {
2162
- return this.responseImpl;
2163
- }
2164
- if (typeof self !== 'undefined' && 'Response' in self) {
2165
- return self.Response;
2166
- }
2167
- throw new Error('Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill');
2168
- }
2169
- }
2170
-
2171
2116
  exports.CONSTANTS = CONSTANTS;
2172
2117
  exports.DecodeBase64StringError = DecodeBase64StringError;
2173
2118
  exports.Deferred = Deferred;
2174
2119
  exports.ErrorFactory = ErrorFactory;
2175
- exports.FetchProvider = FetchProvider;
2176
2120
  exports.FirebaseError = FirebaseError;
2177
2121
  exports.MAX_VALUE_MILLIS = MAX_VALUE_MILLIS;
2178
2122
  exports.RANDOM_FACTOR = RANDOM_FACTOR;