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

@backstage/plugin-search-backend-node

Package Overview
Dependencies
Maintainers
4
Versions
1077
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstage/plugin-search-backend-node - npm Package Compare versions

Comparing version 0.0.0-nightly-202192122645 to 0.0.0-nightly-202192322437

8

CHANGELOG.md
# @backstage/plugin-search-backend-node
## 0.0.0-nightly-202192322437
### Patch Changes
- a369f19e7e: Handle special case when filter array has single value optimizing Lunr search behaviour.
- Updated dependencies
- @backstage/search-common@0.0.0-nightly-202192322437
## 0.4.2

@@ -4,0 +12,0 @@

3

dist/index.cjs.js

@@ -156,6 +156,7 @@ 'use strict';

if (filters) {
Object.entries(filters).forEach(([field, value]) => {
Object.entries(filters).forEach(([field, fieldValue]) => {
if (!q.allFields.includes(field)) {
throw new Error(`unrecognised field ${field}`);
}
const value = Array.isArray(fieldValue) && fieldValue.length === 1 ? fieldValue[0] : fieldValue;
if (["string", "number", "boolean"].includes(typeof value)) {

@@ -162,0 +163,0 @@ q.term(lunr__default['default'].tokenizer(value == null ? void 0 : value.toString()), {

{
"name": "@backstage/plugin-search-backend-node",
"description": "A library for Backstage backend plugins that want to interact with the search backend plugin",
"version": "0.0.0-nightly-202192122645",
"version": "0.0.0-nightly-202192322437",
"main": "dist/index.cjs.js",

@@ -23,3 +23,3 @@ "types": "dist/index.d.ts",

"dependencies": {
"@backstage/search-common": "^0.0.0-nightly-202192122645",
"@backstage/search-common": "^0.0.0-nightly-202192322437",
"winston": "^3.2.1",

@@ -30,4 +30,4 @@ "lunr": "^2.3.9",

"devDependencies": {
"@backstage/backend-common": "^0.0.0-nightly-202192122645",
"@backstage/cli": "^0.0.0-nightly-202192122645"
"@backstage/backend-common": "^0.0.0-nightly-202192322437",
"@backstage/cli": "^0.0.0-nightly-202192322437"
},

@@ -34,0 +34,0 @@ "files": [

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