@pbvision/fastify-firestore-service 0.0.21 → 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/README.md CHANGED
@@ -44,7 +44,7 @@ class GetOrderAPI extends DatabaseAPI {
44
44
  static OUTPUT = {
45
45
  order: Order.Schema
46
46
  }
47
- static EXCEPTIONS = {
47
+ static ERRORS = {
48
48
  EXCEPTIONS.NotFoundException
49
49
  }
50
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbvision/fastify-firestore-service",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Web Framework using Fastify and Firestore ORM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -10,7 +10,7 @@
10
10
  "exports": "./src/index.js",
11
11
  "scripts": {
12
12
  "build-doc": "./docs/build.sh",
13
- "debug": "./node_modules/nodemon/bin/nodemon.js --no-lazy --legacy-watch --watch ./src --watch ./examples --watch ./test --inspect=9229 --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
13
+ "debug": "INDEBUGGER=1 ./node_modules/nodemon/bin/nodemon.js --no-lazy --legacy-watch --watch ./src --watch ./examples --watch ./test --inspect=9229 --experimental-vm-modules ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
14
14
  "setup": "yarn install --frozen-lockfile && pip install -r requirements.txt",
15
15
  "start-local-db": "./node_modules/@pbvision/firestore-orm/scripts/start-local-db.sh",
16
16
  "test": "yarn -s start-local-db && yarn -s test-without-starting-db",
@@ -42,8 +42,7 @@
42
42
  "@fastify/static": "^6.12",
43
43
  "@fastify/swagger": "^8.1.0",
44
44
  "@fastify/swagger-ui": "^2.0.1",
45
- "@pbvision/firestore-orm": "^0.0.8",
46
- "@pbvision/schema": "^0.2.15",
45
+ "@pbvision/firestore-orm": "^0.0.10",
47
46
  "@sentry/node": "^7.91.0",
48
47
  "fastify": "^4.10.0",
49
48
  "fastify-plugin": "^4.5.1",
@@ -1,7 +1,7 @@
1
1
  export function makePinoLoggerOptions (customizeOpts) {
2
2
  function serializeReq (req) {
3
3
  const q = req.query
4
- const path = req.routeConfig.url
4
+ const path = req.routeOptions.config.url
5
5
  // istanbul ignore else
6
6
  if (req.raw) {
7
7
  req = req.raw