We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4055d01 + 94cc869 commit ae0d44fCopy full SHA for ae0d44f
lib/definitions/errors.js
@@ -1,6 +1,8 @@
1
import {inspect} from 'util';
2
-import pkg from '../../package.json' assert {type: 'json'};
+import { createRequire } from "node:module";
3
+const require = createRequire(import.meta.url);
4
5
+const pkg = require("../../package.json");
6
const [homepage] = pkg.homepage.split('#');
7
const linkify = (file) => `${homepage}/blob/master/${file}`;
8
const stringify = (object) => inspect(object, {breakLength: Number.POSITIVE_INFINITY, depth: 2, maxArrayLength: 5});
0 commit comments