@firebase/util 1.9.7-20240702143745 → 1.9.7-canary.025f2a103
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +5 -5
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.esm5.js +4 -4
- package/dist/index.esm5.js.map +1 -1
- package/dist/index.node.cjs.js +4 -4
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +5 -5
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/dist/node-esm/src/deferred.d.ts +1 -1
- package/dist/node-esm/src/errors.d.ts +1 -1
- package/dist/node-esm/src/json.d.ts +1 -1
- package/dist/src/deferred.d.ts +1 -1
- package/dist/src/errors.d.ts +1 -1
- package/dist/src/json.d.ts +1 -1
- package/dist/util-public.d.ts +3 -3
- package/dist/util.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -638,7 +638,7 @@ class Deferred {
|
|
|
638
638
|
});
|
|
639
639
|
}
|
|
640
640
|
/**
|
|
641
|
-
* Our API internals are not
|
|
641
|
+
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
|
|
642
642
|
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
|
|
643
643
|
* and returns a node-style callback which will resolve or reject the Deferred's promise.
|
|
644
644
|
*/
|
|
@@ -915,7 +915,7 @@ function areCookiesEnabled() {
|
|
|
915
915
|
*
|
|
916
916
|
* Usage:
|
|
917
917
|
*
|
|
918
|
-
* //
|
|
918
|
+
* // TypeScript string literals for type-safe codes
|
|
919
919
|
* type Err =
|
|
920
920
|
* 'unknown' |
|
|
921
921
|
* 'object-not-found'
|
|
@@ -1026,7 +1026,7 @@ function jsonEval(str) {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
/**
|
|
1028
1028
|
* Returns JSON representing a javascript object.
|
|
1029
|
-
* @param {*} data
|
|
1029
|
+
* @param {*} data JavaScript object to be stringified.
|
|
1030
1030
|
* @return {string} The JSON contents of the object.
|
|
1031
1031
|
*/
|
|
1032
1032
|
function stringify(data) {
|
|
@@ -1629,7 +1629,7 @@ class ObserverProxy {
|
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Subscribe function that can be used to add an Observer to the fan-out list.
|
|
1631
1631
|
*
|
|
1632
|
-
* - We require that no event is sent to a subscriber
|
|
1632
|
+
* - We require that no event is sent to a subscriber synchronously to their
|
|
1633
1633
|
* call to subscribe().
|
|
1634
1634
|
*/
|
|
1635
1635
|
subscribe(nextOrObserver, error, complete) {
|
|
@@ -1890,7 +1890,7 @@ function validateContextObject(fnName, argumentName, context, optional) {
|
|
|
1890
1890
|
// so it's been modified.
|
|
1891
1891
|
// Note that not all Unicode characters appear as single characters in JavaScript strings.
|
|
1892
1892
|
// fromCharCode returns the UTF-16 encoding of a character - so some Unicode characters
|
|
1893
|
-
// use 2 characters in
|
|
1893
|
+
// use 2 characters in JavaScript. All 4-byte UTF-8 characters begin with a first
|
|
1894
1894
|
// character in the range 0xD800 - 0xDBFF (the first character of a so-called surrogate
|
|
1895
1895
|
// pair).
|
|
1896
1896
|
// See http://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3
|