ddm-plugin-dubbo-support 0.0.9 → 0.1.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 +15 -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.0
|
|
664
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"ddm-plugin-dubbo-support","version":"0.1.0","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 */
|
|
@@ -27201,7 +27201,11 @@ class ParamGeneratorDubbo2_7 {
|
|
|
27201
27201
|
}
|
|
27202
27202
|
let data = {};
|
|
27203
27203
|
for (let property in td.properties) {
|
|
27204
|
-
|
|
27204
|
+
let value = td.properties[property];
|
|
27205
|
+
if (value.$ref && !value.type) {
|
|
27206
|
+
value = this.resolveRef(types, value.$ref);
|
|
27207
|
+
}
|
|
27208
|
+
data[property] = this.generateObject(types, value.type);
|
|
27205
27209
|
}
|
|
27206
27210
|
return data;
|
|
27207
27211
|
}
|
|
@@ -27251,6 +27255,15 @@ class ParamGeneratorDubbo2_7 {
|
|
|
27251
27255
|
}
|
|
27252
27256
|
return null;
|
|
27253
27257
|
}
|
|
27258
|
+
resolveRef(obj, path) {
|
|
27259
|
+
// 解析像 "$.types[3].properties.code" 这种路径
|
|
27260
|
+
const parts = path.replace(/^\$\.types/, '').split(/[\.\[\]]/).filter(Boolean);
|
|
27261
|
+
let result = obj;
|
|
27262
|
+
for (const p of parts) {
|
|
27263
|
+
result = result[p];
|
|
27264
|
+
}
|
|
27265
|
+
return result;
|
|
27266
|
+
}
|
|
27254
27267
|
}
|
|
27255
27268
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (new ParamGeneratorDubbo2_7());
|
|
27256
27269
|
|