@firebase/util 1.13.0 → 1.14.0

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,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 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
+ * @public
19
+ * Generates a SHA-256 hash for the given input string.
20
+ *
21
+ * @param input The string to hash.
22
+ * @returns A promise that resolves to the SHA-256 hash as a hex string.
23
+ */
24
+ export declare function generateSHA256Hash(input: string): Promise<string>;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 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
+ * @public
19
+ * Generates a SHA-256 hash for the given input string.
20
+ *
21
+ * @param input The string to hash.
22
+ * @returns A promise that resolves to the SHA-256 hash as a hex string.
23
+ */
24
+ export declare function generateSHA256Hash(input: string): Promise<string>;
@@ -480,6 +480,31 @@ declare interface FirebaseIdToken {
480
480
  */
481
481
  export declare type FirebaseSignInProvider = 'custom' | 'email' | 'password' | 'phone' | 'anonymous' | 'google.com' | 'facebook.com' | 'github.com' | 'twitter.com' | 'microsoft.com' | 'apple.com';
482
482
 
483
+ /**
484
+ * @license
485
+ * Copyright 2025 Google LLC
486
+ *
487
+ * Licensed under the Apache License, Version 2.0 (the "License");
488
+ * you may not use this file except in compliance with the License.
489
+ * You may obtain a copy of the License at
490
+ *
491
+ * http://www.apache.org/licenses/LICENSE-2.0
492
+ *
493
+ * Unless required by applicable law or agreed to in writing, software
494
+ * distributed under the License is distributed on an "AS IS" BASIS,
495
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
496
+ * See the License for the specific language governing permissions and
497
+ * limitations under the License.
498
+ */
499
+ /**
500
+ * @public
501
+ * Generates a SHA-256 hash for the given input string.
502
+ *
503
+ * @param input The string to hash.
504
+ * @returns A promise that resolves to the SHA-256 hash as a hex string.
505
+ */
506
+ export declare function generateSHA256Hash(input: string): Promise<string>;
507
+
483
508
  /**
484
509
  * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.
485
510
  * @public
package/dist/util.d.ts CHANGED
@@ -480,6 +480,31 @@ declare interface FirebaseIdToken {
480
480
  */
481
481
  export declare type FirebaseSignInProvider = 'custom' | 'email' | 'password' | 'phone' | 'anonymous' | 'google.com' | 'facebook.com' | 'github.com' | 'twitter.com' | 'microsoft.com' | 'apple.com';
482
482
 
483
+ /**
484
+ * @license
485
+ * Copyright 2025 Google LLC
486
+ *
487
+ * Licensed under the Apache License, Version 2.0 (the "License");
488
+ * you may not use this file except in compliance with the License.
489
+ * You may obtain a copy of the License at
490
+ *
491
+ * http://www.apache.org/licenses/LICENSE-2.0
492
+ *
493
+ * Unless required by applicable law or agreed to in writing, software
494
+ * distributed under the License is distributed on an "AS IS" BASIS,
495
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
496
+ * See the License for the specific language governing permissions and
497
+ * limitations under the License.
498
+ */
499
+ /**
500
+ * @public
501
+ * Generates a SHA-256 hash for the given input string.
502
+ *
503
+ * @param input The string to hash.
504
+ * @returns A promise that resolves to the SHA-256 hash as a hex string.
505
+ */
506
+ export declare function generateSHA256Hash(input: string): Promise<string>;
507
+
483
508
  /**
484
509
  * Returns Firebase app config stored in the __FIREBASE_DEFAULTS__ object.
485
510
  * @public
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/util",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.node.cjs.js",