@backstage/plugin-catalog-backend-module-puppetdb 0.1.5-next.0 → 0.1.5-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/alpha/package.json +1 -1
- package/config.d.ts +4 -5
- package/dist/alpha.cjs.js +1 -1
- package/dist/alpha.cjs.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-backend-module-puppetdb
|
|
2
2
|
|
|
3
|
+
## 0.1.5-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 629cbd194a87: Use `coreServices.rootConfig` instead of `coreService.config`
|
|
8
|
+
- 4b82382ed8c2: Fixed invalid configuration schema. The configuration schema may be more strict as a result.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @backstage/backend-common@0.19.2-next.1
|
|
11
|
+
- @backstage/plugin-catalog-node@1.4.1-next.1
|
|
12
|
+
- @backstage/backend-plugin-api@0.6.0-next.1
|
|
13
|
+
- @backstage/backend-tasks@0.5.5-next.1
|
|
14
|
+
- @backstage/catalog-model@1.4.1
|
|
15
|
+
- @backstage/config@1.0.8
|
|
16
|
+
- @backstage/errors@1.2.1
|
|
17
|
+
- @backstage/types@1.1.0
|
|
18
|
+
|
|
3
19
|
## 0.1.5-next.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/alpha/package.json
CHANGED
package/config.d.ts
CHANGED
|
@@ -46,9 +46,8 @@ export interface Config {
|
|
|
46
46
|
*/
|
|
47
47
|
schedule?: TaskScheduleDefinition;
|
|
48
48
|
}
|
|
49
|
-
|
|
|
50
|
-
string
|
|
51
|
-
{
|
|
49
|
+
| {
|
|
50
|
+
[name: string]: {
|
|
52
51
|
/**
|
|
53
52
|
* (Required) The base URL of PuppetDB API instance.
|
|
54
53
|
*/
|
|
@@ -61,8 +60,8 @@ export interface Config {
|
|
|
61
60
|
* (Optional) Task schedule definition for the refresh.
|
|
62
61
|
*/
|
|
63
62
|
schedule?: TaskScheduleDefinition;
|
|
64
|
-
}
|
|
65
|
-
|
|
63
|
+
};
|
|
64
|
+
};
|
|
66
65
|
};
|
|
67
66
|
};
|
|
68
67
|
}
|
package/dist/alpha.cjs.js
CHANGED
|
@@ -20,7 +20,7 @@ const catalogModulePuppetDbEntityProvider = backendPluginApi.createBackendModule
|
|
|
20
20
|
env.registerInit({
|
|
21
21
|
deps: {
|
|
22
22
|
catalog: alpha.catalogProcessingExtensionPoint,
|
|
23
|
-
config: backendPluginApi.coreServices.
|
|
23
|
+
config: backendPluginApi.coreServices.rootConfig,
|
|
24
24
|
logger: backendPluginApi.coreServices.logger,
|
|
25
25
|
scheduler: backendPluginApi.coreServices.scheduler
|
|
26
26
|
},
|
package/dist/alpha.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModulePuppetDbEntityProvider.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { PuppetDbEntityProvider } from '../providers/PuppetDbEntityProvider';\n\n/**\n * Registers the `PuppetDbEntityProvider` with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModulePuppetDbEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'puppetDbEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n config: coreServices.
|
|
1
|
+
{"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModulePuppetDbEntityProvider.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { loggerToWinstonLogger } from '@backstage/backend-common';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { PuppetDbEntityProvider } from '../providers/PuppetDbEntityProvider';\n\n/**\n * Registers the `PuppetDbEntityProvider` with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModulePuppetDbEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'puppetDbEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n catalog: catalogProcessingExtensionPoint,\n config: coreServices.rootConfig,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ catalog, config, logger, scheduler }) {\n catalog.addEntityProvider(\n PuppetDbEntityProvider.fromConfig(config, {\n logger: loggerToWinstonLogger(logger),\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","catalogProcessingExtensionPoint","coreServices","PuppetDbEntityProvider","loggerToWinstonLogger"],"mappings":";;;;;;;;;;;;;;;AA6BO,MAAM,sCAAsCA,oCAAoB,CAAA;AAAA,EACrE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,wBAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQC,6BAAa,CAAA,UAAA;AAAA,QACrB,QAAQA,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,SAAS,MAAQ,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNC,6CAAA,CAAuB,WAAW,MAAQ,EAAA;AAAA,YACxC,MAAA,EAAQC,oCAAsB,MAAM,CAAA;AAAA,YACpC,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-backend-module-puppetdb",
|
|
3
3
|
"description": "A Backstage catalog backend module that helps integrate towards PuppetDB",
|
|
4
|
-
"version": "0.1.5-next.
|
|
4
|
+
"version": "0.1.5-next.1",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -45,13 +45,13 @@
|
|
|
45
45
|
"postpack": "backstage-cli package postpack"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@backstage/backend-common": "^0.19.2-next.
|
|
49
|
-
"@backstage/backend-plugin-api": "^0.
|
|
50
|
-
"@backstage/backend-tasks": "^0.5.5-next.
|
|
48
|
+
"@backstage/backend-common": "^0.19.2-next.1",
|
|
49
|
+
"@backstage/backend-plugin-api": "^0.6.0-next.1",
|
|
50
|
+
"@backstage/backend-tasks": "^0.5.5-next.1",
|
|
51
51
|
"@backstage/catalog-model": "^1.4.1",
|
|
52
52
|
"@backstage/config": "^1.0.8",
|
|
53
53
|
"@backstage/errors": "^1.2.1",
|
|
54
|
-
"@backstage/plugin-catalog-node": "^1.4.1-next.
|
|
54
|
+
"@backstage/plugin-catalog-node": "^1.4.1-next.1",
|
|
55
55
|
"@backstage/types": "^1.1.0",
|
|
56
56
|
"lodash": "^4.17.21",
|
|
57
57
|
"luxon": "^3.0.0",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"winston": "^3.2.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@backstage/backend-test-utils": "^0.
|
|
64
|
-
"@backstage/cli": "^0.22.10-next.
|
|
63
|
+
"@backstage/backend-test-utils": "^0.2.0-next.1",
|
|
64
|
+
"@backstage/cli": "^0.22.10-next.1",
|
|
65
65
|
"@types/lodash": "^4.14.151",
|
|
66
66
|
"msw": "^1.0.0"
|
|
67
67
|
},
|