hal-browser
Advanced tools
Comparing version 0.8.1 to 0.8.2
Changelog | ||
========= | ||
0.8.2 (2020-01-02) | ||
------------------ | ||
* Support URI templates in the format `{?q1,q2}`. | ||
0.8.1 (2019-11-04) | ||
@@ -5,0 +11,0 @@ ------------------ |
@@ -26,3 +26,3 @@ "use strict"; | ||
// This regex finds blocks like {?foo} | ||
const reg = /{\?[A-Za-z]+}/g; | ||
const reg = /{\?[A-Za-z,]+}/g; | ||
const matches = link.href.match(reg); | ||
@@ -32,7 +32,11 @@ if (matches) { | ||
// Stripping off {? and } | ||
fields.push({ | ||
name: match.slice(2, -1), | ||
value: '', | ||
label: match.slice(2, -1), | ||
}); | ||
const fieldNames = match.slice(2, -1); | ||
// Splitting at ',' | ||
for (const fieldName of fieldNames.split(',')) { | ||
fields.push({ | ||
name: fieldName, | ||
value: '', | ||
label: fieldName, | ||
}); | ||
} | ||
} | ||
@@ -39,0 +43,0 @@ } |
{ | ||
"name": "hal-browser", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"description": "A HAL browser middleware", | ||
@@ -38,3 +38,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@types/chai": "^4.2.3", | ||
"@types/chai": "^4.2.7", | ||
"@types/highlight.js": "^9.12.3", | ||
@@ -44,11 +44,11 @@ "@types/http-link-header": "^1.0.1", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^12.7.9", | ||
"@types/sinon": "^7.5.0", | ||
"@types/node": "^12.12.22", | ||
"@types/sinon": "^7.5.1", | ||
"chai": "^4.2.0", | ||
"mocha": "^6.2.1", | ||
"nyc": "^14.1.1", | ||
"sinon": "^7.5.0", | ||
"ts-node": "^8.4.1", | ||
"tslint": "^5.20.0", | ||
"typescript": "^3.6.3" | ||
"mocha": "^6.2.2", | ||
"nyc": "^15.0.0", | ||
"sinon": "^8.0.2", | ||
"ts-node": "^8.5.4", | ||
"tslint": "^5.20.1", | ||
"typescript": "^3.7.4" | ||
}, | ||
@@ -62,5 +62,5 @@ "types": "dist/", | ||
"dependencies": { | ||
"@curveball/core": "^0.9.1", | ||
"csv-parse": "^4.4.7", | ||
"highlight.js": "^9.15.10", | ||
"@curveball/core": "^0.9.4", | ||
"csv-parse": "^4.8.3", | ||
"highlight.js": "^9.17.1", | ||
"http-link-header": "^1.0.2", | ||
@@ -67,0 +67,0 @@ "markdown-it": "^10.0.0" |
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
100833
1930
Updated@curveball/core@^0.9.4
Updatedcsv-parse@^4.8.3
Updatedhighlight.js@^9.17.1