@infrab4a/connect 4.25.1-beta.1 → 4.25.2-beta.1

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,6 +1254,8 @@ const parseDateTime = (value) => {
1254
1254
  return date;
1255
1255
  };
1256
1256
 
1257
+ if (!global && globalThis)
1258
+ global = globalThis;
1257
1259
  const deserialize = (data) => {
1258
1260
  return eval('(' + data + ')');
1259
1261
  };
@@ -1489,7 +1491,7 @@ class ProductErrors extends BaseModel {
1489
1491
  }
1490
1492
  }
1491
1493
  tslib.__decorate([
1492
- classTransformer.Type((type) => (+type.object.product.productId ? Variant : Product)),
1494
+ classTransformer.Type((type) => (+type.object['product']['productId'] ? Variant : Product)),
1493
1495
  tslib.__metadata("design:type", Object)
1494
1496
  ], ProductErrors.prototype, "product", void 0);
1495
1497
 
@@ -5365,7 +5367,7 @@ class VariantHasuraGraphQL extends Variant {
5365
5367
  class ProductErrorsHasuraGraphQL extends ProductErrors {
5366
5368
  }
5367
5369
  tslib.__decorate([
5368
- classTransformer.Type((type) => (+type.object.product.productId ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5370
+ classTransformer.Type((type) => (+type.object['product']['productId'] ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5369
5371
  tslib.__metadata("design:type", Object)
5370
5372
  ], ProductErrorsHasuraGraphQL.prototype, "product", void 0);
5371
5373
 
package/index.esm.js CHANGED
@@ -1229,6 +1229,8 @@ const parseDateTime = (value) => {
1229
1229
  return date;
1230
1230
  };
1231
1231
 
1232
+ if (!global && globalThis)
1233
+ global = globalThis;
1232
1234
  const deserialize = (data) => {
1233
1235
  return eval('(' + data + ')');
1234
1236
  };
@@ -1464,7 +1466,7 @@ class ProductErrors extends BaseModel {
1464
1466
  }
1465
1467
  }
1466
1468
  __decorate([
1467
- Type((type) => (+type.object.product.productId ? Variant : Product)),
1469
+ Type((type) => (+type.object['product']['productId'] ? Variant : Product)),
1468
1470
  __metadata("design:type", Object)
1469
1471
  ], ProductErrors.prototype, "product", void 0);
1470
1472
 
@@ -5340,7 +5342,7 @@ class VariantHasuraGraphQL extends Variant {
5340
5342
  class ProductErrorsHasuraGraphQL extends ProductErrors {
5341
5343
  }
5342
5344
  __decorate([
5343
- Type((type) => (+type.object.product.productId ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5345
+ Type((type) => (+type.object['product']['productId'] ? VariantHasuraGraphQL : ProductHasuraGraphQL)),
5344
5346
  __metadata("design:type", Object)
5345
5347
  ], ProductErrorsHasuraGraphQL.prototype, "product", void 0);
5346
5348
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.25.1-beta.1",
3
+ "version": "4.25.2-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -5,7 +5,7 @@ import { FirestoreRepository, FirestoreSubRepository } from '../types';
5
5
  export declare const withHelpers: <TMixinBase extends MixinCtor<any, any[]> = MixinCtor<any, any[]>>(MixinBase: MixinCtor<any, any[]> & TMixinBase) => {
6
6
  new (...args: any[]): {
7
7
  [x: string]: any;
8
- toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T, import("firebase/firestore").DocumentData> | QueryDocumentSnapshot<T, import("firebase/firestore").DocumentData>[]): T[];
8
+ toArray<T extends ModelBaseStructure<T, T["identifiersFields"][number]>>(snapShot: QuerySnapshot<T> | QueryDocumentSnapshot<T>[]): T[];
9
9
  isSubCollection<T_1 extends ModelBaseStructure<T_1, T_1["identifiersFields"][number]>, E extends ModelBaseStructure<E, E["identifiersFields"][number]>>(repository: FirestoreRepository<T_1> | FirestoreSubRepository<T_1, E>): repository is FirestoreSubRepository<T_1, E>;
10
10
  };
11
11
  } & TMixinBase;