Skip to content

Commit 93c7955

Browse files
authored
chore: Update @pyroscope/node-js (#4049)
* chore: Update @pyroscope/node-js * Fix teardown
1 parent 06df61f commit 93c7955

File tree

3 files changed

+83
-133
lines changed

3 files changed

+83
-133
lines changed

globalTeardown.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
const Pyroscope = require('@pyroscope/nodejs');
22

3-
module.exports = (config) => {
3+
module.exports = async (config) => {
44
if (process.env.CI) {
5-
Pyroscope.stopCpuProfiling();
6-
Pyroscope.stopHeapProfiling();
5+
await Pyroscope.stop();
76
}
87
};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
"zod": "^3.22.3"
166166
},
167167
"optionalDependencies": {
168-
"@pyroscope/nodejs": "^0.2.9"
168+
"@pyroscope/nodejs": "0.4.5"
169169
},
170170
"resolutions": {
171171
"jquery": "^3.6.4",

0 commit comments

Comments
 (0)