Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-hash

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-hash - npm Package Compare versions

Comparing version 1.0.0-beta.2 to 1.0.0-beta.3

3

package.json
{
"name": "cache-hash",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "Create hash for static resources to break http cache",

@@ -27,2 +27,3 @@ "main": "cache-hash.js",

"assets",
"revision",
"cache bust"

@@ -29,0 +30,0 @@ ],

@@ -6,4 +6,8 @@ module.exports = searchParams

function searchParams(path) {
const url = new URL(path, baseURL)
return url.search + url.hash
try {
const url = new URL(path, baseURL)
return url.search + url.hash
} catch (error) {
return
}
}
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