@pbvision/firestore-orm 0.0.22 → 0.0.23
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/package.json +4 -4
- package/src/context.js +6 -2
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/firestore-orm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Firestore ORM Library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=24"
|
|
9
9
|
},
|
|
10
10
|
"exports": "./src/default-db.js",
|
|
11
11
|
"scripts": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@google-cloud/firestore": "^7.1.0",
|
|
43
|
-
"@pbvision/schema": "^0.2.
|
|
43
|
+
"@pbvision/schema": "^0.2.31",
|
|
44
44
|
"deep-object-diff": "^1.1.7",
|
|
45
45
|
"fast-deep-equal": "^3.1.3",
|
|
46
46
|
"fast-json-stable-stringify": "^2.1.0",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"eslint-plugin-node": "^11.1.0",
|
|
60
60
|
"eslint-plugin-promise": "^6.0.0",
|
|
61
61
|
"eslint-plugin-standard": "^4.0.1",
|
|
62
|
-
"firebase-tools": "^
|
|
62
|
+
"firebase-tools": "^14.26.0",
|
|
63
63
|
"jest": "^29",
|
|
64
64
|
"jsdoc": "3.6.4",
|
|
65
65
|
"nodemon": "^2.0.20",
|
package/src/context.js
CHANGED
|
@@ -683,13 +683,17 @@ function parseFirestoreErrorPath (err) {
|
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
685
|
|
|
686
|
-
// istanbul ignore next
|
|
687
686
|
function parseFirestoreErrorPathAlternate (err) {
|
|
688
687
|
const startIdx = err.message.indexOf('path=')
|
|
689
688
|
if (startIdx === -1) {
|
|
690
689
|
return
|
|
691
690
|
}
|
|
692
|
-
|
|
691
|
+
// the path value is terminated by the EntityRef bracket. firebase-tools<=14
|
|
692
|
+
// (firestore emulator v1.19.x) wraps it in curly braces
|
|
693
|
+
// (EntityRef{...path=/Type/id}), while v1.21.0 switched to square brackets
|
|
694
|
+
// (EntityRef[...path=/Type/id]); accept whichever closes last.
|
|
695
|
+
const endIdx = Math.max(
|
|
696
|
+
err.message.lastIndexOf('}'), err.message.lastIndexOf(']'))
|
|
693
697
|
if (endIdx < startIdx) {
|
|
694
698
|
return
|
|
695
699
|
}
|