@data-weave/backend-firestore 0.4.10 → 0.4.13

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.
@@ -49,7 +49,7 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
50
  exports.FirestoreDataManager = void 0;
51
51
  const inversify_1 = require("inversify");
52
- const datamanager_1 = require("@data-weave/datamanager");
52
+ const Cache_1 = require("@data-weave/datamanager/src/Cache");
53
53
  const FirestoreList_1 = require("./FirestoreList");
54
54
  const FirestoreMetadata_1 = require("./FirestoreMetadata");
55
55
  const FirestoreReference_1 = require("./FirestoreReference");
@@ -75,8 +75,8 @@ let FirestoreDataManager = (() => {
75
75
  // @ts-expect-error - Force merge FirestoreDataConverter and InternalFirestoreDataConverter
76
76
  this.mergedConverter = new utils_1.MergeConverters(this.converter, new FirestoreMetadata_1.FirestoreMetadataConverter());
77
77
  this.managerOptions = Object.assign(defaultFirebaseDataManagerOptions, this.opts);
78
- this.refCache = this.managerOptions.refCache || new datamanager_1.MapCache(100);
79
- this.listCache = this.managerOptions.listCache || new datamanager_1.MapCache(100);
78
+ this.refCache = this.managerOptions.refCache || new Cache_1.MapCache(100);
79
+ this.listCache = this.managerOptions.listCache || new Cache_1.MapCache(100);
80
80
  this.collection = this.firestore
81
81
  .collection(this.firestore.app, this.collectionPath)
82
82
  .withConverter(this.mergedConverter);
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FirestoreList = void 0;
13
- const datamanager_1 = require("@data-weave/datamanager");
14
- class FirestoreList extends datamanager_1.LiveList {
13
+ const src_1 = require("@data-weave/datamanager/src");
14
+ class FirestoreList extends src_1.LiveList {
15
15
  constructor(firestore, query, options) {
16
16
  super(options);
17
17
  this.firestore = firestore;
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FirestoreReference = void 0;
13
- const datamanager_1 = require("@data-weave/datamanager");
13
+ const src_1 = require("@data-weave/datamanager/src");
14
14
  const utils_1 = require("./utils");
15
- class FirestoreReference extends datamanager_1.LiveReference {
15
+ class FirestoreReference extends src_1.LiveReference {
16
16
  constructor(firestore, docRef, options) {
17
17
  super(options);
18
18
  this.firestore = firestore;
@@ -2,7 +2,7 @@ import { WithoutId } from '@data-weave/datamanager';
2
2
  import type * as FirestoreTypes from '@firebase/firestore';
3
3
  import type { FieldPath, WithFieldValue as FirestoreWithFieldValue, QueryConstraint } from '@firebase/firestore';
4
4
  import type { HttpsCallable, HttpsCallableOptions } from '@firebase/functions-types';
5
- import { FieldValue, Transaction } from '@google-cloud/firestore';
5
+ import type { FieldValue, Transaction } from '@google-cloud/firestore';
6
6
  export type DocumentData = FirestoreTypes.DocumentData;
7
7
  export { FieldValue, FirestoreTypes, Transaction };
8
8
  /**
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  // Generated by genversion.
3
- module.exports = '0.4.10';
3
+ module.exports = '0.4.13';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-weave/backend-firestore",
3
- "version": "0.4.10",
3
+ "version": "0.4.13",
4
4
  "author": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -23,8 +23,8 @@
23
23
  "registry": "https://registry.npmjs.org/"
24
24
  },
25
25
  "peerDependencies": {
26
- "@data-weave/datamanager": "0.4.9",
26
+ "@data-weave/datamanager": "0.4.8",
27
27
  "firebase": ">=11.0.0"
28
28
  },
29
- "gitHead": "8505cc51943c2fe3652b1a366e32c75b1c234f15"
29
+ "gitHead": "d85cdabd1ca5454feb05d5e8419926584eeda360"
30
30
  }