node-easywechat 3.5.15 → 3.5.16
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/CHANGELOG.md +4 -0
- package/dist/Core/Message.d.ts +1 -1
- package/dist/Core/Message.js +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/Core/Message.d.ts
CHANGED
package/dist/Core/Message.js
CHANGED
|
@@ -26,6 +26,8 @@ class Message {
|
|
|
26
26
|
this.originContent = originContent;
|
|
27
27
|
return new Proxy(this, {
|
|
28
28
|
set: function (obj, key, val) {
|
|
29
|
+
if (typeof key === 'symbol')
|
|
30
|
+
key = key.toString();
|
|
29
31
|
if (typeof obj[key] !== 'undefined') {
|
|
30
32
|
obj[key] = val;
|
|
31
33
|
}
|
|
@@ -35,6 +37,8 @@ class Message {
|
|
|
35
37
|
return true;
|
|
36
38
|
},
|
|
37
39
|
get: function (obj, key) {
|
|
40
|
+
if (typeof key === 'symbol')
|
|
41
|
+
key = key.toString();
|
|
38
42
|
if (typeof obj[key] !== 'undefined') {
|
|
39
43
|
return obj[key];
|
|
40
44
|
}
|