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/index.js CHANGED
@@ -925,10 +925,10 @@
925
925
  currentExtensions[0] = () => {}; // notepack defines extension 0 to mean undefined, so use that as the default here
926
926
  currentExtensions[0].noBuffer = true;
927
927
 
928
- let global = typeof globalThis === 'object' ? globalThis : window;
928
+ let glbl = typeof globalThis === 'object' ? globalThis : window;
929
929
  currentExtensions[0x65] = () => {
930
930
  let data = read();
931
- return (global[data[0]] || Error)(data[1])
931
+ return (glbl[data[0]] || Error)(data[1])
932
932
  };
933
933
 
934
934
  currentExtensions[0x69] = (data) => {
@@ -972,7 +972,7 @@
972
972
  if (!typedArrayName)
973
973
  throw new Error('Could not find typed array for code ' + typeCode)
974
974
  // we have to always slice/copy here to get a new ArrayBuffer that is word/byte aligned
975
- return new global[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
975
+ return new glbl[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
976
976
  };
977
977
  currentExtensions[0x78] = () => {
978
978
  let data = read();