@backstage/plugin-devtools-common 0.1.12-next.1 → 0.1.13
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/dist/index.cjs.js +8 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/permissions.cjs.js +33 -0
- package/dist/permissions.cjs.js.map +1 -0
- package/dist/permissions.esm.js.map +1 -1
- package/dist/types.cjs.js +10 -0
- package/dist/types.cjs.js.map +1 -0
- package/dist/types.esm.js.map +1 -1
- package/package.json +11 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @backstage/plugin-devtools-common
|
|
2
2
|
|
|
3
|
+
## 0.1.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/types@1.2.0
|
|
9
|
+
- @backstage/plugin-permission-common@0.8.2
|
|
10
|
+
|
|
11
|
+
## 0.1.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
- @backstage/plugin-permission-common@0.8.1
|
|
17
|
+
- @backstage/types@1.1.1
|
|
18
|
+
|
|
3
19
|
## 0.1.12-next.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,40 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var types = require('./types.cjs.js');
|
|
4
|
+
var permissions = require('./permissions.cjs.js');
|
|
4
5
|
|
|
5
|
-
var ExternalDependencyStatus = /* @__PURE__ */ ((ExternalDependencyStatus2) => {
|
|
6
|
-
ExternalDependencyStatus2["healthy"] = "Healthy";
|
|
7
|
-
ExternalDependencyStatus2["unhealthy"] = "Unhealthy";
|
|
8
|
-
return ExternalDependencyStatus2;
|
|
9
|
-
})(ExternalDependencyStatus || {});
|
|
10
6
|
|
|
11
|
-
const devToolsAdministerPermission = pluginPermissionCommon.createPermission({
|
|
12
|
-
name: "devtools.administer",
|
|
13
|
-
attributes: { action: "read" }
|
|
14
|
-
});
|
|
15
|
-
const devToolsInfoReadPermission = pluginPermissionCommon.createPermission({
|
|
16
|
-
name: "devtools.info",
|
|
17
|
-
attributes: { action: "read" }
|
|
18
|
-
});
|
|
19
|
-
const devToolsConfigReadPermission = pluginPermissionCommon.createPermission({
|
|
20
|
-
name: "devtools.config",
|
|
21
|
-
attributes: { action: "read" }
|
|
22
|
-
});
|
|
23
|
-
const devToolsExternalDependenciesReadPermission = pluginPermissionCommon.createPermission({
|
|
24
|
-
name: "devtools.external-dependencies",
|
|
25
|
-
attributes: { action: "read" }
|
|
26
|
-
});
|
|
27
|
-
const devToolsPermissions = [
|
|
28
|
-
devToolsAdministerPermission,
|
|
29
|
-
devToolsInfoReadPermission,
|
|
30
|
-
devToolsConfigReadPermission,
|
|
31
|
-
devToolsExternalDependenciesReadPermission
|
|
32
|
-
];
|
|
33
7
|
|
|
34
|
-
exports.ExternalDependencyStatus = ExternalDependencyStatus;
|
|
35
|
-
exports.devToolsAdministerPermission = devToolsAdministerPermission;
|
|
36
|
-
exports.devToolsConfigReadPermission = devToolsConfigReadPermission;
|
|
37
|
-
exports.devToolsExternalDependenciesReadPermission = devToolsExternalDependenciesReadPermission;
|
|
38
|
-
exports.devToolsInfoReadPermission = devToolsInfoReadPermission;
|
|
39
|
-
exports.devToolsPermissions = devToolsPermissions;
|
|
8
|
+
exports.ExternalDependencyStatus = types.ExternalDependencyStatus;
|
|
9
|
+
exports.devToolsAdministerPermission = permissions.devToolsAdministerPermission;
|
|
10
|
+
exports.devToolsConfigReadPermission = permissions.devToolsConfigReadPermission;
|
|
11
|
+
exports.devToolsExternalDependenciesReadPermission = permissions.devToolsExternalDependenciesReadPermission;
|
|
12
|
+
exports.devToolsInfoReadPermission = permissions.devToolsInfoReadPermission;
|
|
13
|
+
exports.devToolsPermissions = permissions.devToolsPermissions;
|
|
40
14
|
//# sourceMappingURL=index.cjs.js.map
|
package/dist/index.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pluginPermissionCommon = require('@backstage/plugin-permission-common');
|
|
4
|
+
|
|
5
|
+
const devToolsAdministerPermission = pluginPermissionCommon.createPermission({
|
|
6
|
+
name: "devtools.administer",
|
|
7
|
+
attributes: { action: "read" }
|
|
8
|
+
});
|
|
9
|
+
const devToolsInfoReadPermission = pluginPermissionCommon.createPermission({
|
|
10
|
+
name: "devtools.info",
|
|
11
|
+
attributes: { action: "read" }
|
|
12
|
+
});
|
|
13
|
+
const devToolsConfigReadPermission = pluginPermissionCommon.createPermission({
|
|
14
|
+
name: "devtools.config",
|
|
15
|
+
attributes: { action: "read" }
|
|
16
|
+
});
|
|
17
|
+
const devToolsExternalDependenciesReadPermission = pluginPermissionCommon.createPermission({
|
|
18
|
+
name: "devtools.external-dependencies",
|
|
19
|
+
attributes: { action: "read" }
|
|
20
|
+
});
|
|
21
|
+
const devToolsPermissions = [
|
|
22
|
+
devToolsAdministerPermission,
|
|
23
|
+
devToolsInfoReadPermission,
|
|
24
|
+
devToolsConfigReadPermission,
|
|
25
|
+
devToolsExternalDependenciesReadPermission
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
exports.devToolsAdministerPermission = devToolsAdministerPermission;
|
|
29
|
+
exports.devToolsConfigReadPermission = devToolsConfigReadPermission;
|
|
30
|
+
exports.devToolsExternalDependenciesReadPermission = devToolsExternalDependenciesReadPermission;
|
|
31
|
+
exports.devToolsInfoReadPermission = devToolsInfoReadPermission;
|
|
32
|
+
exports.devToolsPermissions = devToolsPermissions;
|
|
33
|
+
//# sourceMappingURL=permissions.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permissions.cjs.js","sources":["../src/permissions.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 { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const devToolsAdministerPermission = createPermission({\n name: 'devtools.administer',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsInfoReadPermission = createPermission({\n name: 'devtools.info',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsConfigReadPermission = createPermission({\n name: 'devtools.config',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsExternalDependenciesReadPermission = createPermission({\n name: 'devtools.external-dependencies',\n attributes: { action: 'read' },\n});\n\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":["createPermission"],"mappings":";;;;AAqBO,MAAM,+BAA+BA,uCAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,6BAA6BA,uCAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,+BAA+BA,uCAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,6CAA6CA,uCAAiB,CAAA;AAAA,EACzE,IAAM,EAAA,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAOM,MAAM,mBAAsB,GAAA;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.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 { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const devToolsAdministerPermission = createPermission({\n name: 'devtools.administer',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsInfoReadPermission = createPermission({\n name: 'devtools.info',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsConfigReadPermission = createPermission({\n name: 'devtools.config',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsExternalDependenciesReadPermission = createPermission({\n name: 'devtools.external-dependencies',\n attributes: { action: 'read' },\n});\n\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO
|
|
1
|
+
{"version":3,"file":"permissions.esm.js","sources":["../src/permissions.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 { createPermission } from '@backstage/plugin-permission-common';\n\n/**\n * @public\n */\nexport const devToolsAdministerPermission = createPermission({\n name: 'devtools.administer',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsInfoReadPermission = createPermission({\n name: 'devtools.info',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsConfigReadPermission = createPermission({\n name: 'devtools.config',\n attributes: { action: 'read' },\n});\n\n/**\n * @public\n */\nexport const devToolsExternalDependenciesReadPermission = createPermission({\n name: 'devtools.external-dependencies',\n attributes: { action: 'read' },\n});\n\n/**\n * List of all Devtools permissions\n *\n * @public\n */\nexport const devToolsPermissions = [\n devToolsAdministerPermission,\n devToolsInfoReadPermission,\n devToolsConfigReadPermission,\n devToolsExternalDependenciesReadPermission,\n];\n"],"names":[],"mappings":";;AAqBO,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,qBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,6BAA6B,gBAAiB,CAAA;AAAA,EACzD,IAAM,EAAA,eAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,+BAA+B,gBAAiB,CAAA;AAAA,EAC3D,IAAM,EAAA,iBAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAKM,MAAM,6CAA6C,gBAAiB,CAAA;AAAA,EACzE,IAAM,EAAA,gCAAA;AAAA,EACN,UAAA,EAAY,EAAE,MAAA,EAAQ,MAAO;AAC/B,CAAC;AAOM,MAAM,mBAAsB,GAAA;AAAA,EACjC,4BAAA;AAAA,EACA,0BAAA;AAAA,EACA,4BAAA;AAAA,EACA;AACF;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var ExternalDependencyStatus = /* @__PURE__ */ ((ExternalDependencyStatus2) => {
|
|
4
|
+
ExternalDependencyStatus2["healthy"] = "Healthy";
|
|
5
|
+
ExternalDependencyStatus2["unhealthy"] = "Unhealthy";
|
|
6
|
+
return ExternalDependencyStatus2;
|
|
7
|
+
})(ExternalDependencyStatus || {});
|
|
8
|
+
|
|
9
|
+
exports.ExternalDependencyStatus = ExternalDependencyStatus;
|
|
10
|
+
//# sourceMappingURL=types.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.cjs.js","sources":["../src/types.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 { JsonValue } from '@backstage/types';\n\n/** @public */\nexport type Endpoint = {\n name: string;\n type: string;\n target: string;\n};\n\n/** @public */\nexport type ExternalDependency = {\n name: string;\n type: string;\n target: string;\n status: string;\n error?: string;\n};\n\n/** @public */\nexport type DevToolsInfo = {\n operatingSystem: string;\n resourceUtilization: string;\n nodeJsVersion: string;\n backstageVersion: string;\n dependencies: PackageDependency[];\n};\n\n/** @public */\nexport type PackageDependency = {\n name: string;\n versions: string;\n};\n\n/** @public */\nexport enum ExternalDependencyStatus {\n healthy = 'Healthy',\n unhealthy = 'Unhealthy',\n}\n\n/** @public */\nexport type ConfigInfo = {\n config?: JsonValue;\n error?: ConfigError;\n};\n\n/** @public */\nexport type ConfigError = {\n name: string;\n message: string;\n messages?: string[];\n stack?: string;\n};\n"],"names":["ExternalDependencyStatus"],"mappings":";;AAkDY,IAAA,wBAAA,qBAAAA,yBAAL,KAAA;AACL,EAAAA,0BAAA,SAAU,CAAA,GAAA,SAAA;AACV,EAAAA,0BAAA,WAAY,CAAA,GAAA,WAAA;AAFF,EAAAA,OAAAA,yBAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA;;;;"}
|
package/dist/types.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.esm.js","sources":["../src/types.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 { JsonValue } from '@backstage/types';\n\n/** @public */\nexport type Endpoint = {\n name: string;\n type: string;\n target: string;\n};\n\n/** @public */\nexport type ExternalDependency = {\n name: string;\n type: string;\n target: string;\n status: string;\n error?: string;\n};\n\n/** @public */\nexport type DevToolsInfo = {\n operatingSystem: string;\n resourceUtilization: string;\n nodeJsVersion: string;\n backstageVersion: string;\n dependencies: PackageDependency[];\n};\n\n/** @public */\nexport type PackageDependency = {\n name: string;\n versions: string;\n};\n\n/** @public */\nexport enum ExternalDependencyStatus {\n healthy = 'Healthy',\n unhealthy = 'Unhealthy',\n}\n\n/** @public */\nexport type ConfigInfo = {\n config?: JsonValue;\n error?: ConfigError;\n};\n\n/** @public */\nexport type ConfigError = {\n name: string;\n message: string;\n messages?: string[];\n stack?: string;\n};\n"],"names":["ExternalDependencyStatus"],"mappings":"AAkDY,IAAA,wBAAA,qBAAAA,yBAAL,KAAA;AACL,EAAAA,0BAAA,SAAU,CAAA,GAAA,SAAA
|
|
1
|
+
{"version":3,"file":"types.esm.js","sources":["../src/types.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 { JsonValue } from '@backstage/types';\n\n/** @public */\nexport type Endpoint = {\n name: string;\n type: string;\n target: string;\n};\n\n/** @public */\nexport type ExternalDependency = {\n name: string;\n type: string;\n target: string;\n status: string;\n error?: string;\n};\n\n/** @public */\nexport type DevToolsInfo = {\n operatingSystem: string;\n resourceUtilization: string;\n nodeJsVersion: string;\n backstageVersion: string;\n dependencies: PackageDependency[];\n};\n\n/** @public */\nexport type PackageDependency = {\n name: string;\n versions: string;\n};\n\n/** @public */\nexport enum ExternalDependencyStatus {\n healthy = 'Healthy',\n unhealthy = 'Unhealthy',\n}\n\n/** @public */\nexport type ConfigInfo = {\n config?: JsonValue;\n error?: ConfigError;\n};\n\n/** @public */\nexport type ConfigError = {\n name: string;\n message: string;\n messages?: string[];\n stack?: string;\n};\n"],"names":["ExternalDependencyStatus"],"mappings":"AAkDY,IAAA,wBAAA,qBAAAA,yBAAL,KAAA;AACL,EAAAA,0BAAA,SAAU,CAAA,GAAA,SAAA;AACV,EAAAA,0BAAA,WAAY,CAAA,GAAA,WAAA;AAFF,EAAAA,OAAAA,yBAAAA;AAAA,CAAA,EAAA,wBAAA,IAAA,EAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-devtools-common",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.13",
|
|
4
4
|
"description": "Common functionalities for the devtools plugin",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "common-library",
|
|
@@ -39,11 +39,18 @@
|
|
|
39
39
|
"test": "backstage-cli package test"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@backstage/plugin-permission-common": "^0.8.
|
|
43
|
-
"@backstage/types": "^1.
|
|
42
|
+
"@backstage/plugin-permission-common": "^0.8.2",
|
|
43
|
+
"@backstage/types": "^1.2.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@backstage/cli": "^0.
|
|
46
|
+
"@backstage/cli": "^0.29.0"
|
|
47
|
+
},
|
|
48
|
+
"typesVersions": {
|
|
49
|
+
"*": {
|
|
50
|
+
"index": [
|
|
51
|
+
"dist/index.d.ts"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
47
54
|
},
|
|
48
55
|
"module": "dist/index.esm.js"
|
|
49
56
|
}
|