msgpackr 1.8.4 → 1.8.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "msgpackr",
3
3
  "author": "Kris Zyp",
4
- "version": "1.8.4",
4
+ "version": "1.8.5",
5
5
  "description": "Ultra-fast MessagePack implementation with extensions for records and structured cloning",
6
6
  "license": "MIT",
7
7
  "types": "./index.d.ts",
package/struct.js CHANGED
@@ -384,11 +384,11 @@ function writeStruct(object, target, position, structures, makeRoom, pack, packr
384
384
  case 3:
385
385
  if (recordId >= 0x10000) return 0;
386
386
  target[start] = 0x39;
387
- target.setUint16(start + 1, recordId, true);
387
+ targetView.setUint16(start + 1, recordId, true);
388
388
  break;
389
389
  case 4:
390
390
  if (recordId >= 0x1000000) return 0;
391
- target.setUint32(start, (recordId << 8) + 0x3a, true);
391
+ targetView.setUint32(start, (recordId << 8) + 0x3a, true);
392
392
  break;
393
393
  }
394
394