@depup/firebase__app-check 0.11.1-depup.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.
- package/README.md +31 -0
- package/changes.json +10 -0
- package/dist/app-check-public.d.ts +248 -0
- package/dist/app-check.d.ts +290 -0
- package/dist/esm/index.esm.js +1694 -0
- package/dist/esm/index.esm.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/src/api.d.ts +105 -0
- package/dist/esm/src/api.test.d.ts +17 -0
- package/dist/esm/src/client.d.ts +30 -0
- package/dist/esm/src/client.test.d.ts +17 -0
- package/dist/esm/src/constants.d.ts +40 -0
- package/dist/esm/src/debug.d.ts +22 -0
- package/dist/esm/src/debug.test.d.ts +17 -0
- package/dist/esm/src/errors.d.ts +66 -0
- package/dist/esm/src/factory.d.ts +31 -0
- package/dist/esm/src/index.d.ts +14 -0
- package/dist/esm/src/indexeddb.d.ts +22 -0
- package/dist/esm/src/internal-api.d.ts +44 -0
- package/dist/esm/src/internal-api.test.d.ts +17 -0
- package/dist/esm/src/logger.d.ts +18 -0
- package/dist/esm/src/proactive-refresh.d.ts +35 -0
- package/dist/esm/src/proactive-refresh.test.d.ts +17 -0
- package/dist/esm/src/providers.d.ts +108 -0
- package/dist/esm/src/providers.test.d.ts +17 -0
- package/dist/esm/src/public-types.d.ts +85 -0
- package/dist/esm/src/recaptcha.d.ts +43 -0
- package/dist/esm/src/recaptcha.test.d.ts +17 -0
- package/dist/esm/src/state.d.ts +54 -0
- package/dist/esm/src/storage.d.ts +27 -0
- package/dist/esm/src/storage.test.d.ts +17 -0
- package/dist/esm/src/types.d.ts +66 -0
- package/dist/esm/src/util.d.ts +21 -0
- package/dist/esm/test/setup.d.ts +17 -0
- package/dist/esm/test/util.d.ts +34 -0
- package/dist/index.cjs.js +1705 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/src/api.d.ts +105 -0
- package/dist/src/api.test.d.ts +17 -0
- package/dist/src/client.d.ts +30 -0
- package/dist/src/client.test.d.ts +17 -0
- package/dist/src/constants.d.ts +40 -0
- package/dist/src/debug.d.ts +22 -0
- package/dist/src/debug.test.d.ts +17 -0
- package/dist/src/errors.d.ts +66 -0
- package/dist/src/factory.d.ts +31 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/indexeddb.d.ts +22 -0
- package/dist/src/internal-api.d.ts +44 -0
- package/dist/src/internal-api.test.d.ts +17 -0
- package/dist/src/logger.d.ts +18 -0
- package/dist/src/proactive-refresh.d.ts +35 -0
- package/dist/src/proactive-refresh.test.d.ts +17 -0
- package/dist/src/providers.d.ts +108 -0
- package/dist/src/providers.test.d.ts +17 -0
- package/dist/src/public-types.d.ts +85 -0
- package/dist/src/recaptcha.d.ts +43 -0
- package/dist/src/recaptcha.test.d.ts +17 -0
- package/dist/src/state.d.ts +54 -0
- package/dist/src/storage.d.ts +27 -0
- package/dist/src/storage.test.d.ts +17 -0
- package/dist/src/tsdoc-metadata.json +11 -0
- package/dist/src/types.d.ts +66 -0
- package/dist/src/util.d.ts +21 -0
- package/dist/test/setup.d.ts +17 -0
- package/dist/test/util.d.ts +34 -0
- package/package.json +94 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2020 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
|
+
import { FirebaseApp } from '@firebase/app';
|
|
18
|
+
import { GreCAPTCHA, GreCAPTCHATopLevel } from '../src/recaptcha';
|
|
19
|
+
import { Provider } from '@firebase/component';
|
|
20
|
+
import { AppCheck, CustomProvider } from '../src';
|
|
21
|
+
export declare const FAKE_SITE_KEY = "fake-site-key";
|
|
22
|
+
export declare function getFakeApp(overrides?: Record<string, any>): FirebaseApp;
|
|
23
|
+
export declare function getFakeAppCheck(app: FirebaseApp): AppCheck;
|
|
24
|
+
export declare function getFullApp(): FirebaseApp;
|
|
25
|
+
export declare function getFakeCustomTokenProvider(): CustomProvider;
|
|
26
|
+
export declare function getFakeHeartbeatServiceProvider(fakeLogString?: string): Provider<'heartbeat'>;
|
|
27
|
+
export declare function getFakeGreCAPTCHA(isTopLevel?: boolean): GreCAPTCHATopLevel | GreCAPTCHA;
|
|
28
|
+
/**
|
|
29
|
+
* Returns all script tags in DOM matching our reCAPTCHA url pattern.
|
|
30
|
+
* Tests in other files may have inserted multiple reCAPTCHA scripts, because they don't
|
|
31
|
+
* care about it.
|
|
32
|
+
*/
|
|
33
|
+
export declare function findgreCAPTCHAScriptsOnPage(): HTMLScriptElement[];
|
|
34
|
+
export declare function removegreCAPTCHAScriptsOnPage(): void;
|