@platformatic/runtime 3.71.0 → 3.71.1-alpha.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/runtime.js CHANGED
@@ -994,7 +994,13 @@ export class Runtime extends EventEmitter {
994
994
 
995
995
  if (!allWorkers || hasWorkerIndex(id)) {
996
996
  const service = await this.#getApplicationWorkerForProfiling(id, ensureStarted)
997
- return sendViaITC(service, 'startProfiling', profilingOptions)
997
+ const nodeModulesSourceMaps = profilingOptions.nodeModulesSourceMaps ??
998
+ service[kConfig].nodeModulesSourceMaps ?? this.#config.nodeModulesSourceMaps
999
+
1000
+ return sendViaITC(service, 'startProfiling', {
1001
+ ...profilingOptions,
1002
+ nodeModulesSourceMaps
1003
+ })
998
1004
  }
999
1005
 
1000
1006
  const started = []
@@ -1003,7 +1009,14 @@ export class Runtime extends EventEmitter {
1003
1009
 
1004
1010
  for (const { workerIndex, worker } of await this.#getApplicationWorkersForProfiling(id, ensureStarted)) {
1005
1011
  try {
1006
- await sendViaITC(worker, 'startProfiling', profilingOptions)
1012
+ const nodeModulesSourceMaps = profilingOptions.nodeModulesSourceMaps ??
1013
+ worker[kConfig].nodeModulesSourceMaps ??
1014
+ this.#config.nodeModulesSourceMaps
1015
+
1016
+ await sendViaITC(worker, 'startProfiling', {
1017
+ ...profilingOptions,
1018
+ nodeModulesSourceMaps
1019
+ })
1007
1020
  started.push(workerIndex)
1008
1021
  } catch (error) {
1009
1022
  // A worker which is already being profiled is considered covered, but
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/runtime",
3
- "version": "3.71.0",
3
+ "version": "3.71.1-alpha.0",
4
4
  "description": "Platformatic runtime",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -39,14 +39,14 @@
39
39
  "typescript": "~6.0.3",
40
40
  "undici-oidc-interceptor": "^0.9.0",
41
41
  "why-is-node-running": "^2.2.2",
42
- "@platformatic/composer": "3.71.0",
43
- "@platformatic/db": "3.71.0",
44
- "@platformatic/gateway": "3.71.0",
45
- "@platformatic/service": "3.71.0",
46
- "@platformatic/node": "3.71.0",
47
- "@platformatic/sql-graphql": "3.71.0",
48
- "@platformatic/wattpm-pprof-capture": "3.71.0",
49
- "@platformatic/sql-mapper": "3.71.0"
42
+ "@platformatic/composer": "3.71.1-alpha.0",
43
+ "@platformatic/db": "3.71.1-alpha.0",
44
+ "@platformatic/gateway": "3.71.1-alpha.0",
45
+ "@platformatic/service": "3.71.1-alpha.0",
46
+ "@platformatic/node": "3.71.1-alpha.0",
47
+ "@platformatic/sql-graphql": "3.71.1-alpha.0",
48
+ "@platformatic/wattpm-pprof-capture": "3.71.1-alpha.0",
49
+ "@platformatic/sql-mapper": "3.71.1-alpha.0"
50
50
  },
51
51
  "dependencies": {
52
52
  "@fastify/accepts": "^5.0.0",
@@ -77,13 +77,13 @@
77
77
  "undici": "^7.27.2",
78
78
  "undici-thread-interceptor": "^1.3.1",
79
79
  "ws": "^8.16.0",
80
- "@platformatic/foundation": "3.71.0",
81
- "@platformatic/generators": "3.71.0",
82
- "@platformatic/basic": "3.71.0",
83
- "@platformatic/globals": "3.71.0",
84
- "@platformatic/metrics": "3.71.0",
85
- "@platformatic/itc": "3.71.0",
86
- "@platformatic/telemetry": "3.71.0"
80
+ "@platformatic/basic": "3.71.1-alpha.0",
81
+ "@platformatic/foundation": "3.71.1-alpha.0",
82
+ "@platformatic/generators": "3.71.1-alpha.0",
83
+ "@platformatic/globals": "3.71.1-alpha.0",
84
+ "@platformatic/itc": "3.71.1-alpha.0",
85
+ "@platformatic/metrics": "3.71.1-alpha.0",
86
+ "@platformatic/telemetry": "3.71.1-alpha.0"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.71.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.71.1-alpha.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Runtime Config",
5
5
  "type": "object",