msgpackr 1.7.0-alpha5 → 1.7.0-alpha6

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/dist/test.js CHANGED
@@ -2134,7 +2134,7 @@
2134
2134
  refPosition += encodeUtf8(target, value, refPosition);
2135
2135
  isNotAscii = refPosition - strStart > strLength;
2136
2136
  }
2137
- if (refOffset < 0x100) {
2137
+ if (refOffset < 0xf6) {
2138
2138
  if (isNotAscii)
2139
2139
  transition = nextTransition.string8 || createTypeTransition(nextTransition, UTF8, 1);
2140
2140
  else
@@ -2242,7 +2242,7 @@
2242
2242
  targetView.setUint32(position, refOffset, true);
2243
2243
  position += 4;
2244
2244
  }
2245
- } else {
2245
+ } else { // null or undefined
2246
2246
  transition = nextTransition.object16 || createTypeTransition(nextTransition, OBJECT_DATA, 2);
2247
2247
  targetView.setInt16(position, value === null ? -10 : -9, true);
2248
2248
  position += 2;