passport-twitter-2
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -6,2 +6,6 @@ import { | ||
if (typeof fetch === "undefined") { | ||
globalThis.fetch = (await import("node-fetch")).default; | ||
} | ||
const generateRandomString = (symbols) => { | ||
@@ -8,0 +12,0 @@ const keys = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~'; |
{ | ||
"name": "passport-twitter-2", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Passport Strategy for Twitter API v2", | ||
@@ -24,2 +24,5 @@ "main": "index.js", | ||
}, | ||
"optionalDependencies": { | ||
"node-fetch": "^3.2.10" | ||
}, | ||
"engines": { | ||
@@ -26,0 +29,0 @@ "node": ">=18.0.0" |
@@ -44,3 +44,3 @@ # Passport-Twitter-2 | ||
## Notes | ||
Requires Node 18+, as the module uses Node's built-in Fetch. | ||
For Node.js 18+ you can skip installing node-fetch with `npm i passport-twitter-2--omit=optional` and use built-in fetch instead. | ||
@@ -47,0 +47,0 @@ ## Credits |
6940
122
2
3