@rxap/firebase 14.0.1 → 14.1.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.
@@ -1,12 +1,9 @@
1
- import { InjectionToken, NgZone } from '@angular/core';
1
+ import { NgZone } from '@angular/core';
2
2
  import { ConfigService } from '@rxap/config';
3
3
  import { Observable } from 'rxjs';
4
- import type { AppCheckTokenResult } from '@firebase/app-check';
5
4
  import { FirebaseOptions } from 'firebase/app';
5
+ import { AppCheckTokenResult } from '@angular/fire/app-check';
6
6
  import * as i0 from "@angular/core";
7
- export declare const APP_CHECK_ENABLED: InjectionToken<unknown>;
8
- export declare const APP_CHECK_SITE_KEY: InjectionToken<unknown>;
9
- export declare const APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED: InjectionToken<unknown>;
10
7
  export declare class AppCheckService {
11
8
  private readonly config;
12
9
  private readonly enabled;
@@ -1,14 +1,13 @@
1
- import { InjectionToken, Provider } from '@angular/core';
1
+ import { Provider } from '@angular/core';
2
2
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
- import { AppCheckService } from './app-check';
4
3
  import { Observable } from 'rxjs';
4
+ import { AppCheck } from '@angular/fire/app-check';
5
5
  import * as i0 from "@angular/core";
6
- export declare const FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN: InjectionToken<RegExp>;
7
6
  export declare class FirebaseAppCheckHttpInterceptor implements HttpInterceptor {
8
- readonly appCheck: AppCheckService;
7
+ readonly appCheck: AppCheck;
9
8
  private readonly enabled;
10
9
  private readonly urlPattern;
11
- constructor(appCheck: AppCheckService, urlPattern: RegExp | RegExp[], enabled: boolean | null);
10
+ constructor(appCheck: AppCheck, urlPattern: RegExp | RegExp[], enabled: boolean | null);
12
11
  intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
13
12
  private isMatch;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAppCheckHttpInterceptor, [null, null, { optional: true; }]>;
package/lib/tokens.d.ts CHANGED
@@ -1,2 +1,6 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  export declare const RXAP_REQUEST_CLOUD_MESSAGING_TOKEN: InjectionToken<unknown>;
3
+ export declare const APP_CHECK_ENABLED: InjectionToken<unknown>;
4
+ export declare const APP_CHECK_SITE_KEY: InjectionToken<unknown>;
5
+ export declare const APP_CHECK_IS_TOKEN_AUTO_REFRESH_ENABLED: InjectionToken<unknown>;
6
+ export declare const FIREBASE_APP_CHECK_HTTP_INTERCEPTOR_URL_PATTERN: InjectionToken<RegExp>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxap/firebase",
3
- "version": "14.0.1",
3
+ "version": "14.1.0",
4
4
  "private": false,
5
5
  "author": "Merzough Münker",
6
6
  "homepage": "https://gitlab.com/rxap/packages/libs/firebase",
@@ -67,6 +67,14 @@
67
67
  "es2015": "./fesm2015/rxap-firebase.mjs",
68
68
  "node": "./fesm2015/rxap-firebase.mjs",
69
69
  "default": "./fesm2020/rxap-firebase.mjs"
70
+ },
71
+ "./auth": {
72
+ "types": "./auth/index.d.ts",
73
+ "esm2020": "./esm2020/auth/rxap-firebase-auth.mjs",
74
+ "es2020": "./fesm2020/rxap-firebase-auth.mjs",
75
+ "es2015": "./fesm2015/rxap-firebase-auth.mjs",
76
+ "node": "./fesm2015/rxap-firebase-auth.mjs",
77
+ "default": "./fesm2020/rxap-firebase-auth.mjs"
70
78
  }
71
79
  },
72
80
  "sideEffects": false