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

cignium-hypermedia-client

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cignium-hypermedia-client - npm Package Compare versions

Comparing version 1.16.2 to 1.16.3

2

package.json

@@ -57,3 +57,3 @@ {

},
"version": "1.16.2"
"version": "1.16.3"
}

@@ -14,23 +14,30 @@ const mediaType = 'application/vnd.cignium.resource+json'

if (response.status == 200) {
if (contentType.startsWith(mediaType)) {
return await response.json()
}
if (response.status == 401 && contentType && contentType.startsWith('text/html')) {
location.href = method.toLowerCase() == 'get' ? response.url : location.href
return
}
if (config && config.onRedirect) {
let content = await response.text()
content = config.onRedirect(response.url, content)
if (content) {
content.type = 'html'
content.links = [{ rel: 'self', href: response.url }]
}
return content
if (response.status >= 400 && response.status < 600) {
throw Error(`${response.status}: ${response.statusText}`)
}
if (contentType.startsWith(mediaType)) {
return await response.json()
}
if (config && config.onRedirect) {
let content = await response.text()
content = config.onRedirect(response.url, content)
if (content) {
content.type = 'html'
content.links = [{ rel: 'self', href: response.url }]
}
location.href = response.url
return null
return content
}
throw Error(`${response.status}: ${response.statusText}`)
location.href = response.url
return null
}

Sorry, the diff of this file is too big to display

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