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

hal-browser

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hal-browser - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

8

changelog.md

@@ -0,1 +1,9 @@

0.6.1 (2018-11-01)
==================
* Some clients default to sending `Accept: */*`. For those clients we want to
not automatically convert to `text/html`. This fixes the default output for
Curl and Fetch.
0.6.0 (2018-10-12)

@@ -2,0 +10,0 @@ ==================

7

dist/index.js

@@ -119,4 +119,7 @@ "use strict";

//
// This is useful if the client submitted a lower q= score for text/html
if (ctx.accepts('text/html', ...exports.supportedContentTypes) === 'text/html') {
// This is useful if the client submitted a lower q= score for text/html.
//
// In addition, we also want to make sure that requests for */* result in
// the original contenttype. Users have to explicitly request text/html.
if (ctx.accepts(...exports.supportedContentTypes, 'text/html') === 'text/html') {
await html_index_1.default(ctx, newOptions);

@@ -123,0 +126,0 @@ }

{
"name": "hal-browser",
"version": "0.6.0",
"version": "0.6.1",
"description": "A HAL browser middleware",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

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