Socket
Socket
Sign inDemoInstall

fetch-cookie

Package Overview
Dependencies
Maintainers
3
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-cookie - npm Package Compare versions

Comparing version 0.10.1 to 0.11.0

4

index.d.ts
declare namespace c {
interface CookieJar {
getCookieString(currentUrl: string, cb: (err: any, cookies: string) => void): void;
setCookie(cookieString: string, currentUrl: string, cb: (err: any) => void, opts: { ignoreError: boolean }): void;
setCookie(cookieString: string, currentUrl: string, opts: { ignoreError: boolean }, cb: (err: any) => void): void;
}
}
declare function c(fetch: Function, jar?: c.CookieJar, ignoreError?: boolean): Function;
declare function c<T extends Function>(fetch: T, jar?: c.CookieJar, ignoreError?: boolean): T;
export = c;
import { CookieJar } from './';
declare function c(fetch: Function, jar?: CookieJar, ignoreError?: boolean): Function;
declare function c<T extends Function>(fetch: T, jar?: CookieJar, ignoreError?: boolean): T;
export = c;
{
"name": "fetch-cookie",
"version": "0.10.1",
"version": "0.11.0",
"description": "Decorator for a `fetch` function to support automatic cookies.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/valeriangalliat/fetch-cookie",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc