@backstage-community/plugin-npm-backend 1.22.0 → 1.24.0

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,5 +1,27 @@
1
1
  # @backstage-community/plugin-npm-backend
2
2
 
3
+ ## 1.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3f2bb98: Backstage version bump to v1.53.0
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [3f2bb98]
12
+ - @backstage-community/plugin-npm-common@1.24.0
13
+
14
+ ## 1.23.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 2637c7a: Backstage version bump to v1.52.0
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [2637c7a]
23
+ - @backstage-community/plugin-npm-common@1.23.0
24
+
3
25
  ## 1.22.0
4
26
 
5
27
  ### Minor Changes
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "type": "object",
4
+ "properties": {
5
+ "npm": {
6
+ "type": "object",
7
+ "properties": {
8
+ "defaultRegistry": {
9
+ "type": "string",
10
+ "description": "Use another default registry. This automatically enforce usage of the backend.",
11
+ "visibility": "frontend"
12
+ },
13
+ "registries": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string",
20
+ "description": "Registry name"
21
+ },
22
+ "url": {
23
+ "type": "string",
24
+ "description": "Registry base url"
25
+ },
26
+ "token": {
27
+ "type": "string",
28
+ "description": "Registry auth token",
29
+ "visibility": "secret"
30
+ },
31
+ "extraRequestHeaders": {
32
+ "type": "object",
33
+ "additionalProperties": {
34
+ "type": "string"
35
+ },
36
+ "description": "Extra registry headers for non-standard authentification tokens.",
37
+ "deepVisibility": "secret"
38
+ }
39
+ }
40
+ },
41
+ "description": "List of registries that can be used to fetch packages from"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-npm-backend",
3
- "version": "1.22.0",
3
+ "version": "1.24.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "license": "Apache-2.0",
@@ -34,24 +34,24 @@
34
34
  "postpack": "backstage-cli package postpack"
35
35
  },
36
36
  "dependencies": {
37
- "@backstage-community/plugin-npm-common": "^1.22.0",
38
- "@backstage/backend-defaults": "^0.17.1",
39
- "@backstage/backend-plugin-api": "^1.9.1",
37
+ "@backstage-community/plugin-npm-common": "^1.24.0",
38
+ "@backstage/backend-defaults": "^0.17.5",
39
+ "@backstage/backend-plugin-api": "^1.9.3",
40
40
  "@backstage/errors": "^1.3.1",
41
- "@backstage/plugin-catalog-node": "^2.2.1",
41
+ "@backstage/plugin-catalog-node": "^2.2.3",
42
42
  "express": "^4.17.1",
43
43
  "express-promise-router": "^4.1.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@backstage/backend-test-utils": "^1.11.3",
47
- "@backstage/cli": "^0.36.2",
46
+ "@backstage/backend-test-utils": "^1.11.5",
47
+ "@backstage/cli": "^0.36.4",
48
48
  "@types/express": "^4.17.1"
49
49
  },
50
50
  "files": [
51
- "config.d.ts",
51
+ "config.schema.json",
52
52
  "dist"
53
53
  ],
54
- "configSchema": "config.d.ts",
54
+ "configSchema": "config.schema.json",
55
55
  "repository": {
56
56
  "type": "git",
57
57
  "url": "https://github.com/backstage/community-plugins",
package/config.d.ts DELETED
@@ -1,50 +0,0 @@
1
- /*
2
- * Copyright 2024 The Backstage Authors
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- export interface Config {
17
- npm?: {
18
- /**
19
- * Use another default registry. This automatically enforce usage of the backend.
20
- *
21
- * @visibility frontend
22
- */
23
- defaultRegistry?: string;
24
- /**
25
- * List of registries that can be used to fetch packages from
26
- */
27
- registries?: {
28
- /**
29
- * Registry name
30
- */
31
- name?: string;
32
- /**
33
- * Registry base url
34
- */
35
- url?: string;
36
- /**
37
- * Registry auth token
38
- * @visibility secret
39
- */
40
- token?: string;
41
- /**
42
- * Extra registry headers for non-standard authentification tokens.
43
- * @deepVisibility secret
44
- */
45
- extraRequestHeaders?: {
46
- [key: string]: string;
47
- };
48
- }[];
49
- };
50
- }