@pbvision/fastify-firestore-service 0.0.4 → 0.0.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pbvision/fastify-firestore-service",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "Web Framework using Fastify and Firestore ORM",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "debug": "./node_modules/nodemon/bin/nodemon.js --no-lazy --legacy-watch --watch ./src --watch ./examples --watch ./test --inspect=9229 ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
14
14
  "test": "node --experimental-vm-modules ./node_modules/jest/bin/jest.js --config=./jest.config.json --coverage",
15
15
  "setup": "yarn install --frozen-lockfile && pip install -r requirements.txt",
16
- "start-local-db": "./node_modules/firestore-orm/scripts/start-local-db.sh"
16
+ "start-local-db": "./node_modules/@pbvision/firestore-orm/scripts/start-local-db.sh"
17
17
  },
18
18
  "contributors": [
19
19
  "David Underhill",
package/src/api/db-api.js CHANGED
@@ -1,4 +1,4 @@
1
- import db from 'firestore-orm'
1
+ import db from '@pbvision/firestore-orm'
2
2
 
3
3
  import API from './api.js'
4
4
 
package/src/make-app.js CHANGED
@@ -168,7 +168,8 @@ export default async function makeService (params = {}) {
168
168
  errorHandler: {
169
169
  returnErrorDetail: logging.reportErrorDetail,
170
170
  sentryDSN: logging.sentryDSN,
171
- serverName: fastifyServerId
171
+ serverName: fastifyServerId,
172
+ service
172
173
  }
173
174
  })
174
175
  .register(healthCheckPlugin, { healthCheck })
@@ -13,7 +13,7 @@ export default fp(function (fastify, options, next) {
13
13
  dsn: sentryDSN,
14
14
  enabled: isSentryEnabled,
15
15
  environment: process.env.NODE_ENV,
16
- release: process.env.GIT_HASH,
16
+ release: `${options.errorHandler.service}@${process.env.GIT_HASH}`,
17
17
  serverName: options.errorHandler.serverName
18
18
  })
19
19
 
@@ -1,3 +1,3 @@
1
- import 'firestore-orm/environment.js'
1
+ import '@pbvision/firestore-orm/environment.js'
2
2
 
3
3
  process.env.NODE_ENV = 'localhost'