Skip to content

Commit 80e6453

Browse files
🔥 remove readFileSync usage
1 parent 0828af3 commit 80e6453

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/requestwrapper.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ import {
2323
isEmptyObject
2424
} from './helper';
2525
import { PassThrough as readableStream } from 'stream';
26-
import { readFileSync } from 'fs';
27-
import { join } from 'path';
2826

29-
const pkgPath = join(__dirname, '../package.json');
30-
const pkg = JSON.parse(readFileSync(pkgPath).toString('utf-8'));
27+
const pkgPath = require('../package.json');
3128
const isBrowser = typeof window === 'object';
3229

3330
/**

0 commit comments

Comments
 (0)