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

@appbaseio/autocomplete-suggestions-plugin

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appbaseio/autocomplete-suggestions-plugin - npm Package Compare versions

Comparing version 1.0.16-alpha to 1.0.17-alpha

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## [1.0.17-alpha] - 226-10-2021.
- url field support
- categoryfield support
## [1.0.16-alpha] - 22-10-2021.

@@ -2,0 +6,0 @@

2

package.json
{
"name": "@appbaseio/autocomplete-suggestions-plugin",
"version": "1.0.16-alpha",
"version": "1.0.17-alpha",
"description": "A suggestions plugin for autocomplete-js, backed by appbase client.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -65,2 +65,18 @@ /** @jsx createElement */

}
if (
item.url &&
// check valid url: https://stackoverflow.com/a/43467144/10822996
new RegExp(
"^(https?:\\/\\/)?" + // protocol
"((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|" + // domain name
"((\\d{1,3}\\.){3}\\d{1,3}))" + // OR ip (v4) address
"(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*" + // port and path
"(\\?[;&a-z\\d%_.~+=-]*)?" + // query string
"(\\#[-a-z\\d_]*)?$",
"i"
).test(item.url)
) {
window.open(item.url);
return;
}
setQuery(item.label);

@@ -94,3 +110,3 @@ refresh();

width: "100%",
marginLeft: "5px"
marginLeft: "5px",
}}

@@ -97,0 +113,0 @@ >

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