@axis-backstage/plugin-readme-backend 0.16.4 → 0.16.5
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 +6 -0
- package/config.schema.json +57 -0
- package/package.json +9 -9
- package/config.d.ts +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"readme": {
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"fileNames": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"description": "Optional list of file names to try. Specifies the file names to try when looking for a README file and which order to use."
|
|
14
|
+
},
|
|
15
|
+
"cacheTtl": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"years": {
|
|
21
|
+
"type": "number"
|
|
22
|
+
},
|
|
23
|
+
"months": {
|
|
24
|
+
"type": "number"
|
|
25
|
+
},
|
|
26
|
+
"weeks": {
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
"days": {
|
|
30
|
+
"type": "number"
|
|
31
|
+
},
|
|
32
|
+
"hours": {
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
"minutes": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
"seconds": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"milliseconds": {
|
|
42
|
+
"type": "number"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"description": "Human friendly durations object."
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"type": "string"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"description": "Optional cache TTL, defaults to 1 hour."
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"description": "Configuration options for the Readme backend plugin"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axis-backstage/plugin-readme-backend",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.5",
|
|
4
4
|
"main": "dist/index.cjs.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,31 +31,31 @@
|
|
|
31
31
|
"postpack": "backstage-cli package postpack"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@backstage/backend-plugin-api": "^1.9.
|
|
35
|
-
"@backstage/catalog-client": "^1.16.
|
|
34
|
+
"@backstage/backend-plugin-api": "^1.9.3",
|
|
35
|
+
"@backstage/catalog-client": "^1.16.1",
|
|
36
36
|
"@backstage/catalog-model": "^1.9.0",
|
|
37
37
|
"@backstage/config": "^1.3.8",
|
|
38
38
|
"@backstage/errors": "^1.3.1",
|
|
39
39
|
"@backstage/integration": "^2.0.3",
|
|
40
|
-
"@backstage/plugin-catalog-node": "^2.2.
|
|
40
|
+
"@backstage/plugin-catalog-node": "^2.2.3",
|
|
41
41
|
"@backstage/types": "^1.2.2",
|
|
42
42
|
"@types/express": "*",
|
|
43
43
|
"express": "^4.17.1",
|
|
44
44
|
"express-promise-router": "^4.1.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@backstage/backend-defaults": "^0.17.
|
|
48
|
-
"@backstage/backend-test-utils": "^1.11.
|
|
49
|
-
"@backstage/cli": "^0.36.
|
|
47
|
+
"@backstage/backend-defaults": "^0.17.6",
|
|
48
|
+
"@backstage/backend-test-utils": "^1.11.5",
|
|
49
|
+
"@backstage/cli": "^0.36.4",
|
|
50
50
|
"@types/supertest": "^2.0.12",
|
|
51
51
|
"msw": "^2.7.3",
|
|
52
52
|
"supertest": "^6.2.4"
|
|
53
53
|
},
|
|
54
54
|
"files": [
|
|
55
55
|
"dist",
|
|
56
|
-
"config.
|
|
56
|
+
"config.schema.json"
|
|
57
57
|
],
|
|
58
|
-
"configSchema": "config.
|
|
58
|
+
"configSchema": "config.schema.json",
|
|
59
59
|
"typesVersions": {
|
|
60
60
|
"*": {
|
|
61
61
|
"package.json": [
|
package/config.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HumanDuration } from '@backstage/types';
|
|
2
|
-
|
|
3
|
-
export interface Config {
|
|
4
|
-
/**
|
|
5
|
-
* Configuration options for the Readme backend plugin
|
|
6
|
-
*/
|
|
7
|
-
readme?: {
|
|
8
|
-
/**
|
|
9
|
-
* Optional list of file names to try. Specifies the file names to try
|
|
10
|
-
* when looking for a README file and which order to use.
|
|
11
|
-
*/
|
|
12
|
-
fileNames?: string[];
|
|
13
|
-
/**
|
|
14
|
-
* Optional cache TTL, defaults to 1 hour.
|
|
15
|
-
*/
|
|
16
|
-
cacheTtl?: HumanDuration | string;
|
|
17
|
-
};
|
|
18
|
-
}
|