Skip to content

Commit

Permalink
fix node 12
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Jan 23, 2024
1 parent a93c0fb commit 6da3b30
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/three-geese-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"pprof-it": patch
---

Fix node 12
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
"unicorn/switch-case-braces": 0,
"unicorn/prefer-string-replace-all": 0, // Bad suggestion for old targets
"unicorn/prefer-module": 0,
"unicorn/no-process-exit": 0
"unicorn/no-process-exit": 0,
"unicorn/prefer-node-protocol": 0 // cjs
},
"ignorePatterns": ["**/dist/**", "**/node_modules/**", "bin/**", "coverage/**"]
}
7 changes: 3 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ if (!isPreloading()) {
exitError("pprof-it must be required using the --require flag");
}

import assert from "node:assert";
import fs from "node:fs";
import path from "node:path";

import * as pprof from "@datadog/pprof";
import assert from "assert";
import fs from "fs";
import path from "path";
import { Profile } from "pprof-format";
import signalExit from "signal-exit";

Expand Down

0 comments on commit 6da3b30

Please sign in to comment.