{"_id":"@dovyih/dubbo-nacos-register","_rev":"4-baea16bda6353a6d19e43ef65fd6327d","time":{"0.0.1":"2020-03-28T03:46:36.606Z","created":"2020-03-28T03:51:18.429Z","0.2.0-alpha.1":"2020-03-28T03:51:18.860Z","modified":"2022-04-05T05:31:11.455Z"},"name":"@dovyih/dubbo-nacos-register","dist-tags":{"latest":"0.2.0-alpha.1"},"versions":{"0.2.0-alpha.1":{"name":"@dovyih/dubbo-nacos-register","description":"apache/dubbo-js nacos registr impl.","version":"0.2.0-alpha.1","main":"dist/nacos.js","scripts":{"lint":"eslint --ext .ts --fix src/","test":"jest","prepublishOnly":"rm -fr dsit && yarn build","build":"tsc --build tsconfig.json"},"repository":{"type":"git","url":"git+https://github.com/yidafu/dubbo-nacos-register.git"},"author":{"name":"yidafu","url":"dov yih"},"license":"Apache-2.0","bugs":{"url":"https://github.com/yidafu/dubbo-nacos-register/issues"},"homepage":"https://github.com/yidafu/dubbo-nacos-register#readme","lint-staged":{"*.{ts,tsx}":["eslint --fix","git add"],"*.{css,scss}":["stylelint --fix","git add"]},"husky":{"hooks":{"pre-commit":"lint-staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"devDependencies":{"@commitlint/cli":"^8.3.5","@commitlint/config-conventional":"^8.3.4","@types/debug":"^4.1.5","@types/jest":"^25.1.4","@types/js-to-java":"^2.4.0","@types/node":"^13.9.5","@typescript-eslint/eslint-plugin":"2.7.0","@typescript-eslint/parser":"2.7.0","babel-eslint":"10.0.3","commitlint":"^8.3.5","eslint":"6.6.0","eslint-config-airbnb":"14.1.0","eslint-plugin-import":"2.18.2","eslint-plugin-jsx-a11y":"6.2.3","eslint-plugin-lean-imports":"0.3.3","eslint-plugin-react":"7.14.3","husky":"^4.2.3","jest":"^25.1.0","stylelint":"7.12.0","stylelint-config-standard":"16.0.0","stylelint-processor-html":"1.0.0","ts-jest":"^25.2.1","ts-node":"^8.6.2","typescript":"3.7.2"},"dependencies":{"debug":"^4.1.1","nacos-naming":"^2.0.0"},"peerDependencies":{"@dovyih/dubbo-js":"^3.0.0-rc.8"},"keywords":["nacos","nacos-register","dubbo"],"gitHead":"a90c019e6c6eb911534902c9b0ddaf823a184e24","_id":"@dovyih/dubbo-nacos-register@0.2.0-alpha.1","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-AbiZJ3ntKe0VPcBwdG9TpzPDHNwTyddToWxiG0uuc2y+yx/7XNyAmVQKoFmaFvcTGpTovzcWwx4zls23W298cw==","shasum":"155c49ad1aa7493e54eaf2204603831a181f86d6","tarball":"https://registry.npmjs.org/@dovyih/dubbo-nacos-register/-/dubbo-nacos-register-0.2.0-alpha.1.tgz","fileCount":19,"unpackedSize":33095,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefsm3CRA9TVsSAnZWagAAumgP/2guAvM2+XASBc9HM6pB\nQLJ3rYx3NHU3tPqP1Y2r4A2Brgmp2pPyPF5Mbmk534S7FY5IuImxZWv7OCMG\nnHNpvxLgoCYNMEO2eXT258/oPqDy9fnA0bcG7c6lZ64B8hiAG1N+cSGeLEwj\nOjbLt4/NUC6P98cpya2acf+opgaUHWAW3KHYzIJYqG/A4Muie7bnCGo5dJ3p\nJE8eywWm4V/JB5Wm4Pu/eEpSL1OBnA9Ye5I7pTI0NX4wZvg8jgKgpk4OVavN\nDM5BBV4Nes1tU98X1N0ipa0gjahNrTjlDqdJ0Ylqk93InLDwKpNKI8IUtlNn\n6AIg56O4l1hqaQXOAv1kwwQjG5PyN7PixPj8bTbOVXGfhBoGtoyRvhcI0HU/\nE4cEncrcRVSQbV5NW+oMQCJzgmaQB680phOfmR5L89hNY+R3mWADlrYYlqsc\nStPa0cBCGdJp705jUNF6ois44bhAQ8y55YJ0HhnBKjBQRUfCs2TpIIHwUV7d\nksHhdCW+/jQKVFBEFPNltZ8G/aY2SnpV53fO5JdbXe1Ah6NUYozypqx9kTC1\nqcV9NLrN76jIEq/bNprmjhFWM86SX1S950DbdjMWU5Igz6TUCbkbJkIWEXS0\nsAgbBTQxfpr9ZSHuSXSrLzkDJTigPzQkZyMlSLhXvHzQL/76NYPldmsP8DvX\nldob\r\n=JB+z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoBWzIcVzKUrvo/t9F1AtSMSLhcszc4lFfj+TOdWbNsAiB39TQxqsL5WbUdrc+/HkkqDpc3ZVN2oFFMPwZhS8tqrg=="}]},"maintainers":[{"name":"dov-yih","email":"2633867280@qq.com"}],"_npmUser":{"name":"dov-yih","email":"2633867280@qq.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dubbo-nacos-register_0.2.0-alpha.1_1585367478650_0.7986800037913415"},"_hasShrinkwrap":false}},"maintainers":[{"name":"dov-yih","email":"2633867280@qq.com"}],"description":"apache/dubbo-js nacos registr impl.","homepage":"https://github.com/yidafu/dubbo-nacos-register#readme","keywords":["nacos","nacos-register","dubbo"],"repository":{"type":"git","url":"git+https://github.com/yidafu/dubbo-nacos-register.git"},"author":{"name":"yidafu","url":"dov yih"},"bugs":{"url":"https://github.com/yidafu/dubbo-nacos-register/issues"},"license":"Apache-2.0","readme":"# @dovyih/dubbo-nacos-register\n\napache/dubbo-js nacos registr impl.\n\n## usage\n\n```js\nconst { Dubbo, java, setting } = require('@dovyih/dubbo-js');\nconst nacos = require('./dist/nacos').default;\n\nsetting\n  .match('dev.yidafu.auncel.user.center.api.EchoService', {\n    version: '0.0.0',\n  });\n\nconst echoProvider = dubbo =>\n  dubbo.proxyService({\n    dubboInterface: 'dev.yidafu.auncel.user.center.api.EchoService',\n    version: '0.0.0',\n    methods: {\n      echo(name) {\n        return [java.String(name)];\n      },\n    },\n  });\n\nconst service = {\n  echoProvider,\n};\nconst dubbo = new Dubbo({\n  application: { name: 'node-dubbo' },\n  register: nacos({\n    logger: console,\n    serverList: '101.37.29.47:6399',\n    namespace: 'public',\n  }),\n  dubboSetting: setting,\n  service,\n});\n\n(async () => {\n  const { res, err } = await dubbo.service.echoProvider.echo('node');\n  console.log('======================================');\n  console.log(res);\n  console.log('======================================');\n})();\n```\n","readmeFilename":"README.md"}