@juzi/wechaty-puppet-service 1.0.21 → 1.0.22

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.
@@ -445,7 +445,7 @@ class PuppetService extends PUPPET.Puppet {
445
445
  [PUPPET.types.Dirty.Post]: async (_: string) => {},
446
446
  [PUPPET.types.Dirty.Room]: async (id: string) => this._payloadStore.room?.delete(id),
447
447
  [PUPPET.types.Dirty.RoomMember]: async (id: string) => this._payloadStore.roomMember?.delete(id),
448
- [PUPPET.types.Dirty.Tag]: async (key: string) => this._payloadStore.tag?.delete(key),
448
+ [PUPPET.types.Dirty.Tag]: async (id: string) => this._payloadStore.tag?.delete(id),
449
449
  [PUPPET.types.Dirty.TagGroup]: async (id: string) => this._payloadStore.tagGroup?.delete(id),
450
450
  [PUPPET.types.Dirty.Unspecified]: async (id: string) => { throw new Error('Unspecified type with id: ' + id) },
451
451
  }
@@ -699,6 +699,7 @@ class PuppetService extends PUPPET.Puppet {
699
699
  */
700
700
  weixin : response.getWeixin(),
701
701
  additionalInfo: response.getAdditionalInfo(),
702
+ tags : response.getTagIdsList(),
702
703
  }
703
704
 
704
705
  await this._payloadStore.contact?.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.21",
7
+ "version": "1.0.22",
8
8
  "description": "Puppet Service for Wechaty",
9
9
  "type": "module",
10
10
  "exports": {
@@ -69,7 +69,7 @@ export const packageJson: PackageJson = {
69
69
  "why-is-node-running": "^2.2.1"
70
70
  },
71
71
  "peerDependencies": {
72
- "@juzi/wechaty-puppet": "^1.0.28"
72
+ "@juzi/wechaty-puppet": "^1.0.30"
73
73
  },
74
74
  "dependencies": {
75
75
  "@juzi/wechaty-grpc": "^1.0.17",
@@ -256,6 +256,7 @@ function puppetImplementation (
256
256
  response.setTitle(payload.title || '')
257
257
  response.setDescription(payload.description || '')
258
258
  response.setAdditionalInfo(payload.additionalInfo || '')
259
+ response.setTagIdsList(payload.tags || [])
259
260
 
260
261
  return callback(null, response)
261
262
  } catch (e) {