@infrab4a/connect 4.25.2-beta.1 → 4.25.2

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/index.cjs.js CHANGED
@@ -1254,8 +1254,6 @@ const parseDateTime = (value) => {
1254
1254
  return date;
1255
1255
  };
1256
1256
 
1257
- if (!global && globalThis)
1258
- global = globalThis;
1259
1257
  const deserialize = (data) => {
1260
1258
  return eval('(' + data + ')');
1261
1259
  };
@@ -3166,7 +3164,7 @@ class AuthenticationFirebaseAuthService {
3166
3164
  };
3167
3165
  }
3168
3166
  async signInWithGoogle() {
3169
- const credentials = await auth.signInWithPopup(this.firebaseAuth, new auth.GoogleAuthProvider());
3167
+ const credentials = await auth.signInWithPopup(this.firebaseAuth, new auth.GoogleAuthProvider(), auth.browserPopupRedirectResolver);
3170
3168
  const user = credentials.user;
3171
3169
  return {
3172
3170
  id: user.uid,
@@ -5778,6 +5776,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5778
5776
  'shoppingCount',
5779
5777
  'gender',
5780
5778
  'createdAt',
5779
+ 'label',
5780
+ 'outlet',
5781
5781
  ];
5782
5782
  const products = [];
5783
5783
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
@@ -6489,7 +6489,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
6489
6489
  const bindFields = fields ||
6490
6490
  this.fields
6491
6491
  .map((field) => (typeof field === 'string' ? field : Object.keys(field).shift()))
6492
- .filter((field) => field !== 'reviews');
6492
+ .filter((field) => field !== 'reviews' && field !== 'categories');
6493
6493
  if ((_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.minimal) === null || _b === void 0 ? void 0 : _b.includes('price'))
6494
6494
  (_c = options.options) === null || _c === void 0 ? void 0 : _c.minimal.push('price.price', 'price.fullPrice', 'price.subscriberPrice');
6495
6495
  if ((_e = (_d = options.options) === null || _d === void 0 ? void 0 : _d.maximum) === null || _e === void 0 ? void 0 : _e.includes('price'))
package/index.esm.js CHANGED
@@ -9,7 +9,7 @@ import { debug } from 'debug';
9
9
  import * as serializeJavascript from 'serialize-javascript';
10
10
  import { CustomError } from 'ts-custom-error';
11
11
  import axios, { AxiosError } from 'axios';
12
- import { signInWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, signInAnonymously, sendPasswordResetEmail, createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
12
+ import { signInWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, browserPopupRedirectResolver, signInAnonymously, sendPasswordResetEmail, createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
13
13
  import { Md5 } from 'ts-md5';
14
14
  import { deleteField, arrayUnion, arrayRemove, Timestamp, doc, getDoc, updateDoc, setDoc, deleteDoc, collection, limit, getDocs, query, where, orderBy, startAfter, addDoc } from 'firebase/firestore';
15
15
  import { ref, uploadBytes } from 'firebase/storage';
@@ -1229,8 +1229,6 @@ const parseDateTime = (value) => {
1229
1229
  return date;
1230
1230
  };
1231
1231
 
1232
- if (!global && globalThis)
1233
- global = globalThis;
1234
1232
  const deserialize = (data) => {
1235
1233
  return eval('(' + data + ')');
1236
1234
  };
@@ -3141,7 +3139,7 @@ class AuthenticationFirebaseAuthService {
3141
3139
  };
3142
3140
  }
3143
3141
  async signInWithGoogle() {
3144
- const credentials = await signInWithPopup(this.firebaseAuth, new GoogleAuthProvider());
3142
+ const credentials = await signInWithPopup(this.firebaseAuth, new GoogleAuthProvider(), browserPopupRedirectResolver);
3145
3143
  const user = credentials.user;
3146
3144
  return {
3147
3145
  id: user.uid,
@@ -5753,6 +5751,8 @@ class CategoryHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGr
5753
5751
  'shoppingCount',
5754
5752
  'gender',
5755
5753
  'createdAt',
5754
+ 'label',
5755
+ 'outlet',
5756
5756
  ];
5757
5757
  const products = [];
5758
5758
  const mostRelevantsIds = category.getMostRelevantByShop(shop);
@@ -6464,7 +6464,7 @@ class ProductHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
6464
6464
  const bindFields = fields ||
6465
6465
  this.fields
6466
6466
  .map((field) => (typeof field === 'string' ? field : Object.keys(field).shift()))
6467
- .filter((field) => field !== 'reviews');
6467
+ .filter((field) => field !== 'reviews' && field !== 'categories');
6468
6468
  if ((_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.minimal) === null || _b === void 0 ? void 0 : _b.includes('price'))
6469
6469
  (_c = options.options) === null || _c === void 0 ? void 0 : _c.minimal.push('price.price', 'price.fullPrice', 'price.subscriberPrice');
6470
6470
  if ((_e = (_d = options.options) === null || _d === void 0 ? void 0 : _d.maximum) === null || _e === void 0 ? void 0 : _e.includes('price'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.2-beta.1",
3
+ "version": "4.25.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },