@backstage/plugin-tech-insights-backend-module-jsonfc
Advanced tools
Comparing version 0.0.0-nightly-20240415030456 to 0.0.0-nightly-20240416021242
# @backstage/plugin-tech-insights-backend-module-jsonfc | ||
## 0.0.0-nightly-20240415030456 | ||
## 0.0.0-nightly-20240416021242 | ||
### Patch Changes | ||
- d5a1fe1: Replaced winston logger with `LoggerService` | ||
- Updated dependencies | ||
- @backstage/backend-common@0.0.0-nightly-20240415030456 | ||
- @backstage/backend-plugin-api@0.0.0-nightly-20240415030456 | ||
- @backstage/plugin-tech-insights-node@0.0.0-nightly-20240415030456 | ||
- @backstage/backend-common@0.0.0-nightly-20240416021242 | ||
- @backstage/plugin-tech-insights-node@0.0.0-nightly-20240416021242 | ||
- @backstage/backend-plugin-api@0.0.0-nightly-20240416021242 | ||
- @backstage/config@1.2.0 | ||
@@ -12,0 +13,0 @@ - @backstage/errors@1.2.4 |
@@ -5,3 +5,2 @@ 'use strict'; | ||
var backendCommon = require('@backstage/backend-common'); | ||
var backendPluginApi = require('@backstage/backend-plugin-api'); | ||
@@ -498,3 +497,3 @@ var pluginTechInsightsNode = require('@backstage/plugin-tech-insights-node'); | ||
"Failed to to validate conditions against JSON schema", | ||
validator.errors | ||
new Error(JSON.stringify(validator.errors)) | ||
); | ||
@@ -678,5 +677,4 @@ return { | ||
async init({ config, logger, techInsights }) { | ||
const winstonLogger = backendCommon.loggerToWinstonLogger(logger); | ||
const factory = JsonRulesEngineFactCheckerFactory.fromConfig(config, { | ||
logger: winstonLogger | ||
logger | ||
}); | ||
@@ -683,0 +681,0 @@ techInsights.setFactCheckerFactory(factory); |
import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api'; | ||
import { LoggerService } from '@backstage/backend-plugin-api'; | ||
import { Config } from '@backstage/config'; | ||
import { TechInsightCheck, TechInsightsStore, TechInsightCheckRegistry, FactChecker, CheckValidationResponse } from '@backstage/plugin-tech-insights-node'; | ||
import { TopLevelCondition, Operator } from 'json-rules-engine'; | ||
import { Logger } from 'winston'; | ||
import { CheckResponse, BooleanCheckResult } from '@backstage/plugin-tech-insights-common'; | ||
@@ -79,3 +79,3 @@ | ||
repository: TechInsightsStore; | ||
logger: Logger; | ||
logger: LoggerService; | ||
checkRegistry?: TechInsightCheckRegistry<any>; | ||
@@ -116,3 +116,3 @@ operators?: Operator[]; | ||
checks: TechInsightJsonRuleCheck[]; | ||
logger: Logger; | ||
logger: LoggerService; | ||
checkRegistry?: TechInsightCheckRegistry<TechInsightJsonRuleCheck>; | ||
@@ -119,0 +119,0 @@ operators?: Operator[]; |
{ | ||
"name": "@backstage/plugin-tech-insights-backend-module-jsonfc", | ||
"version": "0.0.0-nightly-20240415030456", | ||
"version": "0.0.0-nightly-20240416021242", | ||
"backstage": { | ||
@@ -40,8 +40,8 @@ "role": "backend-plugin-module" | ||
"dependencies": { | ||
"@backstage/backend-common": "^0.0.0-nightly-20240415030456", | ||
"@backstage/backend-plugin-api": "^0.0.0-nightly-20240415030456", | ||
"@backstage/backend-common": "^0.0.0-nightly-20240416021242", | ||
"@backstage/backend-plugin-api": "^0.0.0-nightly-20240416021242", | ||
"@backstage/config": "^1.2.0", | ||
"@backstage/errors": "^1.2.4", | ||
"@backstage/plugin-tech-insights-common": "^0.2.12", | ||
"@backstage/plugin-tech-insights-node": "^0.0.0-nightly-20240415030456", | ||
"@backstage/plugin-tech-insights-node": "^0.0.0-nightly-20240416021242", | ||
"@backstage/types": "^1.1.1", | ||
@@ -51,10 +51,9 @@ "ajv": "^8.10.0", | ||
"lodash": "^4.17.21", | ||
"luxon": "^3.0.0", | ||
"winston": "^3.2.1" | ||
"luxon": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@backstage/backend-test-utils": "^0.0.0-nightly-20240415030456", | ||
"@backstage/cli": "^0.0.0-nightly-20240415030456" | ||
"@backstage/backend-test-utils": "^0.0.0-nightly-20240416021242", | ||
"@backstage/cli": "^0.0.0-nightly-20240416021242" | ||
}, | ||
"configSchema": "config.json" | ||
} |
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
11
103267
999