Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(package.json): Corrected main file path in package.json #1274

Merged
merged 9 commits into from Sep 6, 2021
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,11 @@ Changelog

# 2.x release

## v2.6.2

- Fix: used full filename for main in package.json
- Other: pinned all dev dependencies (codecov -> teeny-request had on breaking change)
jimmywarting marked this conversation as resolved.
Show resolved Hide resolved

## v2.6.1

**This is an important security release. It is strongly recommended to update as soon as possible.**
Expand Down
49 changes: 24 additions & 25 deletions package.json
@@ -1,8 +1,8 @@
{
"name": "node-fetch",
"version": "2.6.1",
"version": "2.6.2",
"description": "A light-weight module that brings window.fetch to node.js",
"main": "lib/index",
"main": "lib/index.js",
"browser": "./browser.js",
"module": "lib/index.mjs",
"files": [
Expand Down Expand Up @@ -37,30 +37,29 @@
},
"homepage": "https://github.com/bitinn/node-fetch",
"devDependencies": {
"@ungap/url-search-params": "^0.1.2",
"abort-controller": "^1.1.0",
"abortcontroller-polyfill": "^1.3.0",
"babel-core": "^6.26.3",
"babel-plugin-istanbul": "^4.1.6",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.16.3",
"chai": "^3.5.0",
"chai-as-promised": "^7.1.1",
"chai-iterator": "^1.1.1",
"@ungap/url-search-params": "0.1.2",
"abort-controller": "1.1.0",
"abortcontroller-polyfill": "1.3.0",
"babel-core": "6.26.3",
"babel-plugin-istanbul": "4.1.6",
"babel-preset-env": "1.6.1",
"babel-register": "6.16.3",
"chai": "3.5.0",
"chai-as-promised": "7.1.1",
"chai-iterator": "1.1.1",
"chai-string": "~1.3.0",
"codecov": "^3.3.0",
"cross-env": "^5.2.0",
"form-data": "^2.3.3",
"is-builtin-module": "^1.0.0",
"mocha": "^5.0.0",
"codecov": "3.3.0",
"cross-env": "5.2.0",
"form-data": "2.3.3",
"is-builtin-module": "1.0.0",
"mocha": "5.0.0",
"nyc": "11.9.0",
"parted": "^0.1.1",
"promise": "^8.0.3",
"parted": "0.1.1",
"promise": "8.0.3",
"resumer": "0.0.0",
"rollup": "^0.63.4",
"rollup-plugin-babel": "^3.0.7",
"string-to-arraybuffer": "^1.0.2",
"whatwg-url": "^5.0.0"
},
"dependencies": {}
"rollup": "0.63.4",
"rollup-plugin-babel": "3.0.7",
"string-to-arraybuffer": "1.0.2",
"whatwg-url": "5.0.0"
}
}
6 changes: 1 addition & 5 deletions rollup.config.js
Expand Up @@ -18,10 +18,6 @@ export default {
tweakDefault()
],
external: function (id) {
if (isBuiltin(id)) {
return true;
}
id = id.split('/').slice(0, id[0] === '@' ? 2 : 1).join('/');
return !!require('./package.json').dependencies[id];
return isBuiltin(id);
}
};