Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

egg-dj-dubbo

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-dj-dubbo - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

app.js

@@ -8,3 +8,3 @@ 'use strict';

constructor() {
let config = app.config.dubboclient;
let config = app.config.dubbo;
config.java = require('js-to-java')

@@ -11,0 +11,0 @@ this.dubboAgent=new nzd(config.dubboAgent);

@@ -6,2 +6,3 @@ 'use strict';

const timeout = this.app.dubboClinent.dubboAgent.dependencies[className].dubboTimeout || this.app.dubboClinent.dubboTimeout || 30000;
//同时发起两个promise,超时抛出错误
return Promise.race([

@@ -8,0 +9,0 @@ this.app.dubboClinent.request(className, method, javaParams),

{
"name": "egg-dj-dubbo",
"version": "1.0.1",
"version": "1.0.2",
"description": "egg plugin to call dubbo service",

@@ -5,0 +5,0 @@ "eggPlugin": {

@@ -31,8 +31,10 @@ # egg-dj-dubbo

application:{name:'demo-provider'},
register:'localhost:2181',
dubboVer:'2.5.4-SNAPSHOT',
root:'dubbo',
registry:'localhost:2181',
dubboVer:'3.5.10',
timeout: 6000, // 整个socket链接超时时间 默认6s
root:'dubbo',// 不填默认dubbo
dependencies:{
Foo:{
interface:'com.alibaba.dubbo.demo.provider.DemoService',
dubboTimeout: 6000 // 单个应用超时时间
},

@@ -39,0 +41,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc