msgpackr 1.9.0 → 1.9.1

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
@@ -977,10 +977,10 @@
977
977
  currentExtensions[0] = () => {}; // notepack defines extension 0 to mean undefined, so use that as the default here
978
978
  currentExtensions[0].noBuffer = true;
979
979
 
980
- let global = typeof globalThis === 'object' ? globalThis : window;
980
+ let glbl = typeof globalThis === 'object' ? globalThis : window;
981
981
  currentExtensions[0x65] = () => {
982
982
  let data = read();
983
- return (global[data[0]] || Error)(data[1])
983
+ return (glbl[data[0]] || Error)(data[1])
984
984
  };
985
985
 
986
986
  currentExtensions[0x69] = (data) => {
@@ -1024,7 +1024,7 @@
1024
1024
  if (!typedArrayName)
1025
1025
  throw new Error('Could not find typed array for code ' + typeCode)
1026
1026
  // we have to always slice/copy here to get a new ArrayBuffer that is word/byte aligned
1027
- return new global[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
1027
+ return new glbl[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
1028
1028
  };
1029
1029
  currentExtensions[0x78] = () => {
1030
1030
  let data = read();