@juzi/wechaty-puppet-service 1.0.19 → 1.0.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juzi/wechaty-puppet-service",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Puppet Service for Wechaty",
5
5
  "type": "module",
6
6
  "exports": {
@@ -65,10 +65,10 @@
65
65
  "why-is-node-running": "^2.2.1"
66
66
  },
67
67
  "peerDependencies": {
68
- "@juzi/wechaty-puppet": "^1.0.22"
68
+ "@juzi/wechaty-puppet": "^1.0.24"
69
69
  },
70
70
  "dependencies": {
71
- "@juzi/wechaty-grpc": "^1.0.13",
71
+ "@juzi/wechaty-grpc": "^1.0.14",
72
72
  "@juzi/wechaty-redux": "^1.0.1",
73
73
  "clone-class": "^1.1.1",
74
74
  "ducks": "^1.0.2",
@@ -444,6 +444,8 @@ class PuppetService extends PUPPET.Puppet {
444
444
  [PUPPET.types.Dirty.Post]: async (_: string) => {},
445
445
  [PUPPET.types.Dirty.Room]: async (id: string) => this._payloadStore.room?.delete(id),
446
446
  [PUPPET.types.Dirty.RoomMember]: async (id: string) => this._payloadStore.roomMember?.delete(id),
447
+ [PUPPET.types.Dirty.Tag]: async (key: string) => this._payloadStore.tag?.delete(key),
448
+ [PUPPET.types.Dirty.TagGroup]: async (id: string) => this._payloadStore.tagGroup?.delete(id),
447
449
  [PUPPET.types.Dirty.Unspecified]: async (id: string) => { throw new Error('Unspecified type with id: ' + id) },
448
450
  }
449
451
 
@@ -2192,6 +2194,7 @@ class PuppetService extends PUPPET.Puppet {
2192
2194
  const payload: PUPPET.payloads.TagGroup = {
2193
2195
  id: grpcPayload.getId(),
2194
2196
  name: grpcPayload.getName(),
2197
+ type: grpcPayload.getType(),
2195
2198
  }
2196
2199
 
2197
2200
  await this._payloadStore.tagGroup?.set(id, payload)
@@ -4,7 +4,7 @@
4
4
  import type { PackageJson } from 'type-fest'
5
5
  export const packageJson: PackageJson = {
6
6
  "name": "@juzi/wechaty-puppet-service",
7
- "version": "1.0.19",
7
+ "version": "1.0.20",
8
8
  "description": "Puppet Service for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {
@@ -69,10 +69,10 @@ export const packageJson: PackageJson = {
69
69
  "why-is-node-running": "^2.2.1"
70
70
  },
71
71
  "peerDependencies": {
72
- "@juzi/wechaty-puppet": "^1.0.22"
72
+ "@juzi/wechaty-puppet": "^1.0.24"
73
73
  },
74
74
  "dependencies": {
75
- "@juzi/wechaty-grpc": "^1.0.13",
75
+ "@juzi/wechaty-grpc": "^1.0.14",
76
76
  "@juzi/wechaty-redux": "^1.0.1",
77
77
  "clone-class": "^1.1.1",
78
78
  "ducks": "^1.0.2",
@@ -1736,6 +1736,7 @@ function puppetImplementation (
1736
1736
  const payload = new grpcPuppet.TagGroupPayload()
1737
1737
  payload.setId(result.id)
1738
1738
  payload.setName(result.name)
1739
+ payload.setType(result.type)
1739
1740
  response.setPayload(payload)
1740
1741
 
1741
1742
  return callback(null, response)