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/node.cjs CHANGED
@@ -981,10 +981,10 @@ const recordDefinition = (id, highByte) => {
981
981
  currentExtensions[0] = () => {}; // notepack defines extension 0 to mean undefined, so use that as the default here
982
982
  currentExtensions[0].noBuffer = true;
983
983
 
984
- let global = typeof globalThis === 'object' ? globalThis : window;
984
+ let glbl = typeof globalThis === 'object' ? globalThis : window;
985
985
  currentExtensions[0x65] = () => {
986
986
  let data = read();
987
- return (global[data[0]] || Error)(data[1])
987
+ return (glbl[data[0]] || Error)(data[1])
988
988
  };
989
989
 
990
990
  currentExtensions[0x69] = (data) => {
@@ -1028,7 +1028,7 @@ currentExtensions[0x74] = (data) => {
1028
1028
  if (!typedArrayName)
1029
1029
  throw new Error('Could not find typed array for code ' + typeCode)
1030
1030
  // we have to always slice/copy here to get a new ArrayBuffer that is word/byte aligned
1031
- return new global[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
1031
+ return new glbl[typedArrayName](Uint8Array.prototype.slice.call(data, 1).buffer)
1032
1032
  };
1033
1033
  currentExtensions[0x78] = () => {
1034
1034
  let data = read();