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

http-link-header

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-link-header - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

6

lib/link.js

@@ -88,3 +88,3 @@ 'use strict'

for( var i = 0; i < this.refs.length; i++ ) {
if( this.refs[ i ].rel.toLowerCase() === type ) {
if( typeof this.refs[ i ].rel === 'string' && this.refs[ i ].rel.toLowerCase() === type ) {
links.push( this.refs[ i ] )

@@ -112,3 +112,3 @@ }

for( var i = 0; i < this.refs.length; i++ ) {
if( this.refs[ i ][ attr ].toLowerCase() === value ) {
if( typeof this.refs[ i ][ attr ] === 'string' && this.refs[ i ][ attr ].toLowerCase() === value ) {
links.push( this.refs[ i ] )

@@ -147,3 +147,3 @@ }

for( var i = 0; i < this.refs.length; i++ ) {
if( this.refs[ i ][ attr ].toLowerCase() === value ) {
if( typeof this.refs[ i ][ attr ] === 'string' && this.refs[ i ][ attr ].toLowerCase() === value ) {
return true

@@ -150,0 +150,0 @@ }

{
"name": "http-link-header",
"version": "1.1.2",
"version": "1.1.3",
"description": "Parse & format HTTP link headers according to RFC 8288",

@@ -20,8 +20,7 @@ "author": "Jonas Hermsmeier <jhermsmeier@gmail.com> (https://jhermsmeier.de)",

"benchmark": "node benchmark",
"test": "control test"
"test": "control"
},
"dependencies": {},
"devDependencies": {
"@jhermsmeier/control": "^1.3.0",
"nanobench": "^2.1.1"
"@jhermsmeier/control": "2.0.2",
"nanobench": "2.1.1"
},

@@ -28,0 +27,0 @@ "homepage": "https://github.com/jhermsmeier/node-http-link-header",

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