@firebase/rules-unit-testing 5.0.0-canary.b7e18d0ff → 5.0.0-canary.ba0bc39bb
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/esm/util/index.d.ts
CHANGED
|
@@ -44,11 +44,4 @@ export type EmulatorMockTokenOptions = ({
|
|
|
44
44
|
sub: string;
|
|
45
45
|
}) & Partial<FirebaseIdToken>;
|
|
46
46
|
export declare function createMockUserToken(token: EmulatorMockTokenOptions, projectId?: string): string;
|
|
47
|
-
/**
|
|
48
|
-
* Updates Emulator Banner. Primarily used for Firebase Studio
|
|
49
|
-
* @param name
|
|
50
|
-
* @param isRunningEmulator
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
|
|
54
47
|
export {};
|
|
@@ -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>;
|
package/dist/util/index.d.ts
CHANGED
|
@@ -44,11 +44,4 @@ export type EmulatorMockTokenOptions = ({
|
|
|
44
44
|
sub: string;
|
|
45
45
|
}) & Partial<FirebaseIdToken>;
|
|
46
46
|
export declare function createMockUserToken(token: EmulatorMockTokenOptions, projectId?: string): string;
|
|
47
|
-
/**
|
|
48
|
-
* Updates Emulator Banner. Primarily used for Firebase Studio
|
|
49
|
-
* @param name
|
|
50
|
-
* @param isRunningEmulator
|
|
51
|
-
* @public
|
|
52
|
-
*/
|
|
53
|
-
export declare function updateEmulatorBanner(name: string, isRunningEmulator: boolean): void;
|
|
54
47
|
export {};
|
|
@@ -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>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/rules-unit-testing",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.ba0bc39bb",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"rollup-plugin-typescript2": "0.36.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"firebase": "12.
|
|
46
|
+
"firebase": "12.11.0-canary.ba0bc39bb"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"directory": "packages/rules-unit-testing",
|