We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0828af3 commit 80e6453Copy full SHA for 80e6453
lib/requestwrapper.ts
@@ -23,11 +23,8 @@ import {
23
isEmptyObject
24
} from './helper';
25
import { PassThrough as readableStream } from 'stream';
26
-import { readFileSync } from 'fs';
27
-import { join } from 'path';
28
29
-const pkgPath = join(__dirname, '../package.json');
30
-const pkg = JSON.parse(readFileSync(pkgPath).toString('utf-8'));
+const pkgPath = require('../package.json');
31
const isBrowser = typeof window === 'object';
32
33
/**
0 commit comments