Skip to content

Commit

Permalink
add .json to require('./package')
Browse files Browse the repository at this point in the history
Fixes issues for people using `got` with webpack. which by default has problems with the missing extension.
  • Loading branch information
janpio committed Jul 26, 2017
1 parent be7b802 commit 63c9804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const isPlainObj = require('is-plain-obj');
const PCancelable = require('p-cancelable');
const pTimeout = require('p-timeout');
const pify = require('pify');
const pkg = require('./package');
const pkg = require('./package.json');

const getMethodRedirectCodes = new Set([300, 301, 302, 303, 304, 305, 307, 308]);
const allMethodRedirectCodes = new Set([300, 303, 307, 308]);
Expand Down

0 comments on commit 63c9804

Please sign in to comment.