@attraccess/plugin-rabbitmq 0.2.0 → 0.2.1-nightly.1210.1
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/dist/index.js
CHANGED
|
@@ -640,6 +640,7 @@ __decorateClass([
|
|
|
640
640
|
__decorateClass([
|
|
641
641
|
(0, import_plugins_backend_sdk3.Auth)(RABBITMQ_MANAGE_PERMISSION),
|
|
642
642
|
(0, import_common4.Put)("users/:mqttServerId/:username"),
|
|
643
|
+
(0, import_plugins_backend_sdk3.NotAnMcpTool)("Credential flow: sets a broker user password"),
|
|
643
644
|
__decorateParam(0, (0, import_common4.Param)("mqttServerId", import_common4.ParseIntPipe)),
|
|
644
645
|
__decorateParam(1, (0, import_common4.Param)("username")),
|
|
645
646
|
__decorateParam(2, (0, import_common4.Body)())
|
package/frontend/{__federation_expose_Plugin--VB44ZV_.js → __federation_expose_Plugin-BPijcVOK.js}
RENAMED
|
@@ -15,10 +15,20 @@ var PluginApiError = class extends Error {
|
|
|
15
15
|
this.name = "PluginApiError";
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Joins validation messages into one text. Messages that already end a sentence are separated by a space, so
|
|
20
|
+
* "The URL is too long." and "The token is short." never become "long., token".
|
|
21
|
+
*/
|
|
22
|
+
function joinErrorMessages(parts) {
|
|
23
|
+
return parts.map((part) => part.trim()).filter(Boolean).reduce((joined, part) => {
|
|
24
|
+
if (joined === "") return part;
|
|
25
|
+
return /[.!?]$/.test(joined) ? `${joined} ${part}` : `${joined}, ${part}`;
|
|
26
|
+
}, "");
|
|
27
|
+
}
|
|
18
28
|
async function toError(res) {
|
|
19
29
|
try {
|
|
20
30
|
const body = await res.json();
|
|
21
|
-
const message = Array.isArray(body.message) ? body.message
|
|
31
|
+
const message = Array.isArray(body.message) ? joinErrorMessages(body.message) : body.message;
|
|
22
32
|
if (message) return new PluginApiError(message, res.status);
|
|
23
33
|
} catch {}
|
|
24
34
|
return new PluginApiError(`Request failed (HTTP ${res.status}).`, res.status);
|
|
@@ -1915,7 +1925,7 @@ function RabbitmqDetailPanels({ mqttServerId }) {
|
|
|
1915
1925
|
}
|
|
1916
1926
|
var RabbitmqPlugin = class {
|
|
1917
1927
|
getPluginName() {
|
|
1918
|
-
return "rabbitmq-plugin@0.2.
|
|
1928
|
+
return "rabbitmq-plugin@0.2.1";
|
|
1919
1929
|
}
|
|
1920
1930
|
getDependencies() {
|
|
1921
1931
|
return [];
|
package/frontend/remoteEntry.js
CHANGED
|
@@ -8,7 +8,7 @@ var exportSet = /* @__PURE__ */ new Set([
|
|
|
8
8
|
]);
|
|
9
9
|
var moduleMap = { "./plugin": () => {
|
|
10
10
|
dynamicLoadingCss(["style.css"], false, "./plugin");
|
|
11
|
-
return __federation_import("./__federation_expose_Plugin
|
|
11
|
+
return __federation_import("./__federation_expose_Plugin-BPijcVOK.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
|
|
12
12
|
} };
|
|
13
13
|
var seen = {};
|
|
14
14
|
var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-rabbitmq",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-nightly.1210.1",
|
|
4
4
|
"description": "Official Attraccess integration for RabbitMQ.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"backend": "^2.0.0-0",
|
|
41
41
|
"frontend": "^2.0.0-0"
|
|
42
42
|
},
|
|
43
|
-
"publishedCommit": "
|
|
43
|
+
"publishedCommit": "8d1147b54f6ec92268145df033fce1a11fb9d926"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "8d1147b54f6ec92268145df033fce1a11fb9d926"
|
|
46
46
|
}
|