Socket
Socket
Sign inDemoInstall

fetch-cookie

Package Overview
Dependencies
Maintainers
1
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.6.0 to 0.7.0

2

index.js

@@ -17,3 +17,3 @@ var denodeify = require('es6-denodeify')(Promise)

return fetch(url, Object.assign(opts, {
headers: Object.assign(opts.headers || {}, { cookie: cookie })
headers: Object.assign(opts.headers || {}, (cookie ? { cookie: cookie } : {}))
}))

@@ -20,0 +20,0 @@ })

{
"name": "fetch-cookie",
"version": "0.6.0",
"version": "0.7.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