wattpm 2.69.0 → 2.70.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/lib/commands/inject.js +1 -2
- package/package.json +7 -7
- package/schema.json +54 -23
package/lib/commands/inject.js
CHANGED
|
@@ -70,7 +70,6 @@ export async function injectCommand (logger, args) {
|
|
|
70
70
|
)
|
|
71
71
|
|
|
72
72
|
const outputStream = output ? createWriteStream(resolve(process.cwd(), output)) : process.stdout
|
|
73
|
-
|
|
74
73
|
try {
|
|
75
74
|
const client = new RuntimeApiClient()
|
|
76
75
|
const [runtime, positionals] = await getMatchingRuntime(client, allPositionals)
|
|
@@ -115,7 +114,7 @@ export async function injectCommand (logger, args) {
|
|
|
115
114
|
if (response.statusCode === 500) {
|
|
116
115
|
const json = JSON.parse(responseBody)
|
|
117
116
|
|
|
118
|
-
if (json?.code === 'PLT_RUNTIME_SERVICE_NOT_FOUND') {
|
|
117
|
+
if (json?.code === 'PLT_RUNTIME_SERVICE_NOT_FOUND' || json?.code === 'PLT_RUNTIME_SERVICE_WORKER_NOT_FOUND') {
|
|
119
118
|
const error = new Error('Cannot find a service.')
|
|
120
119
|
error.code = 'PLT_CTR_SERVICE_NOT_FOUND'
|
|
121
120
|
throw error
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.70.0",
|
|
4
4
|
"description": "The Node.js Application Server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"semver": "^7.7.0",
|
|
37
37
|
"split2": "^4.2.0",
|
|
38
38
|
"table": "^6.8.2",
|
|
39
|
-
"@platformatic/config": "2.
|
|
40
|
-
"@platformatic/control": "2.
|
|
41
|
-
"@platformatic/
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"@platformatic/config": "2.70.0",
|
|
40
|
+
"@platformatic/control": "2.70.0",
|
|
41
|
+
"@platformatic/utils": "2.70.0",
|
|
42
|
+
"@platformatic/runtime": "2.70.0",
|
|
43
|
+
"create-platformatic": "2.70.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"borp": "^0.20.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"neostandard": "^0.12.0",
|
|
51
51
|
"typescript": "^5.5.4",
|
|
52
52
|
"undici": "^7.0.0",
|
|
53
|
-
"@platformatic/node": "2.
|
|
53
|
+
"@platformatic/node": "2.70.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"test": "npm run lint && borp --concurrency=1 --timeout=600000",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/wattpm/2.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/wattpm/2.70.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"properties": {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"health": {
|
|
78
78
|
"type": "object",
|
|
79
|
+
"default": {},
|
|
79
80
|
"properties": {
|
|
80
81
|
"enabled": {
|
|
81
82
|
"anyOf": [
|
|
@@ -156,8 +157,15 @@
|
|
|
156
157
|
]
|
|
157
158
|
},
|
|
158
159
|
"maxYoungGeneration": {
|
|
159
|
-
"
|
|
160
|
-
|
|
160
|
+
"anyOf": [
|
|
161
|
+
{
|
|
162
|
+
"type": "number",
|
|
163
|
+
"minimum": 0
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
161
169
|
}
|
|
162
170
|
},
|
|
163
171
|
"additionalProperties": false
|
|
@@ -244,6 +252,7 @@
|
|
|
244
252
|
},
|
|
245
253
|
"health": {
|
|
246
254
|
"type": "object",
|
|
255
|
+
"default": {},
|
|
247
256
|
"properties": {
|
|
248
257
|
"enabled": {
|
|
249
258
|
"anyOf": [
|
|
@@ -324,8 +333,15 @@
|
|
|
324
333
|
]
|
|
325
334
|
},
|
|
326
335
|
"maxYoungGeneration": {
|
|
327
|
-
"
|
|
328
|
-
|
|
336
|
+
"anyOf": [
|
|
337
|
+
{
|
|
338
|
+
"type": "number",
|
|
339
|
+
"minimum": 0
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"type": "string"
|
|
343
|
+
}
|
|
344
|
+
]
|
|
329
345
|
}
|
|
330
346
|
},
|
|
331
347
|
"additionalProperties": false
|
|
@@ -477,6 +493,7 @@
|
|
|
477
493
|
},
|
|
478
494
|
"health": {
|
|
479
495
|
"type": "object",
|
|
496
|
+
"default": {},
|
|
480
497
|
"properties": {
|
|
481
498
|
"enabled": {
|
|
482
499
|
"anyOf": [
|
|
@@ -557,8 +574,15 @@
|
|
|
557
574
|
]
|
|
558
575
|
},
|
|
559
576
|
"maxYoungGeneration": {
|
|
560
|
-
"
|
|
561
|
-
|
|
577
|
+
"anyOf": [
|
|
578
|
+
{
|
|
579
|
+
"type": "number",
|
|
580
|
+
"minimum": 0
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"type": "string"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
562
586
|
}
|
|
563
587
|
},
|
|
564
588
|
"additionalProperties": false
|
|
@@ -976,7 +1000,6 @@
|
|
|
976
1000
|
"default": {},
|
|
977
1001
|
"properties": {
|
|
978
1002
|
"enabled": {
|
|
979
|
-
"default": true,
|
|
980
1003
|
"anyOf": [
|
|
981
1004
|
{
|
|
982
1005
|
"type": "boolean"
|
|
@@ -984,10 +1007,10 @@
|
|
|
984
1007
|
{
|
|
985
1008
|
"type": "string"
|
|
986
1009
|
}
|
|
987
|
-
]
|
|
1010
|
+
],
|
|
1011
|
+
"default": true
|
|
988
1012
|
},
|
|
989
1013
|
"interval": {
|
|
990
|
-
"default": 30000,
|
|
991
1014
|
"anyOf": [
|
|
992
1015
|
{
|
|
993
1016
|
"type": "number",
|
|
@@ -996,10 +1019,10 @@
|
|
|
996
1019
|
{
|
|
997
1020
|
"type": "string"
|
|
998
1021
|
}
|
|
999
|
-
]
|
|
1022
|
+
],
|
|
1023
|
+
"default": 30000
|
|
1000
1024
|
},
|
|
1001
1025
|
"gracePeriod": {
|
|
1002
|
-
"default": 30000,
|
|
1003
1026
|
"anyOf": [
|
|
1004
1027
|
{
|
|
1005
1028
|
"type": "number",
|
|
@@ -1008,10 +1031,10 @@
|
|
|
1008
1031
|
{
|
|
1009
1032
|
"type": "string"
|
|
1010
1033
|
}
|
|
1011
|
-
]
|
|
1034
|
+
],
|
|
1035
|
+
"default": 30000
|
|
1012
1036
|
},
|
|
1013
1037
|
"maxUnhealthyChecks": {
|
|
1014
|
-
"default": 10,
|
|
1015
1038
|
"anyOf": [
|
|
1016
1039
|
{
|
|
1017
1040
|
"type": "number",
|
|
@@ -1020,10 +1043,10 @@
|
|
|
1020
1043
|
{
|
|
1021
1044
|
"type": "string"
|
|
1022
1045
|
}
|
|
1023
|
-
]
|
|
1046
|
+
],
|
|
1047
|
+
"default": 10
|
|
1024
1048
|
},
|
|
1025
1049
|
"maxELU": {
|
|
1026
|
-
"default": 0.99,
|
|
1027
1050
|
"anyOf": [
|
|
1028
1051
|
{
|
|
1029
1052
|
"type": "number",
|
|
@@ -1033,10 +1056,10 @@
|
|
|
1033
1056
|
{
|
|
1034
1057
|
"type": "string"
|
|
1035
1058
|
}
|
|
1036
|
-
]
|
|
1059
|
+
],
|
|
1060
|
+
"default": 0.99
|
|
1037
1061
|
},
|
|
1038
1062
|
"maxHeapUsed": {
|
|
1039
|
-
"default": 0.99,
|
|
1040
1063
|
"anyOf": [
|
|
1041
1064
|
{
|
|
1042
1065
|
"type": "number",
|
|
@@ -1046,10 +1069,10 @@
|
|
|
1046
1069
|
{
|
|
1047
1070
|
"type": "string"
|
|
1048
1071
|
}
|
|
1049
|
-
]
|
|
1072
|
+
],
|
|
1073
|
+
"default": 0.99
|
|
1050
1074
|
},
|
|
1051
1075
|
"maxHeapTotal": {
|
|
1052
|
-
"default": 4294967296,
|
|
1053
1076
|
"anyOf": [
|
|
1054
1077
|
{
|
|
1055
1078
|
"type": "number",
|
|
@@ -1058,11 +1081,19 @@
|
|
|
1058
1081
|
{
|
|
1059
1082
|
"type": "string"
|
|
1060
1083
|
}
|
|
1061
|
-
]
|
|
1084
|
+
],
|
|
1085
|
+
"default": 4294967296
|
|
1062
1086
|
},
|
|
1063
1087
|
"maxYoungGeneration": {
|
|
1064
|
-
"
|
|
1065
|
-
|
|
1088
|
+
"anyOf": [
|
|
1089
|
+
{
|
|
1090
|
+
"type": "number",
|
|
1091
|
+
"minimum": 0
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
}
|
|
1096
|
+
]
|
|
1066
1097
|
}
|
|
1067
1098
|
},
|
|
1068
1099
|
"additionalProperties": false
|