Skip to content

Commit ecf2b57

Browse files
authored
Add App Check exp/compat to firebase-exp (#5085)
1 parent 5d007b8 commit ecf2b57

File tree

11 files changed

+74
-4
lines changed

11 files changed

+74
-4
lines changed

packages-exp/app-check-compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"license": "Apache-2.0",
3535
"devDependencies": {
3636
"@firebase/app-compat": "0.0.900",
37-
"rollup": "2.33.2",
37+
"rollup": "2.52.2",
3838
"@rollup/plugin-commonjs": "17.1.0",
3939
"@rollup/plugin-json": "4.1.0",
4040
"@rollup/plugin-node-resolve": "11.2.0",
41-
"rollup-plugin-typescript2": "0.29.0",
41+
"rollup-plugin-typescript2": "0.30.0",
4242
"typescript": "4.2.2"
4343
},
4444
"repository": {

packages-exp/app-exp/src/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import { name as appName } from '../package.json';
1919
import { name as appCompatName } from '../../app-compat/package.json';
2020
import { name as analyticsCompatName } from '../../../packages-exp/analytics-compat/package.json';
2121
import { name as analyticsName } from '../../../packages-exp/analytics-exp/package.json';
22+
import { name as appCheckCompatName } from '../../../packages-exp/app-check-compat/package.json';
23+
import { name as appCheckName } from '../../../packages-exp/app-check-exp/package.json';
2224
import { name as authName } from '../../../packages-exp/auth-exp/package.json';
2325
import { name as authCompatName } from '../../../packages-exp/auth-compat-exp/package.json';
2426
import { name as databaseName } from '../../../packages/database/package.json';
@@ -51,6 +53,8 @@ export const PLATFORM_LOG_STRING = {
5153
[appCompatName]: 'fire-core-compat',
5254
[analyticsName]: 'fire-analytics',
5355
[analyticsCompatName]: 'fire-analytics-compat',
56+
[appCheckName]: 'fire-app-check',
57+
[appCheckCompatName]: 'fire-app-check-compat',
5458
[authName]: 'fire-auth',
5559
[authCompatName]: 'fire-auth-compat',
5660
[databaseName]: 'fire-rtdb',
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2021 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+
export * from '@firebase/app-check-exp';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase-exp/app-check",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/index.esm.js",
5+
"module": "dist/index.esm.js",
6+
"typings": "dist/app-check/index.d.ts"
7+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2021 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+
import '@firebase/app-check-compat';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase-exp/compat/app-check",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/index.esm.js",
5+
"module": "dist/index.esm.js",
6+
"typings": "dist/compat/app-check/index.d.ts"
7+
}

packages-exp/firebase-exp/compat/index.cdn.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ import '@firebase/polyfill';
3030
import firebase from './app';
3131
import { name, version } from '../package.json';
3232

33+
import './analytics';
34+
import './app-check';
3335
import './auth';
3436
import './database';
3537
import './firestore';
3638
import './functions';
3739
import './messaging';
3840
import './storage';
3941
import './performance';
40-
import './analytics';
4142
import './remote-config';
4243

4344
firebase.registerVersion(name, version, 'compat-cdn');

packages-exp/firebase-exp/compat/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ import 'firebase/<PACKAGE>';
3939
import firebase from './app';
4040
import { name, version } from '../package.json';
4141

42+
import './analytics';
43+
import './app-check';
4244
import './auth';
4345
import './database';
4446
import './firestore';
4547
import './functions';
4648
import './messaging';
4749
import './storage';
4850
import './performance';
49-
import './analytics';
5051
import './remote-config';
5152

5253
firebase.registerVersion(name, version, 'compat');

packages-exp/firebase-exp/compat/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"components": [
99
"app",
1010
"analytics",
11+
"app-check",
1112
"auth",
1213
"functions",
1314
"messaging",

packages-exp/firebase-exp/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
"node": "./app/dist/index.cjs.js",
3333
"default": "./app/dist/index.esm.js"
3434
},
35+
"./app-check": {
36+
"node": "./app-check/dist/index.cjs.js",
37+
"default": "./app-check/dist/index.esm.js"
38+
},
3539
"./auth": {
3640
"node": "./auth/dist/index.cjs.js",
3741
"default": "./auth/dist/index.esm.js"
@@ -80,6 +84,10 @@
8084
"node": "./compat/app/dist/index.cjs.js",
8185
"default": "./compat/app/dist/index.esm.js"
8286
},
87+
"./compat/app-check": {
88+
"node": "./compat/app-check/dist/index.cjs.js",
89+
"default": "./compat/app-check/dist/index.esm.js"
90+
},
8391
"./compat/auth": {
8492
"node": "./compat/auth/dist/index.cjs.js",
8593
"default": "./compat/auth/dist/index.esm.js"
@@ -131,6 +139,8 @@
131139
"@firebase/analytics-compat": "0.0.900",
132140
"@firebase/app-exp": "0.0.900",
133141
"@firebase/app-compat": "0.0.900",
142+
"@firebase/app-check-exp": "0.0.900",
143+
"@firebase/app-check-compat": "0.0.900",
134144
"@firebase/auth-exp": "0.0.900",
135145
"@firebase/auth-compat": "0.0.900",
136146
"@firebase/database": "0.10.5",
@@ -163,6 +173,7 @@
163173
"components": [
164174
"analytics",
165175
"app",
176+
"app-check",
166177
"auth",
167178
"functions",
168179
"firestore",

yarn.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7888,6 +7888,8 @@ [email protected]:
78887888
dependencies:
78897889
"@firebase/analytics-compat" "0.0.900"
78907890
"@firebase/analytics-exp" "0.0.900"
7891+
"@firebase/app-check-compat" "0.0.900"
7892+
"@firebase/app-check-exp" "0.0.900"
78917893
"@firebase/app-compat" "0.0.900"
78927894
"@firebase/app-exp" "0.0.900"
78937895
"@firebase/auth-compat" "0.0.900"

0 commit comments

Comments
 (0)