@firebase/app-check 0.6.5 → 0.7.0-canary.4a86f4eb0

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.
@@ -19,6 +19,7 @@ import { PartialObserver } from '@firebase/util';
19
19
  import { AppCheckToken, AppCheckTokenListener } from './public-types';
20
20
  export interface FirebaseAppCheckInternal {
21
21
  getToken(forceRefresh?: boolean): Promise<AppCheckTokenResult>;
22
+ getLimitedUseToken(): Promise<AppCheckTokenResult>;
22
23
  addTokenListener(listener: AppCheckTokenListener): void;
23
24
  removeTokenListener(listener: AppCheckTokenListener): void;
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/app-check",
3
- "version": "0.6.5",
3
+ "version": "0.7.0-canary.4a86f4eb0",
4
4
  "description": "The App Check component of the Firebase JS SDK",
5
5
  "author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
6
6
  "main": "dist/index.cjs.js",
@@ -35,17 +35,17 @@
35
35
  "typings:public": "node ../../scripts/build/use_typings.js ./dist/app-check-public.d.ts"
36
36
  },
37
37
  "peerDependencies": {
38
- "@firebase/app": "0.x"
38
+ "@firebase/app": "0.9.10-canary.4a86f4eb0"
39
39
  },
40
40
  "dependencies": {
41
- "@firebase/util": "1.9.3",
42
- "@firebase/component": "0.6.4",
43
- "@firebase/logger": "0.4.0",
41
+ "@firebase/util": "1.9.3-canary.4a86f4eb0",
42
+ "@firebase/component": "0.6.4-canary.4a86f4eb0",
43
+ "@firebase/logger": "0.4.0-canary.4a86f4eb0",
44
44
  "tslib": "^2.1.0"
45
45
  },
46
46
  "license": "Apache-2.0",
47
47
  "devDependencies": {
48
- "@firebase/app": "0.9.8",
48
+ "@firebase/app": "0.9.10-canary.4a86f4eb0",
49
49
  "rollup": "2.79.1",
50
50
  "@rollup/plugin-commonjs": "21.1.0",
51
51
  "@rollup/plugin-json": "4.1.0",
package/CHANGELOG.md DELETED
@@ -1,334 +0,0 @@
1
- # @firebase/app-check
2
-
3
- ## 0.6.5
4
-
5
- ### Patch Changes
6
-
7
- - [`8c44d5863`](https://github.com/firebase/firebase-js-sdk/commit/8c44d586355ffd2d58b6841730ebdac89229954c) [#7203](https://github.com/firebase/firebase-js-sdk/pull/7203) - Catch all ReCAPTCHA errors and, if caught, prevent App Check from making a request to the exchange endpoint.
8
-
9
- ## 0.6.4
10
-
11
- ### Patch Changes
12
-
13
- - Updated dependencies [[`c59f537b1`](https://github.com/firebase/firebase-js-sdk/commit/c59f537b1262b5d7997291b8c1e9324d378effb6)]:
14
- - @firebase/util@1.9.3
15
- - @firebase/component@0.6.4
16
-
17
- ## 0.6.3
18
-
19
- ### Patch Changes
20
-
21
- - Updated dependencies [[`d071bd1ac`](https://github.com/firebase/firebase-js-sdk/commit/d071bd1acaa0583b4dd3454387fc58eafddb5c30)]:
22
- - @firebase/util@1.9.2
23
- - @firebase/component@0.6.3
24
-
25
- ## 0.6.2
26
-
27
- ### Patch Changes
28
-
29
- - Updated dependencies [[`0bab0b7a7`](https://github.com/firebase/firebase-js-sdk/commit/0bab0b7a786d1563bf665904c7097d1fe06efce5)]:
30
- - @firebase/util@1.9.1
31
- - @firebase/component@0.6.2
32
-
33
- ## 0.6.1
34
-
35
- ### Patch Changes
36
-
37
- - Updated dependencies [[`d4114a4f7`](https://github.com/firebase/firebase-js-sdk/commit/d4114a4f7da3f469c0c900416ac8beee58885ec3), [`06dc1364d`](https://github.com/firebase/firebase-js-sdk/commit/06dc1364d7560f4c563e1ccc89af9cad4cd91df8)]:
38
- - @firebase/util@1.9.0
39
- - @firebase/component@0.6.1
40
-
41
- ## 0.6.0
42
-
43
- ### Minor Changes
44
-
45
- - [`1625f7a95`](https://github.com/firebase/firebase-js-sdk/commit/1625f7a95cc3ffb666845db0a8044329be74b5be) [#6799](https://github.com/firebase/firebase-js-sdk/pull/6799) - Update TypeScript version to 4.7.4.
46
-
47
- ### Patch Changes
48
-
49
- - Updated dependencies [[`c20633ed3`](https://github.com/firebase/firebase-js-sdk/commit/c20633ed35056cbadc9d65d9ceddf4e28d1ea666), [`1625f7a95`](https://github.com/firebase/firebase-js-sdk/commit/1625f7a95cc3ffb666845db0a8044329be74b5be)]:
50
- - @firebase/util@1.8.0
51
- - @firebase/component@0.6.0
52
- - @firebase/logger@0.4.0
53
-
54
- ## 0.5.17
55
-
56
- ### Patch Changes
57
-
58
- - [`457fc2eeb`](https://github.com/firebase/firebase-js-sdk/commit/457fc2eeb6922fd4eaa5e305cd10ee05e86293be) [#6740](https://github.com/firebase/firebase-js-sdk/pull/6740) (fixes [#6734](https://github.com/firebase/firebase-js-sdk/issues/6734)) - Clear App Check exchange promise correctly after request succeeds.
59
-
60
- ## 0.5.16
61
-
62
- ### Patch Changes
63
-
64
- - [`4af28c1a4`](https://github.com/firebase/firebase-js-sdk/commit/4af28c1a42bd25ce2353f694ca1724c6101cbce5) [#6682](https://github.com/firebase/firebase-js-sdk/pull/6682) - Upgrade TypeScript to 4.7.4.
65
-
66
- - Updated dependencies [[`4af28c1a4`](https://github.com/firebase/firebase-js-sdk/commit/4af28c1a42bd25ce2353f694ca1724c6101cbce5)]:
67
- - @firebase/component@0.5.21
68
- - @firebase/logger@0.3.4
69
- - @firebase/util@1.7.3
70
-
71
- ## 0.5.15
72
-
73
- ### Patch Changes
74
-
75
- - Updated dependencies [[`807f06aa2`](https://github.com/firebase/firebase-js-sdk/commit/807f06aa26438a91aaea08fd38efb6c706bb8a5d)]:
76
- - @firebase/util@1.7.2
77
- - @firebase/component@0.5.20
78
-
79
- ## 0.5.14
80
-
81
- ### Patch Changes
82
-
83
- - Updated dependencies [[`171b78b76`](https://github.com/firebase/firebase-js-sdk/commit/171b78b762826a640d267dd4dd172ad9459c4561), [`29d034072`](https://github.com/firebase/firebase-js-sdk/commit/29d034072c20af394ce384e42aa10a37d5dfcb18)]:
84
- - @firebase/util@1.7.1
85
- - @firebase/component@0.5.19
86
-
87
- ## 0.5.13
88
-
89
- ### Patch Changes
90
-
91
- - [`b3951c6e4`](https://github.com/firebase/firebase-js-sdk/commit/b3951c6e42559d8aa82711b71440f4adcdae3b56) [#6617](https://github.com/firebase/firebase-js-sdk/pull/6617) (fixes [#6373](https://github.com/firebase/firebase-js-sdk/issues/6373)) - Fix timer issues in App Check that caused the token to fail to refresh after the token expired, or caused rapid repeated requests attempting to do so.
92
-
93
- - Updated dependencies [[`fdd4ab464`](https://github.com/firebase/firebase-js-sdk/commit/fdd4ab464b59a107bdcc195df3f01e32efd89ed4)]:
94
- - @firebase/util@1.7.0
95
- - @firebase/component@0.5.18
96
-
97
- ## 0.5.12
98
-
99
- ### Patch Changes
100
-
101
- - [`f36d627af`](https://github.com/firebase/firebase-js-sdk/commit/f36d627af6e1f5ed98e21f9be29f59d2c8c503cb) [#6439](https://github.com/firebase/firebase-js-sdk/pull/6439) - Fix logic to trigger app check throttling
102
-
103
- ## 0.5.11
104
-
105
- ### Patch Changes
106
-
107
- - Updated dependencies [[`b12af44a5`](https://github.com/firebase/firebase-js-sdk/commit/b12af44a5c7500e1192d6cc1a4afc4d77efadbaf)]:
108
- - @firebase/util@1.6.3
109
- - @firebase/component@0.5.17
110
-
111
- ## 0.5.10
112
-
113
- ### Patch Changes
114
-
115
- - [`efe2000fc`](https://github.com/firebase/firebase-js-sdk/commit/efe2000fc499e2c85c4e5e0fef6741ff3bad2eb0) [#6363](https://github.com/firebase/firebase-js-sdk/pull/6363) - Extract uuid function into @firebase/util
116
-
117
- - Updated dependencies [[`efe2000fc`](https://github.com/firebase/firebase-js-sdk/commit/efe2000fc499e2c85c4e5e0fef6741ff3bad2eb0)]:
118
- - @firebase/util@1.6.2
119
- - @firebase/component@0.5.16
120
-
121
- ## 0.5.9
122
-
123
- ### Patch Changes
124
-
125
- - [`2cd1cc76f`](https://github.com/firebase/firebase-js-sdk/commit/2cd1cc76f2a308135cd60f424fe09084a34b5cb5) [#6307](https://github.com/firebase/firebase-js-sdk/pull/6307) (fixes [#6300](https://github.com/firebase/firebase-js-sdk/issues/6300)) - fix: add type declarations to exports field
126
-
127
- - Updated dependencies [[`2cd1cc76f`](https://github.com/firebase/firebase-js-sdk/commit/2cd1cc76f2a308135cd60f424fe09084a34b5cb5)]:
128
- - @firebase/component@0.5.15
129
- - @firebase/logger@0.3.3
130
- - @firebase/util@1.6.1
131
-
132
- ## 0.5.8
133
-
134
- ### Patch Changes
135
-
136
- - Updated dependencies [[`9c5c9c36d`](https://github.com/firebase/firebase-js-sdk/commit/9c5c9c36da80b98b73cfd60ef2e2965087e9f801)]:
137
- - @firebase/util@1.6.0
138
- - @firebase/component@0.5.14
139
-
140
- ## 0.5.7
141
-
142
- ### Patch Changes
143
-
144
- - [`38da5d9be`](https://github.com/firebase/firebase-js-sdk/commit/38da5d9be4a001038548947a85c9b612e5275e32) [#6136](https://github.com/firebase/firebase-js-sdk/pull/6136) - Update App Check to use v1 endpoint instead of v1beta endpoint for both reCAPTCHA v3 and reCAPTCHA Enterprise
145
-
146
- ## 0.5.6
147
-
148
- ### Patch Changes
149
-
150
- - Updated dependencies [[`e9e5f6b3c`](https://github.com/firebase/firebase-js-sdk/commit/e9e5f6b3ca9d61323b22f87986d9959f5297ec59)]:
151
- - @firebase/util@1.5.2
152
- - @firebase/component@0.5.13
153
-
154
- ## 0.5.5
155
-
156
- ### Patch Changes
157
-
158
- - Updated dependencies [[`3198d58dc`](https://github.com/firebase/firebase-js-sdk/commit/3198d58dcedbf7583914dbcc76984f6f7df8d2ef)]:
159
- - @firebase/util@1.5.1
160
- - @firebase/component@0.5.12
161
-
162
- ## 0.5.4
163
-
164
- ### Patch Changes
165
-
166
- - [`a7f4a2eb6`](https://github.com/firebase/firebase-js-sdk/commit/a7f4a2eb6ed08596dffe75825bca1a2034bfcd2e) [#5967](https://github.com/firebase/firebase-js-sdk/pull/5967) - Update platform logging to use new endpoint.
167
-
168
- - Updated dependencies [[`2d672cead`](https://github.com/firebase/firebase-js-sdk/commit/2d672cead167187cb714cd89b638c0884ba58f03)]:
169
- - @firebase/util@1.5.0
170
- - @firebase/component@0.5.11
171
-
172
- ## 0.5.3
173
-
174
- ### Patch Changes
175
-
176
- - Updated dependencies [[`3b481f572`](https://github.com/firebase/firebase-js-sdk/commit/3b481f572456e1eab3435bfc25717770d95a8c49)]:
177
- - @firebase/util@1.4.3
178
- - @firebase/component@0.5.10
179
-
180
- ## 0.5.2
181
-
182
- ### Patch Changes
183
-
184
- - [`6f0049e66`](https://github.com/firebase/firebase-js-sdk/commit/6f0049e66064809ae990a2d9461e28b2d6d08d19) [#5676](https://github.com/firebase/firebase-js-sdk/pull/5676) - Block exchange requests for certain periods of time after certain error codes to prevent overwhelming the endpoint. Start token listener when App Check is initialized to avoid extra wait time on first getToken() call.
185
-
186
- ## 0.5.1
187
-
188
- ### Patch Changes
189
-
190
- - [`3281315fa`](https://github.com/firebase/firebase-js-sdk/commit/3281315fae9c6f535f9d5052ee17d60861ea569a) [#5708](https://github.com/firebase/firebase-js-sdk/pull/5708) (fixes [#1487](https://github.com/firebase/firebase-js-sdk/issues/1487)) - Update build scripts to work with the exports field
191
-
192
- - Updated dependencies [[`3281315fa`](https://github.com/firebase/firebase-js-sdk/commit/3281315fae9c6f535f9d5052ee17d60861ea569a)]:
193
- - @firebase/component@0.5.9
194
- - @firebase/logger@0.3.2
195
- - @firebase/util@1.4.2
196
-
197
- ## 0.5.0
198
-
199
- ### Minor Changes
200
-
201
- - [`61604979c`](https://github.com/firebase/firebase-js-sdk/commit/61604979cb35647610ea385a6ba0ca67cb03f5d1) [#5595](https://github.com/firebase/firebase-js-sdk/pull/5595) - Add ReCAPTCHA Enterprise as an attestation option for App Check.
202
-
203
- ### Patch Changes
204
-
205
- - [`2322b6023`](https://github.com/firebase/firebase-js-sdk/commit/2322b6023c628cd9f4f4172767c17d215dd91684) [#5693](https://github.com/firebase/firebase-js-sdk/pull/5693) - Add exports field to all packages
206
-
207
- - Updated dependencies [[`2322b6023`](https://github.com/firebase/firebase-js-sdk/commit/2322b6023c628cd9f4f4172767c17d215dd91684)]:
208
- - @firebase/component@0.5.8
209
- - @firebase/logger@0.3.1
210
- - @firebase/util@1.4.1
211
-
212
- ## 0.4.2
213
-
214
- ### Patch Changes
215
-
216
- - [`a4e770e58`](https://github.com/firebase/firebase-js-sdk/commit/a4e770e58d03d75a63f1ed7845589b863573b76e) [#5576](https://github.com/firebase/firebase-js-sdk/pull/5576) - Fix incorrect App Check typings that caused users to see TypeScript compile errors.
217
-
218
- ## 0.4.1
219
-
220
- ### Patch Changes
221
-
222
- - [`b835b4cba`](https://github.com/firebase/firebase-js-sdk/commit/b835b4cbabc4b7b180ae38b908c49205ce31a422) [#5506](https://github.com/firebase/firebase-js-sdk/pull/5506) - AppCheck could encounter runtime errors when initialized in Node
223
-
224
- * [`e62d02e52`](https://github.com/firebase/firebase-js-sdk/commit/e62d02e52e50fe53b3db90e9641df25a42742b15) [#5540](https://github.com/firebase/firebase-js-sdk/pull/5540) - Check for and initialize App Check debug mode during `initializeAppCheck()` instead of on import.
225
-
226
- * Updated dependencies [[`a99943fe3`](https://github.com/firebase/firebase-js-sdk/commit/a99943fe3bd5279761aa29d138ec91272b06df39), [`b835b4cba`](https://github.com/firebase/firebase-js-sdk/commit/b835b4cbabc4b7b180ae38b908c49205ce31a422)]:
227
- - @firebase/logger@0.3.0
228
- - @firebase/util@1.4.0
229
- - @firebase/component@0.5.7
230
-
231
- ## 0.4.0
232
-
233
- ### Minor Changes
234
-
235
- - [`cdada6c68`](https://github.com/firebase/firebase-js-sdk/commit/cdada6c68f9740d13dd6674bcb658e28e68253b6) [#5345](https://github.com/firebase/firebase-js-sdk/pull/5345) (fixes [#5015](https://github.com/firebase/firebase-js-sdk/issues/5015)) - Release modularized SDKs
236
-
237
- ## 0.3.2
238
-
239
- ### Patch Changes
240
-
241
- - Updated dependencies [[`bb6b5abff`](https://github.com/firebase/firebase-js-sdk/commit/bb6b5abff6f89ce9ec1bd66ff4e795a059a98eec), [`3c6a11c8d`](https://github.com/firebase/firebase-js-sdk/commit/3c6a11c8d0b35afddb50e9c3e0c4d2e30f642131)]:
242
- - @firebase/component@0.5.6
243
- - @firebase/util@1.3.0
244
-
245
- ## 0.3.1
246
-
247
- ### Patch Changes
248
-
249
- - [`f1027e3c2`](https://github.com/firebase/firebase-js-sdk/commit/f1027e3c24cab52046766a898c6702860f5ad3f6) [#5261](https://github.com/firebase/firebase-js-sdk/pull/5261) (fixes [#5258](https://github.com/firebase/firebase-js-sdk/issues/5258)) - Fixed argument typings for `activate()`.
250
-
251
- - Updated dependencies [[`f1027e3c2`](https://github.com/firebase/firebase-js-sdk/commit/f1027e3c24cab52046766a898c6702860f5ad3f6)]:
252
- - @firebase/app-check-types@0.3.1
253
-
254
- ## 0.3.0
255
-
256
- ### Minor Changes
257
-
258
- - [`8599d9141`](https://github.com/firebase/firebase-js-sdk/commit/8599d91416ae8ac5202742f11cee00666d3360ec) [#4902](https://github.com/firebase/firebase-js-sdk/pull/4902) - Add `RecaptchaV3Provider` and `CustomProvider` classes that can be supplied to `firebase.appCheck().activate()`.
259
-
260
- ### Patch Changes
261
-
262
- - Updated dependencies [[`8599d9141`](https://github.com/firebase/firebase-js-sdk/commit/8599d91416ae8ac5202742f11cee00666d3360ec)]:
263
- - @firebase/app-check-types@0.3.0
264
-
265
- ## 0.2.1
266
-
267
- ### Patch Changes
268
-
269
- - Updated dependencies [[`a3cbe719b`](https://github.com/firebase/firebase-js-sdk/commit/a3cbe719b1bd733a5c4c15ee0d0e6388d512054c)]:
270
- - @firebase/util@1.2.0
271
- - @firebase/component@0.5.5
272
-
273
- ## 0.2.0
274
-
275
- ### Minor Changes
276
-
277
- - [`870dd5e35`](https://github.com/firebase/firebase-js-sdk/commit/870dd5e3594f5b588bdc2801c60c6d984d1d08cc) [#5033](https://github.com/firebase/firebase-js-sdk/pull/5033) - Added `getToken()` and `onTokenChanged` methods to App Check.
278
-
279
- ### Patch Changes
280
-
281
- - [`5d007b8fb`](https://github.com/firebase/firebase-js-sdk/commit/5d007b8fb64ac26c2f82704398965e9f3deda58a) [#5084](https://github.com/firebase/firebase-js-sdk/pull/5084) - Fixed so token listeners added through public API call the error handler while internal token listeners return the error as a token field.
282
-
283
- * [`5d31e2192`](https://github.com/firebase/firebase-js-sdk/commit/5d31e2192d0ea68a768bc7826ad5aa830c2bc36c) [#5055](https://github.com/firebase/firebase-js-sdk/pull/5055) (fixes [#5052](https://github.com/firebase/firebase-js-sdk/issues/5052)) - Fix an error causing App Check to log `HTTP status 429` errors in debug mode.
284
-
285
- * Updated dependencies [[`870dd5e35`](https://github.com/firebase/firebase-js-sdk/commit/870dd5e3594f5b588bdc2801c60c6d984d1d08cc), [`5d007b8fb`](https://github.com/firebase/firebase-js-sdk/commit/5d007b8fb64ac26c2f82704398965e9f3deda58a), [`56a6a9d4a`](https://github.com/firebase/firebase-js-sdk/commit/56a6a9d4af2766154584a0f66d3c4d8024d74ba5)]:
286
- - @firebase/app-check-types@0.2.0
287
- - @firebase/component@0.5.4
288
-
289
- ## 0.1.4
290
-
291
- ### Patch Changes
292
-
293
- - Updated dependencies [[`725ab4684`](https://github.com/firebase/firebase-js-sdk/commit/725ab4684ef0999a12f71e704c204a00fb030e5d)]:
294
- - @firebase/component@0.5.3
295
-
296
- ## 0.1.3
297
-
298
- ### Patch Changes
299
-
300
- - Updated dependencies [[`4c4b6aed9`](https://github.com/firebase/firebase-js-sdk/commit/4c4b6aed9757c9a7e75fb698a15e53274f93880b)]:
301
- - @firebase/component@0.5.2
302
-
303
- ## 0.1.2
304
-
305
- ### Patch Changes
306
-
307
- - Updated dependencies [[`5fbc5fb01`](https://github.com/firebase/firebase-js-sdk/commit/5fbc5fb0140d7da980fd7ebbfbae810f8c64ae19)]:
308
- - @firebase/component@0.5.1
309
-
310
- ## 0.1.1
311
-
312
- ### Patch Changes
313
-
314
- - [`60e834739`](https://github.com/firebase/firebase-js-sdk/commit/60e83473940e60f8390b1b0f97cf45a1733f66f0) [#4897](https://github.com/firebase/firebase-js-sdk/pull/4897) - Make App Check initialization explicit, to prevent unexpected errors for users who do not intend to use App Check.
315
-
316
- ## 0.1.0
317
-
318
- ### Minor Changes
319
-
320
- - [`81c131abe`](https://github.com/firebase/firebase-js-sdk/commit/81c131abea7001c5933156ff6b0f3925f16ff052) [#4860](https://github.com/firebase/firebase-js-sdk/pull/4860) - Release the Firebase App Check package.
321
-
322
- ### Patch Changes
323
-
324
- - Updated dependencies [[`81c131abe`](https://github.com/firebase/firebase-js-sdk/commit/81c131abea7001c5933156ff6b0f3925f16ff052)]:
325
- - @firebase/app-check-interop-types@0.1.0
326
- - @firebase/app-check-types@0.1.0
327
-
328
- ## 0.1.1
329
-
330
- ### Patch Changes
331
-
332
- - Updated dependencies [[`c34ac7a92`](https://github.com/firebase/firebase-js-sdk/commit/c34ac7a92a616915f38d192654db7770d81747ae), [`ac4ad08a2`](https://github.com/firebase/firebase-js-sdk/commit/ac4ad08a284397ec966e991dd388bb1fba857467)]:
333
- - @firebase/component@0.5.0
334
- - @firebase/util@1.1.0
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "0.1.2"
9
- }
10
- ]
11
- }