tmc.js 0.3.11 → 0.3.13

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/lib/message.js CHANGED
@@ -131,13 +131,13 @@ class Encoder {
131
131
 
132
132
  if (type === 'number') {
133
133
  switch (true) {
134
- case value > -128 && value < 127:
134
+ case value >= -128 && value < 127:
135
135
  return this.put(Byte).put(value);
136
136
 
137
- case value > -32_768 && value < 32_767:
137
+ case value >= -32_768 && value < 32_767:
138
138
  return this.put(Int16).putShort(value);
139
139
 
140
- case value > -2_147_483_648 && value < 2_147_483_647:
140
+ case value >= -2_147_483_648 && value < 2_147_483_647:
141
141
  return this.put(Int32).putInt(value);
142
142
 
143
143
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmc.js",
3
- "version": "0.3.11",
3
+ "version": "0.3.13",
4
4
  "description": "Events driven and chained Taobao Message Channel(TMC) for NodeJS",
5
5
  "author": "James ZHANG",
6
6
  "license": "MIT",