@pbvision/cloud-run-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 +2 -2
- package/src/main.js +1 -1
- package/src/utils.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/cloud-run-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"description": "fastify-firestore-service Web Framework on Cloud Run",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@google-cloud/tasks": "^4.0.1",
|
|
32
|
-
"@pbvision/fastify-firestore-service": "^0.0.
|
|
32
|
+
"@pbvision/fastify-firestore-service": "^0.0.21",
|
|
33
33
|
"google-auth-library": "^9.4.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
package/src/main.js
CHANGED
|
@@ -50,7 +50,7 @@ function makeCustomizeLoggingOptionsFunction () {
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export async function makeService (components
|
|
53
|
+
export async function makeService (components) {
|
|
54
54
|
verifyEnvironmentVariables()
|
|
55
55
|
return makePBVService(components, makeCustomizeLoggingOptionsFunction())
|
|
56
56
|
}
|
package/src/utils.js
CHANGED
|
@@ -5,7 +5,7 @@ import { port as portForThisService } from './port.js'
|
|
|
5
5
|
export function getServiceProtocolAndHost (serviceName) {
|
|
6
6
|
const host = getServiceHost(serviceName)
|
|
7
7
|
// istanbul ignore next
|
|
8
|
-
const protocol = host
|
|
8
|
+
const protocol = host.startsWith('localhost') ? 'http' : 'https'
|
|
9
9
|
return `${protocol}://${host}`
|
|
10
10
|
}
|
|
11
11
|
|