diff --git a/packages-exp/app-check-compat/package.json b/packages-exp/app-check-compat/package.json index 2dc071e49e..ec91c13234 100644 --- a/packages-exp/app-check-compat/package.json +++ b/packages-exp/app-check-compat/package.json @@ -34,11 +34,11 @@ "license": "Apache-2.0", "devDependencies": { "@firebase/app-compat": "0.0.900", - "rollup": "2.33.2", + "rollup": "2.52.2", "@rollup/plugin-commonjs": "17.1.0", "@rollup/plugin-json": "4.1.0", "@rollup/plugin-node-resolve": "11.2.0", - "rollup-plugin-typescript2": "0.29.0", + "rollup-plugin-typescript2": "0.30.0", "typescript": "4.2.2" }, "repository": { diff --git a/packages-exp/app-exp/src/constants.ts b/packages-exp/app-exp/src/constants.ts index ce803cb851..f00a93f0da 100644 --- a/packages-exp/app-exp/src/constants.ts +++ b/packages-exp/app-exp/src/constants.ts @@ -19,6 +19,8 @@ import { name as appName } from '../package.json'; import { name as appCompatName } from '../../app-compat/package.json'; import { name as analyticsCompatName } from '../../../packages-exp/analytics-compat/package.json'; import { name as analyticsName } from '../../../packages-exp/analytics-exp/package.json'; +import { name as appCheckCompatName } from '../../../packages-exp/app-check-compat/package.json'; +import { name as appCheckName } from '../../../packages-exp/app-check-exp/package.json'; import { name as authName } from '../../../packages-exp/auth-exp/package.json'; import { name as authCompatName } from '../../../packages-exp/auth-compat-exp/package.json'; import { name as databaseName } from '../../../packages/database/package.json'; @@ -51,6 +53,8 @@ export const PLATFORM_LOG_STRING = { [appCompatName]: 'fire-core-compat', [analyticsName]: 'fire-analytics', [analyticsCompatName]: 'fire-analytics-compat', + [appCheckName]: 'fire-app-check', + [appCheckCompatName]: 'fire-app-check-compat', [authName]: 'fire-auth', [authCompatName]: 'fire-auth-compat', [databaseName]: 'fire-rtdb', diff --git a/packages-exp/firebase-exp/app-check/index.ts b/packages-exp/firebase-exp/app-check/index.ts new file mode 100644 index 0000000000..85c036a330 --- /dev/null +++ b/packages-exp/firebase-exp/app-check/index.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export * from '@firebase/app-check-exp'; diff --git a/packages-exp/firebase-exp/app-check/package.json b/packages-exp/firebase-exp/app-check/package.json new file mode 100644 index 0000000000..4b547cb934 --- /dev/null +++ b/packages-exp/firebase-exp/app-check/package.json @@ -0,0 +1,7 @@ +{ + "name": "firebase-exp/app-check", + "main": "dist/index.cjs.js", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/app-check/index.d.ts" +} \ No newline at end of file diff --git a/packages-exp/firebase-exp/compat/app-check/index.ts b/packages-exp/firebase-exp/compat/app-check/index.ts new file mode 100644 index 0000000000..0ae5549d03 --- /dev/null +++ b/packages-exp/firebase-exp/compat/app-check/index.ts @@ -0,0 +1,18 @@ +/** + * @license + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import '@firebase/app-check-compat'; diff --git a/packages-exp/firebase-exp/compat/app-check/package.json b/packages-exp/firebase-exp/compat/app-check/package.json new file mode 100644 index 0000000000..7bbceafa3e --- /dev/null +++ b/packages-exp/firebase-exp/compat/app-check/package.json @@ -0,0 +1,7 @@ +{ + "name": "firebase-exp/compat/app-check", + "main": "dist/index.cjs.js", + "browser": "dist/index.esm.js", + "module": "dist/index.esm.js", + "typings": "dist/compat/app-check/index.d.ts" +} diff --git a/packages-exp/firebase-exp/compat/index.cdn.ts b/packages-exp/firebase-exp/compat/index.cdn.ts index 6adfee9c20..71073b002b 100644 --- a/packages-exp/firebase-exp/compat/index.cdn.ts +++ b/packages-exp/firebase-exp/compat/index.cdn.ts @@ -30,6 +30,8 @@ import '@firebase/polyfill'; import firebase from './app'; import { name, version } from '../package.json'; +import './analytics'; +import './app-check'; import './auth'; import './database'; import './firestore'; @@ -37,7 +39,6 @@ import './functions'; import './messaging'; import './storage'; import './performance'; -import './analytics'; import './remote-config'; firebase.registerVersion(name, version, 'compat-cdn'); diff --git a/packages-exp/firebase-exp/compat/index.ts b/packages-exp/firebase-exp/compat/index.ts index ce0a0dee21..aa3fc53001 100644 --- a/packages-exp/firebase-exp/compat/index.ts +++ b/packages-exp/firebase-exp/compat/index.ts @@ -39,6 +39,8 @@ import 'firebase/'; import firebase from './app'; import { name, version } from '../package.json'; +import './analytics'; +import './app-check'; import './auth'; import './database'; import './firestore'; @@ -46,7 +48,6 @@ import './functions'; import './messaging'; import './storage'; import './performance'; -import './analytics'; import './remote-config'; firebase.registerVersion(name, version, 'compat'); diff --git a/packages-exp/firebase-exp/compat/package.json b/packages-exp/firebase-exp/compat/package.json index 6a1b46134a..0da0d1bd5d 100644 --- a/packages-exp/firebase-exp/compat/package.json +++ b/packages-exp/firebase-exp/compat/package.json @@ -8,6 +8,7 @@ "components": [ "app", "analytics", + "app-check", "auth", "functions", "messaging", diff --git a/packages-exp/firebase-exp/package.json b/packages-exp/firebase-exp/package.json index e6ff91058d..9e26d86bdf 100644 --- a/packages-exp/firebase-exp/package.json +++ b/packages-exp/firebase-exp/package.json @@ -32,6 +32,10 @@ "node": "./app/dist/index.cjs.js", "default": "./app/dist/index.esm.js" }, + "./app-check": { + "node": "./app-check/dist/index.cjs.js", + "default": "./app-check/dist/index.esm.js" + }, "./auth": { "node": "./auth/dist/index.cjs.js", "default": "./auth/dist/index.esm.js" @@ -80,6 +84,10 @@ "node": "./compat/app/dist/index.cjs.js", "default": "./compat/app/dist/index.esm.js" }, + "./compat/app-check": { + "node": "./compat/app-check/dist/index.cjs.js", + "default": "./compat/app-check/dist/index.esm.js" + }, "./compat/auth": { "node": "./compat/auth/dist/index.cjs.js", "default": "./compat/auth/dist/index.esm.js" @@ -131,6 +139,8 @@ "@firebase/analytics-compat": "0.0.900", "@firebase/app-exp": "0.0.900", "@firebase/app-compat": "0.0.900", + "@firebase/app-check-exp": "0.0.900", + "@firebase/app-check-compat": "0.0.900", "@firebase/auth-exp": "0.0.900", "@firebase/auth-compat": "0.0.900", "@firebase/database": "0.10.5", @@ -163,6 +173,7 @@ "components": [ "analytics", "app", + "app-check", "auth", "functions", "firestore", diff --git a/yarn.lock b/yarn.lock index 49e57d1f3d..347d7b22e3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7888,6 +7888,8 @@ firebase-admin@9.9.0: dependencies: "@firebase/analytics-compat" "0.0.900" "@firebase/analytics-exp" "0.0.900" + "@firebase/app-check-compat" "0.0.900" + "@firebase/app-check-exp" "0.0.900" "@firebase/app-compat" "0.0.900" "@firebase/app-exp" "0.0.900" "@firebase/auth-compat" "0.0.900"