Skip to content

Commit

Permalink
Rename from puppet-hostie -> puppet-service (#118) (#121)
Browse files Browse the repository at this point in the history
* Rename from puppet-hostie -> puppet-service (#118)

* 0.14.1

* specific node version instead of latest

* 0.14.2
  • Loading branch information
huan authored Jan 23, 2021
1 parent 7c66fa8 commit 1e40132
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 26 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node: [latest]
node: [14]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

Expand All @@ -30,9 +30,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: latest
node-version: 14

- name: Install Dependencies
run: npm install
Expand All @@ -52,9 +52,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: latest
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
Expand Down
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# wechaty-puppet-hostie
# wechaty-puppet-service

[![NPM Version](https://badge.fury.io/js/wechaty-puppet-hostie.svg)](https://www.npmjs.com/package/wechaty-puppet-hostie)
[![NPM](https://github.com/Chatie/grpc/workflows/NPM/badge.svg)](https://github.com/wechaty/wechaty-puppet-hostie/actions?query=workflow%3ANPM)
[![NPM Version](https://badge.fury.io/js/wechaty-puppet-service.svg)](https://www.npmjs.com/package/wechaty-puppet-service)
[![NPM](https://github.com/Chatie/grpc/workflows/NPM/badge.svg)](https://github.com/wechaty/wechaty-puppet-service/actions?query=workflow%3ANPM)

![Hostie](https://wechaty.github.io/wechaty-puppet-hostie/images/hostie.png)
![Hostie](https://wechaty.github.io/wechaty-puppet-service/images/hostie.png)

Hostie Puppet for Wechaty

Expand All @@ -20,7 +20,7 @@ Hostie Puppet for Wechaty
import { Wechaty } from 'wechaty'

const wechaty = new Wechaty({
puppet: 'wechaty-puppet-hostie',
puppet: 'wechaty-puppet-service',
puppetOptions: {
token: 'hostie_token'
}
Expand All @@ -43,6 +43,10 @@ WECHATY_PUPPET_HOSTIE_TOKEN=hostie_token node bot.js

### master

### v0.14 (Jan 2021)

Rename from `wechaty-puppet-hostie` to `wechaty-puppet-service` (Issue [#118](https://github.com/wechaty/wechaty-puppet-service/issues/118))

### v0.10.4 (Oct 2020)

1. Add 'grpc.default_authority' to gRPC client option.
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wechaty-puppet-hostie",
"version": "0.13.2",
"description": "Puppet Hostie for Wechaty",
"name": "wechaty-puppet-service",
"version": "0.14.2",
"description": "Puppet Service for Wechaty",
"main": "dist/src/index.js",
"typings": "dist/src/index.d.ts",
"directories": {
Expand All @@ -26,7 +26,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/Chatie/wechaty-puppet-hostie.git"
"url": "git+https://github.com/wechaty/wechaty-puppet-service.git"
},
"keywords": [
"chatie",
Expand All @@ -40,9 +40,9 @@
"author": "Huan LI <zixia@zixia.net>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Chatie/wechaty-puppet-hostie/issues"
"url": "https://github.com/wechaty/wechaty-puppet-service/issues"
},
"homepage": "https://github.com/Chatie/wechaty-puppet-hostie#readme",
"homepage": "https://github.com/wechaty/wechaty-puppet-service#readme",
"devDependencies": {
"@chatie/eslint-config": "^0.12.1",
"@chatie/git-scripts": "^0.6.2",
Expand Down
2 changes: 1 addition & 1 deletion src/client/puppet-hostie.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('version()', async (t) => {

/**
* Huan(202003):
* need to setup a test server to provide test token for puppet hostie
* need to setup a test server to provide test token for Puppet Service
*/
test.skip('PuppetHostie restart without problem', async (t) => {
const puppet = new PuppetHostie()
Expand Down
4 changes: 2 additions & 2 deletions src/client/puppet-hostie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export class PuppetHostie extends Puppet {
log.verbose('PuppetHostie', 'start()')

if (!this.options.token) {
throw new Error('wechaty-puppet-hostie: token not found (save token to WECHATY_PUPPET_HOSTIE_TOKEN env var or pass it to puppet options is required.). See: <https://github.com/wechaty/wechaty-puppet-hostie#1-wechaty_puppet_hostie_token>')
throw new Error('wechaty-puppet-service: token not found (save token to WECHATY_PUPPET_HOSTIE_TOKEN env var or pass it to puppet options is required.). See: <https://github.com/wechaty/wechaty-puppet-service#1-wechaty_puppet_hostie_token>')
}

if (this.state.on()) {
Expand Down Expand Up @@ -399,7 +399,7 @@ export class PuppetHostie extends Puppet {
log.verbose('PuppetHostie', 'startGrpcStream() eventStream.on(end)')
})
.on('error', e => {
// https://github.com/wechaty/wechaty-puppet-hostie/issues/16
// https://github.com/wechaty/wechaty-puppet-service/issues/16
log.verbose('PuppetHostie', 'startGrpcStream() eventStream.on(error) %s', e)
const reason = 'startGrpcStream() eventStream.on(error) ' + e
/**
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export { log } from 'wechaty-puppet'
export { VERSION } from './version'

export const GRPC_LIMITATION = {
// https://github.com/wechaty/wechaty-puppet-hostie/issues/86
// https://github.com/wechaty/wechaty-puppet-service/issues/86
// 'grpc.max_receive_message_length': 1024 * 1024 * 150,
// 'grpc.max_send_message_length': 1024 * 1024 * 150,
}
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/smoke-testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {
VERSION,
PuppetHostie,
} from 'wechaty-puppet-hostie'
} from 'wechaty-puppet-service'

async function main () {
if (VERSION === '0.0.0') {
Expand Down
4 changes: 2 additions & 2 deletions tests/integration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test('integration testing', async (t) => {
await hostieServer.start()

/**
* Puppet Hostie Client
* Puppet Service Client
*/
const puppetOptions = {
endpoint: ENDPOINT,
Expand Down Expand Up @@ -81,7 +81,7 @@ test('integration testing', async (t) => {
* Stop
* 1. Puppet in Hostie
* 2. Hostie Service
* 3. Puppet Hostie Client
* 3. Puppet Service Client
*
*/
await puppetHostie.stop()
Expand Down
4 changes: 2 additions & 2 deletions tests/performance.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test.skip('stress testing', async (t) => {
await hostieServer.start()

/**
* Puppet Hostie Client
* Puppet Service Client
*/
const puppetOptions = {
endpoint : ENDPOINT,
Expand Down Expand Up @@ -135,7 +135,7 @@ test.skip('stress testing', async (t) => {
* Stop
* 1. Puppet in Hostie
* 2. Hostie Service
* 3. Puppet Hostie Client
* 3. Puppet Service Client
*
*/
await puppetHostie.stop()
Expand Down

0 comments on commit 1e40132

Please sign in to comment.