Socket
Socket
Sign inDemoInstall

cacheable-request

Package Overview
Dependencies
9
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "cacheable-request",
"version": "4.0.0",
"version": "4.0.1",
"description": "Wrap native HTTP requests with RFC compliant cache support",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -38,4 +38,7 @@ 'use strict';

} else {
const [pathname, ...search] = (opts.path || '').split('?');
url = normalizeUrlObject({ ...opts, pathname, search: search.join('?') });
const [pathname, ...searchParts] = (opts.path || '').split('?');
const search = searchParts.length > 0 ?
`?${searchParts.join('?')}` :
'';
url = normalizeUrlObject({ ...opts, pathname, search });
}

@@ -42,0 +45,0 @@ opts = {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc