@pbvision/fastify-firestore-service 0.0.18 → 0.0.20
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 +2 -2
- package/src/api/api.js +1 -5
- package/src/make-logger.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/fastify-firestore-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20",
|
|
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 ./node_modules/jest/bin/jest.js --coverage --config=./jest.config.json --runInBand",
|
|
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",
|
|
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",
|
package/src/api/api.js
CHANGED
|
@@ -106,9 +106,7 @@ class API {
|
|
|
106
106
|
|
|
107
107
|
/* istanbul ignore next */
|
|
108
108
|
/**
|
|
109
|
-
* The HTTP path suffix used to request this API.
|
|
110
|
-
* should use lower camel-case as in the example mentioned; they should not
|
|
111
|
-
* contain underscores.
|
|
109
|
+
* The HTTP path suffix used to request this API.
|
|
112
110
|
* @public
|
|
113
111
|
* @abstract
|
|
114
112
|
*/
|
|
@@ -732,8 +730,6 @@ class API {
|
|
|
732
730
|
assert.ok(this.DESC, 'DESC is missing')
|
|
733
731
|
assert.ok(this.PATH && this.PATH.startsWith('/'),
|
|
734
732
|
'API path must start with a "/"')
|
|
735
|
-
assert.ok(this.PATH.indexOf('_') < 0,
|
|
736
|
-
'API path should not have underscores') // use camel-case
|
|
737
733
|
|
|
738
734
|
// convert our proprietary schema format to the fast-json-stringify format
|
|
739
735
|
const respSchemas = this._getResponseSchemas()
|
package/src/make-logger.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export function makePinoLoggerOptions (customizeOpts) {
|
|
2
2
|
function serializeReq (req) {
|
|
3
3
|
const q = req.query
|
|
4
|
+
const path = req.routeConfig.url
|
|
4
5
|
// istanbul ignore else
|
|
5
6
|
if (req.raw) {
|
|
6
7
|
req = req.raw
|
|
7
8
|
}
|
|
8
|
-
const path = req.path
|
|
9
9
|
return {
|
|
10
10
|
uid: req.headers['x-uid'] || '',
|
|
11
11
|
method: req.method,
|