Skip to content

Commit ce18617

Browse files
committed
fixed: rename each module name, npm module can not start with @apache
1 parent b2d3191 commit ce18617

38 files changed

+64
-67
lines changed

examples/fullstack/hello-api/server-nacos.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717

1818
import Koa from 'koa'
19-
import { Dubbo } from '@apache/dubbo-consumer'
20-
import { Nacos } from '@apache/dubbo-registry'
19+
import { Dubbo } from 'apache-dubbo-consumer'
20+
import { Nacos } from 'apache-dubbo-registry'
2121
import services from './service'
2222

2323
const dubbo = new Dubbo<typeof services>({

examples/fullstack/hello-api/server-zk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
*/
1717

1818
import Koa from 'koa'
19-
import { Dubbo } from '@apache/dubbo-consumer'
20-
import { Zk } from '@apache/dubbo-registry'
19+
import { Dubbo } from 'apache-dubbo-consumer'
20+
import { Zk } from 'apache-dubbo-registry'
2121
import services from './service'
2222

2323
const dubbo = new Dubbo<typeof services>({

examples/fullstack/hello-api/service/hello-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { Dubbo, TDubboCallResult, java } from '@apache/dubbo-consumer'
18+
import { Dubbo, TDubboCallResult, java } from 'apache-dubbo-consumer'
1919

2020
export interface IHelloService {
2121
hello(name: string): Promise<TDubboCallResult<string>>

examples/fullstack/hello-service/server-nacos.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { DubboService } from '@apache/dubbo-service'
19-
import { Nacos } from '@apache/dubbo-registry'
18+
import { DubboService } from 'apache-dubbo-service'
19+
import { Nacos } from 'apache-dubbo-registry'
2020
import services from './service'
2121

2222
// start

examples/fullstack/hello-service/server-zk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { DubboService } from '@apache/dubbo-service'
19-
import { Zk } from '@apache/dubbo-registry'
18+
import { DubboService } from 'apache-dubbo-service'
19+
import { Zk } from 'apache-dubbo-registry'
2020
import services from './service'
2121

2222
// start

examples/hello-koa/src/dubbo/consumer/dubbo-zookeeper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { Dubbo, dubboSetting } from '@apache/dubbo-consumer'
19-
import { Zk } from '@apache/dubbo-registry'
18+
import { Dubbo, dubboSetting } from 'apache-dubbo-consumer'
19+
import { Zk } from 'apache-dubbo-registry'
2020
import * as services from './service'
2121

2222
/**

examples/hello-koa/src/dubbo/consumer/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { Dubbo, java, TDubboCallResult } from '@apache/dubbo-consumer'
18+
import { Dubbo, java, TDubboCallResult } from 'apache-dubbo-consumer'
1919

2020
//=====================types===========================
2121
export interface IUserResponse {

packages/dubbo-consumer/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@apache/dubbo-consumer",
2+
"name": "apache-dubbo-consumer",
33
"version": "4.0.0",
44
"main": "./lib/index.js",
55
"types": "./lib/typings/index.d.ts",
@@ -24,8 +24,8 @@
2424
"ip": "1.1.5",
2525
"js-to-java": "2.4.0",
2626
"koa-compose": "4.0.0",
27-
"@apache/dubbo-common": "0.0.1",
28-
"@apache/dubbo-serialization": "0.0.1",
29-
"@apache/dubbo-registry": "0.0.1"
27+
"apache-dubbo-common": "^0.0.1",
28+
"apache-dubbo-serialization": "^0.0.2",
29+
"apache-dubbo-registry": "^0.0.2"
3030
}
3131
}

packages/dubbo-consumer/src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import debug from 'debug'
1919
import cfg from './config'
2020
import { id } from './request-id'
21-
import { util } from '@apache/dubbo-common'
21+
import { util } from 'apache-dubbo-common'
2222
import { DubboInvokeTimeout } from './err'
2323
import { IContextRequestParam, IDubboResult, IHessianType } from './types'
2424

packages/dubbo-consumer/src/dubbo-cluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*/
1717

1818
import debug from 'debug'
19-
import { util } from '@apache/dubbo-common'
19+
import { util } from 'apache-dubbo-common'
2020
import DubboTcpTransport from './dubbo-tcp-transport'
2121
import select from './select'
2222
import {

0 commit comments

Comments
 (0)