@backstage/plugin-catalog-backend-module-puppetdb 0.0.0-nightly-20230908021043 → 0.0.0-nightly-20230910021151

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 CHANGED
@@ -1,18 +1,34 @@
1
1
  # @backstage/plugin-catalog-backend-module-puppetdb
2
2
 
3
- ## 0.0.0-nightly-20230908021043
3
+ ## 0.0.0-nightly-20230910021151
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - 71114ac50e02: The export for the new backend system has been moved to be the `default` export.
8
+
9
+ For example, if you are currently importing the plugin using the following pattern:
10
+
11
+ ```ts
12
+ import { examplePlugin } from '@backstage/plugin-example-backend';
13
+
14
+ backend.add(examplePlugin);
15
+ ```
16
+
17
+ It should be migrated to this:
18
+
19
+ ```ts
20
+ backend.add(import('@backstage/plugin-example-backend'));
21
+ ```
22
+
7
23
  - Updated dependencies
8
- - @backstage/config@0.0.0-nightly-20230908021043
9
- - @backstage/catalog-model@0.0.0-nightly-20230908021043
10
- - @backstage/errors@0.0.0-nightly-20230908021043
11
- - @backstage/types@0.0.0-nightly-20230908021043
12
- - @backstage/backend-common@0.0.0-nightly-20230908021043
13
- - @backstage/backend-plugin-api@0.0.0-nightly-20230908021043
14
- - @backstage/backend-tasks@0.0.0-nightly-20230908021043
15
- - @backstage/plugin-catalog-node@0.0.0-nightly-20230908021043
24
+ - @backstage/config@0.0.0-nightly-20230910021151
25
+ - @backstage/catalog-model@0.0.0-nightly-20230910021151
26
+ - @backstage/errors@0.0.0-nightly-20230910021151
27
+ - @backstage/types@0.0.0-nightly-20230910021151
28
+ - @backstage/backend-common@0.0.0-nightly-20230910021151
29
+ - @backstage/backend-plugin-api@0.0.0-nightly-20230910021151
30
+ - @backstage/backend-tasks@0.0.0-nightly-20230910021151
31
+ - @backstage/plugin-catalog-node@0.0.0-nightly-20230910021151
16
32
 
17
33
  ## 0.1.8-next.2
18
34
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-puppetdb",
3
- "version": "0.0.0-nightly-20230908021043",
3
+ "version": "0.0.0-nightly-20230910021151",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -1,7 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var backendPluginApi = require('@backstage/backend-plugin-api');
6
4
  var backendCommon = require('@backstage/backend-common');
7
5
  var alpha = require('@backstage/plugin-catalog-node/alpha');
@@ -36,5 +34,5 @@ const catalogModulePuppetDbEntityProvider = backendPluginApi.createBackendModule
36
34
  }
37
35
  });
38
36
 
39
- exports.catalogModulePuppetDbEntityProvider = catalogModulePuppetDbEntityProvider;
37
+ module.exports = catalogModulePuppetDbEntityProvider;
40
38
  //# sourceMappingURL=alpha.cjs.js.map
@@ -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.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;;;;"}
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/dist/alpha.d.ts CHANGED
@@ -7,4 +7,4 @@ import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
7
7
  */
8
8
  declare const catalogModulePuppetDbEntityProvider: () => _backstage_backend_plugin_api.BackendFeature;
9
9
 
10
- export { catalogModulePuppetDbEntityProvider };
10
+ export { catalogModulePuppetDbEntityProvider as default };
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.0.0-nightly-20230908021043",
4
+ "version": "0.0.0-nightly-20230910021151",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -45,14 +45,14 @@
45
45
  "postpack": "backstage-cli package postpack"
46
46
  },
47
47
  "dependencies": {
48
- "@backstage/backend-common": "^0.0.0-nightly-20230908021043",
49
- "@backstage/backend-plugin-api": "^0.0.0-nightly-20230908021043",
50
- "@backstage/backend-tasks": "^0.0.0-nightly-20230908021043",
51
- "@backstage/catalog-model": "^0.0.0-nightly-20230908021043",
52
- "@backstage/config": "^0.0.0-nightly-20230908021043",
53
- "@backstage/errors": "^0.0.0-nightly-20230908021043",
54
- "@backstage/plugin-catalog-node": "^0.0.0-nightly-20230908021043",
55
- "@backstage/types": "^0.0.0-nightly-20230908021043",
48
+ "@backstage/backend-common": "^0.0.0-nightly-20230910021151",
49
+ "@backstage/backend-plugin-api": "^0.0.0-nightly-20230910021151",
50
+ "@backstage/backend-tasks": "^0.0.0-nightly-20230910021151",
51
+ "@backstage/catalog-model": "^0.0.0-nightly-20230910021151",
52
+ "@backstage/config": "^0.0.0-nightly-20230910021151",
53
+ "@backstage/errors": "^0.0.0-nightly-20230910021151",
54
+ "@backstage/plugin-catalog-node": "^0.0.0-nightly-20230910021151",
55
+ "@backstage/types": "^0.0.0-nightly-20230910021151",
56
56
  "lodash": "^4.17.21",
57
57
  "luxon": "^3.0.0",
58
58
  "node-fetch": "^2.6.7",
@@ -60,8 +60,8 @@
60
60
  "winston": "^3.2.1"
61
61
  },
62
62
  "devDependencies": {
63
- "@backstage/backend-test-utils": "^0.0.0-nightly-20230908021043",
64
- "@backstage/cli": "^0.0.0-nightly-20230908021043",
63
+ "@backstage/backend-test-utils": "^0.0.0-nightly-20230910021151",
64
+ "@backstage/cli": "^0.0.0-nightly-20230910021151",
65
65
  "@types/lodash": "^4.14.151",
66
66
  "msw": "^1.0.0"
67
67
  },