hal-browser
Advanced tools
Comparing version
@@ -0,1 +1,9 @@ | ||
0.5.6 (2018-10-04) | ||
================== | ||
* Default button for `describedby` link. It now assumes it's a JSON-Schema, | ||
although time will tell if this is correct. | ||
* Updated dependencies | ||
0.5.5 (2018-09-14) | ||
@@ -2,0 +10,0 @@ ================== |
@@ -111,3 +111,3 @@ "use strict"; | ||
if ((typeof ctx.response.body === 'string' || ctx.response.body instanceof Buffer) && | ||
(ctx.response.type === 'application/json' || /^application\/(.*)\+json$/.test(ctx.response.type))) { | ||
ctx.response.is('json')) { | ||
if (ctx.response.body instanceof Buffer) { | ||
@@ -114,0 +114,0 @@ ctx.response.body = JSON.parse(ctx.response.body.toString('utf-8')); |
@@ -51,2 +51,6 @@ "use strict"; | ||
}, | ||
'describedby': { | ||
showLabel: true, | ||
defaultTitle: 'Schema' | ||
}, | ||
'edit': { | ||
@@ -53,0 +57,0 @@ showLabel: true, |
@@ -18,3 +18,3 @@ "use strict"; | ||
const basePath = await realpath(__dirname + '/../assets'); | ||
const fileName = path_1.default.join(basePath, ctx.request.path.substr(baseUrl.length)); | ||
const fileName = path_1.default.join(basePath, ctx.path.substr(baseUrl.length)); | ||
if (!path_1.default.isAbsolute(fileName)) { | ||
@@ -21,0 +21,0 @@ throw new Error('Invalid path'); |
{ | ||
"name": "hal-browser", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"description": "A HAL browser middleware", | ||
@@ -38,13 +38,13 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.1.4", | ||
"@types/chai": "^4.1.6", | ||
"@types/highlight.js": "^9.12.3", | ||
"@types/markdown-it": "0.0.5", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.9.4", | ||
"@types/node": "^10.11.4", | ||
"@types/parse-link-header": "^1.0.0", | ||
"@types/sinon": "^5.0.2", | ||
"chai": "^4.1.2", | ||
"@types/sinon": "^5.0.3", | ||
"chai": "^4.2.0", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"sinon": "^6.3.2", | ||
"sinon": "^6.3.5", | ||
"ts-node": "^7.0.1", | ||
@@ -61,3 +61,3 @@ "tslint": "^5.11.0", | ||
"dependencies": { | ||
"@curveball/core": "^0.6.0", | ||
"@curveball/core": "^0.7.0", | ||
"csv-parse": "^2.5.0", | ||
@@ -64,0 +64,0 @@ "highlight.js": "^9.12.0", |
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
70544
1.43%65
6.56%1231
1.23%+ Added
- Removed
Updated