Socket
Socket
Sign inDemoInstall

@backstage/plugin-search-backend-node

Package Overview
Dependencies
Maintainers
4
Versions
1021
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-202151722113 to 0.0.0-nightly-202152321757

9

CHANGELOG.md
# @backstage/plugin-search-backend-node
## 0.0.0-nightly-202151722113
## 0.0.0-nightly-202152321757
### Patch Changes
- 9c8ea7e24: Handle errors in collators and decorators and log them.
- 7e7cec86a: Fixed bug preventing searches with filter values containing `:` from returning results.
## 0.2.1
### Patch Changes
- 14aad6113: Improved the quality of free text searches in LunrSearchEngine.

@@ -8,0 +15,0 @@

@@ -48,6 +48,17 @@ 'use strict';

this.logger.debug(`Collating documents for ${type} via ${this.collators[type].collate.constructor.name}`);
let documents = await this.collators[type].collate.execute();
let documents;
try {
documents = await this.collators[type].collate.execute();
} catch (e) {
this.logger.error(`Collating documents for ${type} via ${this.collators[type].collate.constructor.name} failed: ${e}`);
return;
}
for (let i = 0; i < decorators.length; i++) {
this.logger.debug(`Decorating ${type} documents via ${decorators[i].constructor.name}`);
documents = await decorators[i].execute(documents);
try {
documents = await decorators[i].execute(documents);
} catch (e) {
this.logger.error(`Decorating ${type} documents via ${decorators[i].constructor.name} failed: ${e}`);
return;
}
}

@@ -110,2 +121,5 @@ if (!documents || documents.length === 0) {

if (["string", "number", "boolean"].includes(typeof value)) {
if (typeof value === "string") {
return ` +${field}:${value.replace(":", "\\:")}`;
}
return ` +${field}:${value}`;

@@ -112,0 +126,0 @@ }

6

package.json
{
"name": "@backstage/plugin-search-backend-node",
"version": "0.0.0-nightly-202151722113",
"version": "0.0.0-nightly-202152321757",
"main": "dist/index.cjs.js",

@@ -28,4 +28,4 @@ "types": "dist/index.d.ts",

"devDependencies": {
"@backstage/backend-common": "^0.0.0-nightly-202151722113",
"@backstage/cli": "^0.0.0-nightly-202151722113"
"@backstage/backend-common": "^0.8.3",
"@backstage/cli": "^0.0.0-nightly-202152321757"
},

@@ -32,0 +32,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