node-fetch-native
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "node-fetch-native", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "", | ||
@@ -16,2 +16,5 @@ "repository": "unjs/node-fetch-native", | ||
"import": "./dist/native.mjs" | ||
}, | ||
"./src/index.js": { | ||
"import": "./dist/index.mjs" | ||
} | ||
@@ -26,9 +29,2 @@ }, | ||
], | ||
"scripts": { | ||
"build": "unbuild", | ||
"lint": "eslint --ext .ts,.js,.mjs,.cjs .", | ||
"prepack": "unbuild", | ||
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish", | ||
"test": "pnpm lint && pnpm build && vitest run" | ||
}, | ||
"devDependencies": { | ||
@@ -44,3 +40,9 @@ "@nuxtjs/eslint-config-typescript": "latest", | ||
}, | ||
"packageManager": "pnpm@7.0.0" | ||
} | ||
"packageManager": "pnpm@7.0.0", | ||
"scripts": { | ||
"build": "unbuild", | ||
"lint": "eslint --ext .ts,.js,.mjs,.cjs .", | ||
"release": "pnpm test && standard-version && git push --follow-tags && pnpm publish", | ||
"test": "pnpm lint && pnpm build && vitest run" | ||
} | ||
} |
# node-fetch-native | ||
[![npm version][npm-version-src]][npm-version-href] | ||
[![npm downloads][npm-downloads-src]][npm-downloads-href] | ||
[![Github Actions][github-actions-src]][github-actions-href] | ||
[![][npm-version-src]][npm-version-href] | ||
[![][github-actions-src]][github-actions-href] | ||
[![][packagephobia-src]][packagephobia-href] | ||
<!-- [![npm downloads][npm-downloads-src]][npm-downloads-href] --> | ||
<!-- [![Codecov][codecov-src]][codecov-href] --> | ||
@@ -10,3 +11,3 @@ | ||
Why this package? | ||
**Why this package?** | ||
@@ -16,6 +17,8 @@ - We can no longer `require('node-fetch')` with latest version. This stopped popular libraries from upgrading and dependency conflicts between `node-fetch@2` and `node-fetch@3`. | ||
✅ Prefer to **native globals** when available (`fetch`, `Blob`, `File`, `FormData`, `Headers`, `Request`, and `Response`) when available (Node.js [experimental fetch](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch)) | ||
**Features:** | ||
✅ Compact build and less install size with **zero dependencies** | ||
✅ Prefer to **native globals** when available (`fetch`, `Blob`, `File`, `FormData`, `Headers`, `Request`, and `Response`) (See Node.js [experimental fetch](https://nodejs.org/dist/latest-v17.x/docs/api/cli.html#--experimental-fetch)) | ||
✅ Compact build and less install size with **zero dependencies** [![][packagephobia-s-src]][packagephobia-s-href] <sup>vs</sup> [![][packagephobia-s-alt-src]][packagephobia-s-alt-href] | ||
✅ Support both **CommonJS** (`require`) and **ESM** (`import`) usage | ||
@@ -25,2 +28,3 @@ | ||
## Usage | ||
@@ -113,12 +117,18 @@ | ||
<!-- Badges --> | ||
[npm-version-src]: https://img.shields.io/npm/v/node-fetch-native?style=flat-square | ||
[npm-version-src]: https://flat.badgen.net/npm/v/node-fetch-native | ||
[npm-version-href]: https://npmjs.com/package/node-fetch-native | ||
[npm-downloads-src]: https://img.shields.io/npm/dm/node-fetch-native?style=flat-square | ||
[npm-downloads-src]: https://flat.badgen.net/npm/dm/node-fetch-native | ||
[npm-downloads-href]: https://npmjs.com/package/node-fetch-native | ||
[github-actions-src]: https://img.shields.io/github/workflow/status/unjs/node-fetch-native/ci/main?style=flat-square | ||
[github-actions-src]: https://flat.badgen.net/github/status/unjs/node-fetch-native/main?style=flat-square | ||
[github-actions-href]: https://github.com/unjs/node-fetch-native/actions?query=workflow%3Aci | ||
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/unjs/node-fetch-native/main?style=flat-square | ||
[codecov-href]: https://codecov.io/gh/unjs/node-fetch-native --> | ||
[packagephobia-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native | ||
[packagephobia-href]: https://packagephobia.com/result?p=node-fetch-native | ||
[packagephobia-s-src]: https://flat.badgen.net/packagephobia/install/node-fetch-native?label=node-fetch-native&scale=.9 | ||
[packagephobia-s-href]: https://packagephobia.com/result?p=node-fetch-native | ||
[packagephobia-s-alt-src]: https://flat.badgen.net/packagephobia/install/node-fetch?label=node-fetch-native&scale=.9 | ||
[packagephobia-s-alt-href]: https://packagephobia.com/result?p=node-fetch |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
554403
131
5