fishpi 0.0.13 → 0.0.14

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.
@@ -141,7 +141,8 @@ var ChatRoom = /** @class */ (function () {
141
141
  redpacket_1 = JSON.parse(d.content);
142
142
  if (redpacket_1.msgType !== 'redPacket')
143
143
  return rsp_1;
144
- redpacket_1.recivers = JSON.parse(redpacket_1.recivers);
144
+ if (redpacket_1.recivers)
145
+ redpacket_1.recivers = JSON.parse(redpacket_1.recivers);
145
146
  data[i].content = redpacket_1;
146
147
  }
147
148
  catch (e) { }
@@ -182,7 +183,8 @@ var ChatRoom = /** @class */ (function () {
182
183
  redpacket_2 = JSON.parse(d.content);
183
184
  if (redpacket_2.msgType !== 'redPacket')
184
185
  return rsp_2;
185
- redpacket_2.recivers = JSON.parse(redpacket_2.recivers);
186
+ if (redpacket_2.recivers)
187
+ redpacket_2.recivers = JSON.parse(redpacket_2.recivers);
186
188
  data[i].content = redpacket_2;
187
189
  }
188
190
  catch (e) { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fishpi",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "A Package to use API of fishpi.",
5
5
  "main": "./lib/src/index.js",
6
6
  "files": [