@infrab4a/connect-angular 4.0.0-beta.16 → 4.0.0-beta.18
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/esm2020/angular-firestore.module.mjs +11 -16
- package/esm2020/angular-hasura-graphql.module.mjs +15 -15
- package/fesm2015/infrab4a-connect-angular.mjs +25 -29
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +25 -29
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -13,9 +13,9 @@ import { docSnapshots, doc, Firestore, provideFirestore } from '@angular/fire/fi
|
|
|
13
13
|
import * as i1$2 from '@angular/common/http';
|
|
14
14
|
import * as i1$3 from '@angular/fire/app';
|
|
15
15
|
import { provideFirebaseApp, initializeApp } from '@angular/fire/app';
|
|
16
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
17
16
|
import { initializeApp as initializeApp$1 } from 'firebase/app';
|
|
18
17
|
import { getFirestore } from 'firebase/firestore';
|
|
18
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
19
19
|
|
|
20
20
|
class AuthService {
|
|
21
21
|
constructor(angularFireAuth, userRepository) {
|
|
@@ -1013,16 +1013,14 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
1013
1013
|
firestore,
|
|
1014
1014
|
interceptors: {
|
|
1015
1015
|
request: (request) => {
|
|
1016
|
-
if (isPlatformBrowser(platformId))
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
request.interval = interval;
|
|
1016
|
+
// if (isPlatformBrowser(platformId)) return request
|
|
1017
|
+
// const interval = setInterval(() => {}, 100)
|
|
1018
|
+
// request.interval = interval
|
|
1020
1019
|
return request;
|
|
1021
1020
|
},
|
|
1022
1021
|
response: (response, request) => {
|
|
1023
|
-
if (isPlatformBrowser(platformId))
|
|
1024
|
-
|
|
1025
|
-
clearInterval(request.interval);
|
|
1022
|
+
// if (isPlatformBrowser(platformId)) return response
|
|
1023
|
+
// clearInterval(request.interval)
|
|
1026
1024
|
return response;
|
|
1027
1025
|
},
|
|
1028
1026
|
},
|
|
@@ -1232,16 +1230,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1232
1230
|
firestore,
|
|
1233
1231
|
interceptors: {
|
|
1234
1232
|
request: (request) => {
|
|
1235
|
-
if (isPlatformBrowser(platformId))
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
request.interval = interval;
|
|
1233
|
+
// if (isPlatformBrowser(platformId)) return request
|
|
1234
|
+
// const interval = setInterval(() => {}, 100)
|
|
1235
|
+
// request.interval = interval
|
|
1239
1236
|
return request;
|
|
1240
1237
|
},
|
|
1241
1238
|
response: (response, request) => {
|
|
1242
|
-
if (isPlatformBrowser(platformId))
|
|
1243
|
-
|
|
1244
|
-
clearInterval(request.interval);
|
|
1239
|
+
// if (isPlatformBrowser(platformId)) return response
|
|
1240
|
+
// clearInterval(request.interval)
|
|
1245
1241
|
return response;
|
|
1246
1242
|
},
|
|
1247
1243
|
},
|
|
@@ -1470,7 +1466,7 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
1470
1466
|
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
1471
1467
|
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
1472
1468
|
},
|
|
1473
|
-
deps: [
|
|
1469
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
1474
1470
|
},
|
|
1475
1471
|
{
|
|
1476
1472
|
provide: 'ProductRepository',
|
|
@@ -1501,9 +1497,9 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
1501
1497
|
{
|
|
1502
1498
|
provide: CategoryFilterHasuraGraphQLRepository,
|
|
1503
1499
|
useFactory: (options) => {
|
|
1504
|
-
return new CategoryFilterHasuraGraphQLRepository(options
|
|
1500
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
1505
1501
|
},
|
|
1506
|
-
deps: [
|
|
1502
|
+
deps: ['HasuraConfig'],
|
|
1507
1503
|
},
|
|
1508
1504
|
{
|
|
1509
1505
|
provide: 'FilterOptionRepository',
|
|
@@ -1512,9 +1508,9 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
1512
1508
|
{
|
|
1513
1509
|
provide: FilterOptionHasuraGraphQLRepository,
|
|
1514
1510
|
useFactory: (options) => {
|
|
1515
|
-
return new FilterOptionHasuraGraphQLRepository(options
|
|
1511
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
1516
1512
|
},
|
|
1517
|
-
deps: [
|
|
1513
|
+
deps: ['HasuraConfig'],
|
|
1518
1514
|
},
|
|
1519
1515
|
{
|
|
1520
1516
|
provide: 'FilterRepository',
|
|
@@ -1523,9 +1519,9 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
|
|
|
1523
1519
|
{
|
|
1524
1520
|
provide: FilterHasuraGraphQLRepository,
|
|
1525
1521
|
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
1526
|
-
return new FilterHasuraGraphQLRepository(options
|
|
1522
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
1527
1523
|
},
|
|
1528
|
-
deps: [
|
|
1524
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
1529
1525
|
},
|
|
1530
1526
|
] });
|
|
1531
1527
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
@@ -1564,7 +1560,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1564
1560
|
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
1565
1561
|
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
1566
1562
|
},
|
|
1567
|
-
deps: [
|
|
1563
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
1568
1564
|
},
|
|
1569
1565
|
{
|
|
1570
1566
|
provide: 'ProductRepository',
|
|
@@ -1595,9 +1591,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1595
1591
|
{
|
|
1596
1592
|
provide: CategoryFilterHasuraGraphQLRepository,
|
|
1597
1593
|
useFactory: (options) => {
|
|
1598
|
-
return new CategoryFilterHasuraGraphQLRepository(options
|
|
1594
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
1599
1595
|
},
|
|
1600
|
-
deps: [
|
|
1596
|
+
deps: ['HasuraConfig'],
|
|
1601
1597
|
},
|
|
1602
1598
|
{
|
|
1603
1599
|
provide: 'FilterOptionRepository',
|
|
@@ -1606,9 +1602,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1606
1602
|
{
|
|
1607
1603
|
provide: FilterOptionHasuraGraphQLRepository,
|
|
1608
1604
|
useFactory: (options) => {
|
|
1609
|
-
return new FilterOptionHasuraGraphQLRepository(options
|
|
1605
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
1610
1606
|
},
|
|
1611
|
-
deps: [
|
|
1607
|
+
deps: ['HasuraConfig'],
|
|
1612
1608
|
},
|
|
1613
1609
|
{
|
|
1614
1610
|
provide: 'FilterRepository',
|
|
@@ -1617,9 +1613,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1617
1613
|
{
|
|
1618
1614
|
provide: FilterHasuraGraphQLRepository,
|
|
1619
1615
|
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
1620
|
-
return new FilterHasuraGraphQLRepository(options
|
|
1616
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
1621
1617
|
},
|
|
1622
|
-
deps: [
|
|
1618
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
1623
1619
|
},
|
|
1624
1620
|
],
|
|
1625
1621
|
}]
|