New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cacheable-response

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheable-response - npm Package Compare versions

Comparing version

to
1.10.2

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [1.10.2](https://github.com/Kikobeats/cacheable-response/compare/v1.10.1...v1.10.2) (2020-01-22)
### Bug Fixes
* exclude force from key ([2fdb19f](https://github.com/Kikobeats/cacheable-response/commit/2fdb19f93345636960e79ad0f87b61f898ca4287)), closes [#37](https://github.com/Kikobeats/cacheable-response/issues/37)
### [1.10.1](https://github.com/Kikobeats/cacheable-response/compare/v1.10.0...v1.10.1) (2020-01-18)

@@ -7,0 +14,0 @@

4

index.js

@@ -25,3 +25,5 @@ 'use strict'

const { origin } = new URL(url)
const baseKey = normalizeUrl(url)
const baseKey = normalizeUrl(url, {
removeQueryParameters: ['force', /^utm_\w+/i]
})
return baseKey.replace(origin, '').replace('/?', '')

@@ -28,0 +30,0 @@ }

@@ -5,3 +5,3 @@ {

"homepage": "https://nicedoc.io/Kikobeats/cacheable-response",
"version": "1.10.1",
"version": "1.10.2",
"main": "index.js",

@@ -8,0 +8,0 @@ "author": {