@pbvision/firestore-orm 0.0.7 → 0.0.9

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,2 +1 @@
1
- process.env.INDEBUGGER = 1
2
1
  process.env.FIRESTORE_EMULATOR_HOST = '[::1]:8404'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbvision/firestore-orm",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "description": "Firestore ORM Library",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -11,7 +11,7 @@
11
11
  "scripts": {
12
12
  "build-doc": "./docs/build.sh",
13
13
  "check-markdown-link": "./scripts/ci/markdown-link.sh",
14
- "debug": "yarn start-local-db && ./node_modules/nodemon/bin/nodemon.js --no-lazy --legacy-watch --watch ./src --watch ./example --watch ./test --inspect=9229 ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
14
+ "debug": "yarn start-local-db && INDEBUGGER=1 ./node_modules/nodemon/bin/nodemon.js --no-lazy --legacy-watch --watch ./src --watch ./example --watch ./test --inspect=9229 ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
15
15
  "lint": "./scripts/ci/lint-format-js.sh",
16
16
  "setup": "yarn install --frozen-lockfile && pip install -r requirements.txt",
17
17
  "start-local-db": "./scripts/start-local-db.sh",
package/src/context.js CHANGED
@@ -103,9 +103,9 @@ export class Context {
103
103
  return {
104
104
  readOnly: false,
105
105
  consistentReads: true,
106
- initialBackoff: process.env.INDEBUGGER ? 1 : 500,
106
+ initialBackoff: process.env.FIRESTORE_EMULATOR_HOST ? 1 : 500,
107
107
  maxBackoff: 10000,
108
- retries: process.env.INDEBUGGER ? 0 : 4, // no retry by default in unit tests for speed
108
+ retries: process.env.FIRESTORE_EMULATOR_HOST ? 0 : 4, // no retry by default in unit tests for speed
109
109
  cacheModels: false
110
110
  }
111
111
  }
package/src/firestore.js CHANGED
@@ -111,7 +111,7 @@ export default function setup (firestoreDB) {
111
111
  TransactionFailedError,
112
112
  WriteAttemptedInReadOnlyTxError
113
113
  }
114
- if (Number(process.env.INDEBUGGER)) {
114
+ if (process.env.FIRESTORE_EMULATOR_HOST) {
115
115
  toExport.__private = {
116
116
  __Field,
117
117
  fields: [