@platformatic/control 3.8.0 → 3.9.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/index.js +6 -2
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -318,12 +318,16 @@ export class RuntimeApiClient {
|
|
|
318
318
|
return await body.json()
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
async stopApplicationProfiling (pid, applicationId) {
|
|
321
|
+
async stopApplicationProfiling (pid, applicationId, options = {}) {
|
|
322
322
|
const client = this.#getUndiciClient(pid)
|
|
323
323
|
|
|
324
324
|
const { statusCode, body } = await client.request({
|
|
325
325
|
path: `/api/v1/applications/${applicationId}/pprof/stop`,
|
|
326
|
-
method: 'POST'
|
|
326
|
+
method: 'POST',
|
|
327
|
+
headers: {
|
|
328
|
+
'content-type': 'application/json'
|
|
329
|
+
},
|
|
330
|
+
body: JSON.stringify(options)
|
|
327
331
|
})
|
|
328
332
|
|
|
329
333
|
if (statusCode !== 200) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/control",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Platformatic Control",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"split2": "^4.2.0",
|
|
24
24
|
"tsd": "^0.33.0",
|
|
25
25
|
"typescript": "^5.5.4",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/runtime": "3.9.0",
|
|
27
|
+
"@platformatic/service": "3.9.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@fastify/error": "^4.0.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"table": "^6.8.1",
|
|
35
35
|
"undici": "^7.0.0",
|
|
36
36
|
"ws": "^8.16.0",
|
|
37
|
-
"@platformatic/foundation": "3.
|
|
37
|
+
"@platformatic/foundation": "3.9.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.19.0"
|