@backstage/backend-defaults 0.3.3-next.0 → 0.3.3

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__httpauth",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/httpAuth.cjs.js",
5
5
  "types": "../dist/httpAuth.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__httprouter",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/httpRouter.cjs.js",
5
5
  "types": "../dist/httpRouter.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__lifecycle",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/lifecycle.cjs.js",
5
5
  "types": "../dist/lifecycle.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__logger",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/logger.cjs.js",
5
5
  "types": "../dist/logger.d.ts"
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "description": "Backend defaults used by Backstage backend apps",
5
5
  "backstage": {
6
6
  "role": "node-library"
@@ -74,11 +74,6 @@
74
74
  "types": "./dist/rootConfig.d.ts",
75
75
  "default": "./dist/rootConfig.cjs.js"
76
76
  },
77
- "./rootHealth": {
78
- "require": "./dist/rootHealth.cjs.js",
79
- "types": "./dist/rootHealth.d.ts",
80
- "default": "./dist/rootHealth.cjs.js"
81
- },
82
77
  "./rootHttpRouter": {
83
78
  "require": "./dist/rootHttpRouter.cjs.js",
84
79
  "types": "./dist/rootHttpRouter.d.ts",
@@ -127,7 +122,6 @@
127
122
  "logger",
128
123
  "permissions",
129
124
  "rootConfig",
130
- "rootHealth",
131
125
  "rootHttpRouter",
132
126
  "rootLifecycle",
133
127
  "rootLogger",
@@ -150,19 +144,19 @@
150
144
  "@aws-sdk/client-s3": "^3.350.0",
151
145
  "@aws-sdk/credential-providers": "^3.350.0",
152
146
  "@aws-sdk/types": "^3.347.0",
153
- "@backstage/backend-app-api": "^0.7.9-next.0",
154
- "@backstage/backend-common": "^0.23.2-next.0",
147
+ "@backstage/backend-app-api": "^0.7.9",
148
+ "@backstage/backend-common": "^0.23.2",
155
149
  "@backstage/backend-dev-utils": "^0.1.4",
156
- "@backstage/backend-plugin-api": "^0.6.21-next.0",
150
+ "@backstage/backend-plugin-api": "^0.6.21",
157
151
  "@backstage/cli-common": "^0.1.14",
158
152
  "@backstage/config": "^1.2.0",
159
153
  "@backstage/config-loader": "^1.8.1",
160
154
  "@backstage/errors": "^1.2.4",
161
- "@backstage/integration": "^1.13.0-next.0",
155
+ "@backstage/integration": "^1.12.0",
162
156
  "@backstage/integration-aws-node": "^0.1.12",
163
- "@backstage/plugin-auth-node": "^0.4.16-next.0",
164
- "@backstage/plugin-events-node": "^0.3.7-next.0",
165
- "@backstage/plugin-permission-node": "^0.7.32-next.0",
157
+ "@backstage/plugin-auth-node": "^0.4.16",
158
+ "@backstage/plugin-events-node": "^0.3.7",
159
+ "@backstage/plugin-permission-node": "^0.7.32",
166
160
  "@backstage/types": "^1.1.1",
167
161
  "@google-cloud/storage": "^7.0.0",
168
162
  "@keyv/memcache": "^1.3.5",
@@ -216,9 +210,9 @@
216
210
  },
217
211
  "devDependencies": {
218
212
  "@aws-sdk/util-stream-node": "^3.350.0",
219
- "@backstage/backend-plugin-api": "^0.6.21-next.0",
220
- "@backstage/backend-test-utils": "^0.4.3-next.0",
221
- "@backstage/cli": "^0.26.10-next.0",
213
+ "@backstage/backend-plugin-api": "^0.6.21",
214
+ "@backstage/backend-test-utils": "^0.4.3",
215
+ "@backstage/cli": "^0.26.10",
222
216
  "@types/http-errors": "^2.0.0",
223
217
  "@types/morgan": "^1.9.0",
224
218
  "@types/node-forge": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__permissions",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/permissions.cjs.js",
5
5
  "types": "../dist/permissions.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__rootconfig",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/rootConfig.cjs.js",
5
5
  "types": "../dist/rootConfig.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__roothttprouter",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/rootHttpRouter.cjs.js",
5
5
  "types": "../dist/rootHttpRouter.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__rootlifecycle",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/rootLifecycle.cjs.js",
5
5
  "types": "../dist/rootLifecycle.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__rootlogger",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/rootLogger.cjs.js",
5
5
  "types": "../dist/rootLogger.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__scheduler",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/scheduler.cjs.js",
5
5
  "types": "../dist/scheduler.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__urlreader",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/urlReader.cjs.js",
5
5
  "types": "../dist/urlReader.d.ts"
6
6
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-defaults__userinfo",
3
- "version": "0.3.3-next.0",
3
+ "version": "0.3.3",
4
4
  "main": "../dist/userInfo.cjs.js",
5
5
  "types": "../dist/userInfo.d.ts"
6
6
  }
@@ -1,40 +0,0 @@
1
- 'use strict';
2
-
3
- var backendPluginApi = require('@backstage/backend-plugin-api');
4
-
5
- class DefaultRootHealthService {
6
- constructor(options) {
7
- this.options = options;
8
- options.lifecycle.addStartupHook(() => {
9
- this.#isRunning = true;
10
- });
11
- options.lifecycle.addShutdownHook(() => {
12
- this.#isRunning = false;
13
- });
14
- }
15
- #isRunning = false;
16
- async getLiveness() {
17
- return { status: 200, payload: { status: "ok" } };
18
- }
19
- async getReadiness() {
20
- if (!this.#isRunning) {
21
- return {
22
- status: 503,
23
- payload: { message: "Backend has not started yet", status: "error" }
24
- };
25
- }
26
- return { status: 200, payload: { status: "ok" } };
27
- }
28
- }
29
- const rootHealthServiceFactory = backendPluginApi.createServiceFactory({
30
- service: backendPluginApi.coreServices.rootHealth,
31
- deps: {
32
- lifecycle: backendPluginApi.coreServices.rootLifecycle
33
- },
34
- async factory({ lifecycle }) {
35
- return new DefaultRootHealthService({ lifecycle });
36
- }
37
- });
38
-
39
- exports.rootHealthServiceFactory = rootHealthServiceFactory;
40
- //# sourceMappingURL=rootHealth.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rootHealth.cjs.js","sources":["../src/entrypoints/rootHealth/rootHealthServiceFactory.ts"],"sourcesContent":["/*\n * Copyright 2024 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 RootHealthService,\n RootLifecycleService,\n coreServices,\n createServiceFactory,\n} from '@backstage/backend-plugin-api';\n\n/** @internal */\nexport class DefaultRootHealthService implements RootHealthService {\n #isRunning = false;\n\n constructor(readonly options: { lifecycle: RootLifecycleService }) {\n options.lifecycle.addStartupHook(() => {\n this.#isRunning = true;\n });\n options.lifecycle.addShutdownHook(() => {\n this.#isRunning = false;\n });\n }\n\n async getLiveness(): Promise<{ status: number; payload?: any }> {\n return { status: 200, payload: { status: 'ok' } };\n }\n\n async getReadiness(): Promise<{ status: number; payload?: any }> {\n if (!this.#isRunning) {\n return {\n status: 503,\n payload: { message: 'Backend has not started yet', status: 'error' },\n };\n }\n\n return { status: 200, payload: { status: 'ok' } };\n }\n}\n\n/**\n * @public\n */\nexport const rootHealthServiceFactory = createServiceFactory({\n service: coreServices.rootHealth,\n deps: {\n lifecycle: coreServices.rootLifecycle,\n },\n async factory({ lifecycle }) {\n return new DefaultRootHealthService({ lifecycle });\n },\n});\n"],"names":["createServiceFactory","coreServices"],"mappings":";;;;AAwBO,MAAM,wBAAsD,CAAA;AAAA,EAGjE,YAAqB,OAA8C,EAAA;AAA9C,IAAA,IAAA,CAAA,OAAA,GAAA,OAAA,CAAA;AACnB,IAAQ,OAAA,CAAA,SAAA,CAAU,eAAe,MAAM;AACrC,MAAA,IAAA,CAAK,UAAa,GAAA,IAAA,CAAA;AAAA,KACnB,CAAA,CAAA;AACD,IAAQ,OAAA,CAAA,SAAA,CAAU,gBAAgB,MAAM;AACtC,MAAA,IAAA,CAAK,UAAa,GAAA,KAAA,CAAA;AAAA,KACnB,CAAA,CAAA;AAAA,GACH;AAAA,EATA,UAAa,GAAA,KAAA,CAAA;AAAA,EAWb,MAAM,WAA0D,GAAA;AAC9D,IAAA,OAAO,EAAE,MAAQ,EAAA,GAAA,EAAK,SAAS,EAAE,MAAA,EAAQ,MAAO,EAAA,CAAA;AAAA,GAClD;AAAA,EAEA,MAAM,YAA2D,GAAA;AAC/D,IAAI,IAAA,CAAC,KAAK,UAAY,EAAA;AACpB,MAAO,OAAA;AAAA,QACL,MAAQ,EAAA,GAAA;AAAA,QACR,OAAS,EAAA,EAAE,OAAS,EAAA,6BAAA,EAA+B,QAAQ,OAAQ,EAAA;AAAA,OACrE,CAAA;AAAA,KACF;AAEA,IAAA,OAAO,EAAE,MAAQ,EAAA,GAAA,EAAK,SAAS,EAAE,MAAA,EAAQ,MAAO,EAAA,CAAA;AAAA,GAClD;AACF,CAAA;AAKO,MAAM,2BAA2BA,qCAAqB,CAAA;AAAA,EAC3D,SAASC,6BAAa,CAAA,UAAA;AAAA,EACtB,IAAM,EAAA;AAAA,IACJ,WAAWA,6BAAa,CAAA,aAAA;AAAA,GAC1B;AAAA,EACA,MAAM,OAAA,CAAQ,EAAE,SAAA,EAAa,EAAA;AAC3B,IAAA,OAAO,IAAI,wBAAA,CAAyB,EAAE,SAAA,EAAW,CAAA,CAAA;AAAA,GACnD;AACF,CAAC;;;;"}
@@ -1,9 +0,0 @@
1
- import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
2
- import { RootHealthService } from '@backstage/backend-plugin-api';
3
-
4
- /**
5
- * @public
6
- */
7
- declare const rootHealthServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<RootHealthService, "root">;
8
-
9
- export { rootHealthServiceFactory };
@@ -1,6 +0,0 @@
1
- {
2
- "name": "@backstage/backend-defaults__roothealth",
3
- "version": "0.3.3-next.0",
4
- "main": "../dist/rootHealth.cjs.js",
5
- "types": "../dist/rootHealth.d.ts"
6
- }