wattpm 3.60.0 → 3.61.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 -1
- package/lib/commands/snapshot.js +3 -2
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/commands/inject.js
CHANGED
|
@@ -118,7 +118,7 @@ export async function injectCommand (logger, args) {
|
|
|
118
118
|
/* c8 ignore next 4 - else */
|
|
119
119
|
if (
|
|
120
120
|
json?.code === 'PLT_RUNTIME_APPLICATION_NOT_FOUND' ||
|
|
121
|
-
json?.code === '
|
|
121
|
+
json?.code === 'PLT_RUNTIME_WORKER_NOT_FOUND'
|
|
122
122
|
) {
|
|
123
123
|
const error = new Error('Cannot find an application.')
|
|
124
124
|
error.code = 'PLT_CTR_APPLICATION_NOT_FOUND'
|
package/lib/commands/snapshot.js
CHANGED
|
@@ -25,7 +25,8 @@ export async function heapSnapshotCommand (logger, args) {
|
|
|
25
25
|
const outputDir = values.dir || process.cwd()
|
|
26
26
|
|
|
27
27
|
if (applicationId) {
|
|
28
|
-
const
|
|
28
|
+
const applicationIdWithoutWorker = applicationId.match(/^(.+):\d+$/)?.[1] ?? applicationId
|
|
29
|
+
const application = runtimeApplications.find(s => s.id === applicationIdWithoutWorker)
|
|
29
30
|
if (!application) {
|
|
30
31
|
return logFatalError(logger, `Application not found: ${applicationId}`)
|
|
31
32
|
}
|
|
@@ -53,7 +54,7 @@ export async function heapSnapshotCommand (logger, args) {
|
|
|
53
54
|
} catch (error) {
|
|
54
55
|
if (error.code === 'PLT_CTR_RUNTIME_NOT_FOUND') {
|
|
55
56
|
return logFatalError(logger, 'Cannot find a matching runtime.')
|
|
56
|
-
} else if (error.
|
|
57
|
+
} else if (error.code === 'PLT_CTR_APPLICATION_NOT_FOUND' || error.message?.includes('Application not found')) {
|
|
57
58
|
return logFatalError(logger, error.message)
|
|
58
59
|
} else {
|
|
59
60
|
return logFatalError(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wattpm",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.61.0",
|
|
4
4
|
"description": "The Node.js Application Server",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"pino-pretty": "^13.0.0",
|
|
31
31
|
"split2": "^4.2.0",
|
|
32
32
|
"table": "^6.8.2",
|
|
33
|
-
"@platformatic/control": "3.
|
|
34
|
-
"@platformatic/
|
|
35
|
-
"@platformatic/
|
|
36
|
-
"@platformatic/runtime": "3.
|
|
33
|
+
"@platformatic/control": "3.61.0",
|
|
34
|
+
"@platformatic/foundation": "3.61.0",
|
|
35
|
+
"@platformatic/globals": "3.61.0",
|
|
36
|
+
"@platformatic/runtime": "3.61.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"cleaner-spec-reporter": "^0.5.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"neostandard": "^0.12.0",
|
|
46
46
|
"typescript": "^5.5.4",
|
|
47
47
|
"undici": "^7.27.2",
|
|
48
|
-
"@platformatic/node": "3.
|
|
48
|
+
"@platformatic/node": "3.61.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED