ddm-plugin-dubbo-support 0.1.0 → 0.1.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.
- package/dist/index.js +18 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -661,7 +661,7 @@ class AppProxy {
|
|
|
661
661
|
/***/ ((module) => {
|
|
662
662
|
|
|
663
663
|
"use strict";
|
|
664
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"ddm-plugin-dubbo-support","version":"0.
|
|
664
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"ddm-plugin-dubbo-support","version":"0.1.1","description":"Dubbo-Desktop-Manager插件-支持Dubbo框架","main":"dist/index.js","rendererMain":"dist/renderer.js","i18nMain":"dist/i18n.js","files":["README.md","logo.png","public/**","dist/**","docs/**","java-invoke/**"],"scripts":{"dev":"webpack","gen:keywords":"node ./scripts/gen-keywords.js","prepublishOnly":"npm run gen:keywords","publish":"webpack && npm publish"},"keywords":["Dubbo-Desktop-Manager","ddm-plugin","ddm","dubbo","dubbo service invoke","dubbo manager","dubbo console","dubbo admin","-","-s","-su","-sup","-supp","-suppo","-suppor","-support","b","bb","bbo","bbo-","bbo-s","bbo-su","bbo-sup","bbo-supp","bbo-suppo","bbo-suppor","bbo-support","bo","bo-","bo-s","bo-su","bo-sup","bo-supp","bo-suppo","bo-suppor","bo-support","d","du","dub","dubb","dubbo-","dubbo-s","dubbo-su","dubbo-sup","dubbo-supp","dubbo-suppo","dubbo-suppor","dubbo-support","o","o-","o-s","o-su","o-sup","o-supp","o-suppo","o-suppor","o-support","or","ort","p","po","por","port","pp","ppo","ppor","pport","r","rt","s","su","sup","supp","suppo","suppor","support","t","u","ub","ubb","ubbo","ubbo-","ubbo-s","ubbo-su","ubbo-sup","ubbo-supp","ubbo-suppo","ubbo-suppor","ubbo-support","up","upp","uppo","uppor","upport"],"homepage":"https://github.com/ddm-plugin/ddm-plugin-dubbo-support","author":"qiaolin","license":"Apache 2.0","devDependencies":{"@babel/core":"^7.24.7","babel-cli":"^6.26.0","babel-loader":"^8.2.5","css-loader":"^6.11.0","js-yaml":"^4.1.0","json-bigint":"^1.0.0","moment":"^2.29.1","node-zookeeper-client":"^1.1.1","qs":"^6.11.0","style-loader":"^3.3.4","telnet-stream":"^1.0.5","urijs":"^1.19.11","vue":"^2.6.11","vue-loader":"15.11.1","vue-style-loader":"^4.1.3","vue-template-compiler":"^2.6.11","webpack":"^5.92.1","webpack-cli":"^5.1.4"},"engines":{"ddm":">=1.1.0 <3.0.0"}}');
|
|
665
665
|
|
|
666
666
|
/***/ }),
|
|
667
667
|
/* 16 */
|
|
@@ -4796,6 +4796,7 @@ class ZookeeperDataSource {
|
|
|
4796
4796
|
providerInfo.methods.forEach(method => {
|
|
4797
4797
|
methodList.push({
|
|
4798
4798
|
name: method,
|
|
4799
|
+
methodName: method,
|
|
4799
4800
|
parameterTypes: [],
|
|
4800
4801
|
defaultParameter: "[]",
|
|
4801
4802
|
returnType: null
|
|
@@ -27201,7 +27202,11 @@ class ParamGeneratorDubbo2_7 {
|
|
|
27201
27202
|
}
|
|
27202
27203
|
let data = {};
|
|
27203
27204
|
for (let property in td.properties) {
|
|
27204
|
-
|
|
27205
|
+
let value = td.properties[property];
|
|
27206
|
+
if (value.$ref && !value.type) {
|
|
27207
|
+
value = this.resolveRef(types, value.$ref);
|
|
27208
|
+
}
|
|
27209
|
+
data[property] = this.generateObject(types, value.type);
|
|
27205
27210
|
}
|
|
27206
27211
|
return data;
|
|
27207
27212
|
}
|
|
@@ -27251,6 +27256,15 @@ class ParamGeneratorDubbo2_7 {
|
|
|
27251
27256
|
}
|
|
27252
27257
|
return null;
|
|
27253
27258
|
}
|
|
27259
|
+
resolveRef(obj, path) {
|
|
27260
|
+
// 解析像 "$.types[3].properties.code" 这种路径
|
|
27261
|
+
const parts = path.replace(/^\$\.types/, '').split(/[\.\[\]]/).filter(Boolean);
|
|
27262
|
+
let result = obj;
|
|
27263
|
+
for (const p of parts) {
|
|
27264
|
+
result = result[p];
|
|
27265
|
+
}
|
|
27266
|
+
return result;
|
|
27267
|
+
}
|
|
27254
27268
|
}
|
|
27255
27269
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new ParamGeneratorDubbo2_7());
|
|
27256
27270
|
|
|
@@ -48943,6 +48957,7 @@ class NacosDataSource {
|
|
|
48943
48957
|
providerInfo.methods.forEach(method => {
|
|
48944
48958
|
methodList.push({
|
|
48945
48959
|
name: method,
|
|
48960
|
+
methodName: method,
|
|
48946
48961
|
parameterTypes: null,
|
|
48947
48962
|
defaultParameter: "[]",
|
|
48948
48963
|
returnType: null
|
|
@@ -51760,6 +51775,7 @@ class DubboAdminDataSource {
|
|
|
51760
51775
|
providerInfo.methods.forEach(method => {
|
|
51761
51776
|
methodList.push({
|
|
51762
51777
|
name: method,
|
|
51778
|
+
methodName: method,
|
|
51763
51779
|
parameterTypes: null,
|
|
51764
51780
|
defaultParameter: "[]",
|
|
51765
51781
|
returnType: null
|