Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hal-browser

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hal-browser - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

6

changelog.md
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 @@ ------------------

16

dist/components/forms/templated-links.js

@@ -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

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