@pbvision/firestore-orm 0.0.15 → 0.0.17

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/environment.js CHANGED
@@ -1 +1 @@
1
- process.env.FIRESTORE_EMULATOR_HOST = '[::1]:8404'
1
+ process.env.FIRESTORE_EMULATOR_HOST = '127.0.0.1:9091'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbvision/firestore-orm",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Firestore ORM Library",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -40,7 +40,7 @@
40
40
  ],
41
41
  "dependencies": {
42
42
  "@google-cloud/firestore": "^7.1.0",
43
- "@pbvision/schema": "^0.2.27",
43
+ "@pbvision/schema": "^0.2.29",
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,6 +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": "^13.5.2",
62
63
  "jest": "^29",
63
64
  "jsdoc": "3.6.4",
64
65
  "nodemon": "^2.0.20",
@@ -0,0 +1,5 @@
1
+ {
2
+ "projects": {
3
+ "default": "localhost-emulator"
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "firestore": {},
3
+ "emulators": {
4
+ "singleProjectMode": true,
5
+ "firestore": {
6
+ "port": "9091"
7
+ }
8
+ }
9
+ }
@@ -1,12 +1,12 @@
1
1
  #!/bin/bash
2
2
  set -o errexit
3
3
  set -o nounset
4
+ cd "`dirname \"$0\"`"
4
5
 
5
- firestorePort=8404
6
- pid=`lsof -tPi :$firestorePort -sTCP:LISTEN || echo 'port_not_in_use'`
7
- if [ "$pid" != "port_not_in_use" ]; then
8
- echo "local db emulator port $firestorePort already in use; replacing PID $pid"
6
+ pid=`ps ax | grep 'firebase emulators:start' | grep -v grep | cut -d' ' -f1`
7
+ if [ "$pid" != "" ]; then
8
+ echo "local emulator already running; replacing PID $pid"
9
9
  kill $pid
10
10
  fi
11
- gcloud emulators firestore start --host-port [::1]:$firestorePort > /dev/null 2> /dev/null &
12
- echo "firestore db emulator is now running in the background as PID $!"
11
+ firebase emulators:start --only firestore > /dev/null 2> /dev/null &
12
+ echo "firebase emulators are now running in the background as PID $!"