fetch-cookie

v3.0.1
Decorator for a `fetch` function to support automatic cookies.

build

esbuild src/*.ts --format=esm --outdir=esm && esbuild src/*.ts --format=cjs --outdir=cjs

lint

ts-standard src/*.ts test/*.js

patch-undici

sed -i.old 's/^const forbiddenResponseHeaderNames =.*$/const forbiddenResponseHeaderNames = []/' node_modules/undici/lib/fetch/constants.js

prepack

npm run prepare && npm run lint && npm run type-check && npm test && npm run test-import

prepare

npm run build && npm run type-declarations

test

npm run build && mocha

test-import

node test/cjs/import.js && ts-node test/cjs/import.ts

type-check

tsc -noEmit

type-declarations

tsc --project tsconfig.build.json --declaration --emitDeclarationOnly --outDir esm && cp esm/index.d.ts cjs
npm i fetch-cookie

Metadata

Downloads