@putout/babel 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/bundle/babel.cjs +7 -7
  2. package/package.json +1 -1
package/bundle/babel.cjs CHANGED
@@ -26218,14 +26218,14 @@ const ansiStyles$1 = assembleStyles$1();
26218
26218
  /* eslint-env browser */
26219
26219
 
26220
26220
  const level$1 = (() => {
26221
- if (navigator.userAgentData) {
26221
+ if (globalThis?.navigator?.userAgentData) {
26222
26222
  const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
26223
26223
  if (brand && brand.version > 93) {
26224
26224
  return 3;
26225
26225
  }
26226
26226
  }
26227
26227
 
26228
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
26228
+ if (/\b(Chrome|Chromium)\//.test(globalThis?.navigator?.userAgent)) {
26229
26229
  return 1;
26230
26230
  }
26231
26231
 
@@ -26846,14 +26846,14 @@ const ansiStyles = assembleStyles();
26846
26846
  /* eslint-env browser */
26847
26847
 
26848
26848
  const level = (() => {
26849
- if (navigator.userAgentData) {
26849
+ if (globalThis?.navigator?.userAgentData) {
26850
26850
  const brand = navigator.userAgentData.brands.find(({brand}) => brand === 'Chromium');
26851
26851
  if (brand && brand.version > 93) {
26852
26852
  return 3;
26853
26853
  }
26854
26854
  }
26855
26855
 
26856
- if (/\b(Chrome|Chromium)\//.test(navigator.userAgent)) {
26856
+ if (/\b(Chrome|Chromium)\//.test(globalThis?.navigator?.userAgent)) {
26857
26857
  return 1;
26858
26858
  }
26859
26859
 
@@ -34499,7 +34499,7 @@ var common = setup$1;
34499
34499
  }
34500
34500
 
34501
34501
  // Internet Explorer and Edge do not support colors.
34502
- if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
34502
+ if (typeof navigator !== 'undefined' && globalThis?.navigator?.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
34503
34503
  return false;
34504
34504
  }
34505
34505
 
@@ -34510,9 +34510,9 @@ var common = setup$1;
34510
34510
  (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
34511
34511
  // Is firefox >= v31?
34512
34512
  // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
34513
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
34513
+ (typeof navigator !== 'undefined' && globalThis?.navigator?.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
34514
34514
  // Double check webkit in userAgent just in case we are in a worker
34515
- (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
34515
+ (typeof navigator !== 'undefined' && globalThis?.navigator?.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
34516
34516
  }
34517
34517
 
34518
34518
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/babel",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "Babel 8 in CommonJS",