http-link-header
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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
16979