hal-browser
Advanced tools
Comparing version 0.7.2 to 0.7.3
@@ -0,1 +1,8 @@ | ||
0.7.3 (2019-04-17) | ||
================== | ||
* Now showing links as 'Deprecated' or 'Gone' if they are marked as such | ||
using [draft-nottingham-link-hint][link-hint]. | ||
0.7.2 (2019-03-26) | ||
@@ -177,1 +184,3 @@ ================== | ||
* First version | ||
[link-hint]: https://tools.ietf.org/html/draft-nottingham-link-hint |
@@ -34,3 +34,14 @@ "use strict"; | ||
} | ||
linkHtml += '<td>' + (link.title ? util_1.h(link.title) : '') + '</td>'; | ||
let linkBadges = ''; | ||
if (link.hints && link.hints.status) { | ||
switch (link.hints.status) { | ||
case 'deprecated': | ||
linkBadges = ' <span class="link-badge status-deprecated">Deprecated</status>'; | ||
break; | ||
case 'gone': | ||
linkBadges = ' <span class="link-badge status-gone">Gone</status>'; | ||
break; | ||
} | ||
} | ||
linkHtml += '<td>' + (link.title ? util_1.h(link.title) : '') + linkBadges + '</td>'; | ||
linkHtml += '</tr>\n'; | ||
@@ -37,0 +48,0 @@ } |
@@ -67,2 +67,5 @@ /** | ||
rendered?: boolean; | ||
hints?: { | ||
status?: 'deprecated' | 'gone'; | ||
}; | ||
}; |
@@ -101,2 +101,3 @@ "use strict"; | ||
templated: link.templated, | ||
hints: link.hints | ||
}); | ||
@@ -103,0 +104,0 @@ } |
{ | ||
"name": "hal-browser", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "A HAL browser middleware", | ||
@@ -43,11 +43,11 @@ "main": "dist/index.js", | ||
"@types/mocha": "^5.2.6", | ||
"@types/node": "^11.12.0", | ||
"@types/sinon": "^7.0.10", | ||
"@types/node": "^11.13.5", | ||
"@types/sinon": "^7.0.11", | ||
"chai": "^4.2.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.3.0", | ||
"sinon": "^7.3.0", | ||
"ts-node": "^8.0.3", | ||
"tslint": "^5.14.0", | ||
"typescript": "^3.3.4000" | ||
"sinon": "^7.3.2", | ||
"ts-node": "^8.1.0", | ||
"tslint": "^5.16.0", | ||
"typescript": "^3.4.3" | ||
}, | ||
@@ -61,3 +61,3 @@ "types": "dist/", | ||
"dependencies": { | ||
"@curveball/core": "^0.8.1", | ||
"@curveball/core": "^0.8.6", | ||
"csv-parse": "^2.5.0", | ||
@@ -64,0 +64,0 @@ "highlight.js": "^9.15.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84747
1442
Updated@curveball/core@^0.8.6