@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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Rejects if the given promise doesn't resolve in timeInMS milliseconds.
19
+ * @internal
20
+ */
21
+ export declare function promiseWithTimeout<T>(promise: Promise<T>, timeInMS?: number): Promise<T>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing, software
12
+ * distributed under the License is distributed on an "AS IS" BASIS,
13
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ * See the License for the specific language governing permissions and
15
+ * limitations under the License.
16
+ */
17
+ /**
18
+ * Rejects if the given promise doesn't resolve in timeInMS milliseconds.
19
+ * @internal
20
+ */
21
+ export declare function promiseWithTimeout<T>(promise: Promise<T>, timeInMS?: number): Promise<T>;
@@ -642,6 +642,8 @@ export declare function ordinal(i: number): string;
642
642
 
643
643
  export declare type PartialObserver<T> = Partial<Observer<T>>;
644
644
 
645
+ /* Excluded from this release type: promiseWithTimeout */
646
+
645
647
  /**
646
648
  * @license
647
649
  * Copyright 2017 Google LLC
package/dist/util.d.ts CHANGED
@@ -642,6 +642,28 @@ export declare function ordinal(i: number): string;
642
642
 
643
643
  export declare type PartialObserver<T> = Partial<Observer<T>>;
644
644
 
645
+ /**
646
+ * @license
647
+ * Copyright 2022 Google LLC
648
+ *
649
+ * Licensed under the Apache License, Version 2.0 (the "License");
650
+ * you may not use this file except in compliance with the License.
651
+ * You may obtain a copy of the License at
652
+ *
653
+ * http://www.apache.org/licenses/LICENSE-2.0
654
+ *
655
+ * Unless required by applicable law or agreed to in writing, software
656
+ * distributed under the License is distributed on an "AS IS" BASIS,
657
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
658
+ * See the License for the specific language governing permissions and
659
+ * limitations under the License.
660
+ */
661
+ /**
662
+ * Rejects if the given promise doesn't resolve in timeInMS milliseconds.
663
+ * @internal
664
+ */
665
+ export declare function promiseWithTimeout<T>(promise: Promise<T>, timeInMS?: number): Promise<T>;
666
+
645
667
  /**
646
668
  * @license
647
669
  * Copyright 2017 Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.6.2",
3
+ "version": "1.6.3-20220707195244",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",