@firebase/util 1.6.2 → 1.6.3-20220707195244
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm2017.js +28 -1
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +29 -1
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +29 -0
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/index.node.d.ts +1 -0
- package/dist/node-esm/index.d.ts +1 -0
- package/dist/node-esm/index.node.d.ts +1 -0
- package/dist/node-esm/index.node.esm.js +28 -1
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/promise.d.ts +21 -0
- package/dist/src/promise.d.ts +21 -0
- package/dist/util-public.d.ts +2 -0
- package/dist/util.d.ts +22 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @firebase/util
|
|
2
2
|
|
|
3
|
+
## 1.6.3-20220707195244
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf) [#6340](https://github.com/firebase/firebase-js-sdk/pull/6340) (fixes [#6036](https://github.com/firebase/firebase-js-sdk/issues/6036)) - Forced `get()` to wait until db is online to resolve.
|
|
8
|
+
|
|
3
9
|
## 1.6.2
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
package/dist/index.esm2017.js
CHANGED
|
@@ -1052,6 +1052,33 @@ function isObject(thing) {
|
|
|
1052
1052
|
return thing !== null && typeof thing === 'object';
|
|
1053
1053
|
}
|
|
1054
1054
|
|
|
1055
|
+
/**
|
|
1056
|
+
* @license
|
|
1057
|
+
* Copyright 2022 Google LLC
|
|
1058
|
+
*
|
|
1059
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
1060
|
+
* you may not use this file except in compliance with the License.
|
|
1061
|
+
* You may obtain a copy of the License at
|
|
1062
|
+
*
|
|
1063
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
1064
|
+
*
|
|
1065
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1066
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
1067
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1068
|
+
* See the License for the specific language governing permissions and
|
|
1069
|
+
* limitations under the License.
|
|
1070
|
+
*/
|
|
1071
|
+
/**
|
|
1072
|
+
* Rejects if the given promise doesn't resolve in timeInMS milliseconds.
|
|
1073
|
+
* @internal
|
|
1074
|
+
*/
|
|
1075
|
+
function promiseWithTimeout(promise, timeInMS = 2000) {
|
|
1076
|
+
const deferredPromise = new Deferred();
|
|
1077
|
+
setTimeout(() => deferredPromise.reject('timeout!'), timeInMS);
|
|
1078
|
+
promise.then(deferredPromise.resolve, deferredPromise.reject);
|
|
1079
|
+
return deferredPromise.promise;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1055
1082
|
/**
|
|
1056
1083
|
* @license
|
|
1057
1084
|
* Copyright 2017 Google LLC
|
|
@@ -1923,5 +1950,5 @@ function getModularInstance(service) {
|
|
|
1923
1950
|
}
|
|
1924
1951
|
}
|
|
1925
1952
|
|
|
1926
|
-
export { CONSTANTS, 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, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, issuedAtTime, jsonEval, map, ordinal, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, uuidv4, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
|
|
1953
|
+
export { CONSTANTS, 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, 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 };
|
|
1927
1954
|
//# sourceMappingURL=index.esm2017.js.map
|