@platformatic/service 1.39.0 → 1.40.0
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/config.d.ts +3 -0
- package/lib/generator/README.md +1 -1
- package/lib/plugins/clients.js +2 -2
- package/lib/schema.js +4 -1
- package/package.json +8 -8
- package/schema.json +11 -2
package/config.d.ts
CHANGED
package/lib/generator/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Platformatic Service API
|
|
2
2
|
|
|
3
|
-
This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/
|
|
3
|
+
This is a generated [Platformatic Service](https://docs.platformatic.dev/docs/service/overview) application.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
package/lib/plugins/clients.js
CHANGED
|
@@ -4,11 +4,11 @@ const fp = require('fastify-plugin')
|
|
|
4
4
|
const client = require('@platformatic/client')
|
|
5
5
|
|
|
6
6
|
async function setupClients (app, opts) {
|
|
7
|
-
for (const { path, url, serviceId, name, schema, type } of opts) {
|
|
7
|
+
for (const { path, url, serviceId, name, schema, type, fullRequest, fullResponse, validateResponse } of opts) {
|
|
8
8
|
if (path) {
|
|
9
9
|
app.register(require(path), { url, serviceId })
|
|
10
10
|
} else {
|
|
11
|
-
app.register(client, { url, serviceId, name, path: schema, type })
|
|
11
|
+
app.register(client, { url, serviceId, name, path: schema, type, fullRequest, fullResponse, validateResponse })
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
package/lib/schema.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -78,13 +78,13 @@
|
|
|
78
78
|
"semgrator": "^0.3.0",
|
|
79
79
|
"ua-parser-js": "^1.0.37",
|
|
80
80
|
"undici": "^6.9.0",
|
|
81
|
-
"@platformatic/authenticate": "1.
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/generators": "1.
|
|
85
|
-
"@platformatic/
|
|
86
|
-
"@platformatic/
|
|
87
|
-
"@platformatic/
|
|
81
|
+
"@platformatic/authenticate": "1.40.0",
|
|
82
|
+
"@platformatic/client": "1.40.0",
|
|
83
|
+
"@platformatic/config": "1.40.0",
|
|
84
|
+
"@platformatic/generators": "1.40.0",
|
|
85
|
+
"@platformatic/telemetry": "1.40.0",
|
|
86
|
+
"@platformatic/scalar-theme": "1.40.0",
|
|
87
|
+
"@platformatic/utils": "1.40.0"
|
|
88
88
|
},
|
|
89
89
|
"standard": {
|
|
90
90
|
"ignore": [
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://platformatic.dev/schemas/v1.
|
|
3
|
-
"version": "1.
|
|
2
|
+
"$id": "https://platformatic.dev/schemas/v1.40.0/service",
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
@@ -928,6 +928,15 @@
|
|
|
928
928
|
},
|
|
929
929
|
"url": {
|
|
930
930
|
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
"fullResponse": {
|
|
933
|
+
"type": "boolean"
|
|
934
|
+
},
|
|
935
|
+
"fullRequest": {
|
|
936
|
+
"type": "boolean"
|
|
937
|
+
},
|
|
938
|
+
"validateResponse": {
|
|
939
|
+
"type": "boolean"
|
|
931
940
|
}
|
|
932
941
|
},
|
|
933
942
|
"additionalProperties": false
|