@tinkoff/user-agent 0.7.99 → 0.7.108

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.
@@ -55,6 +55,7 @@ const BROWSERS_LIST_MAP = {
55
55
  const CHROMIUM_BASED_BROWSERS = [
56
56
  'android browser',
57
57
  'yandex',
58
+ 'blink',
58
59
  'vivaldi' /* , 'chrome webview', 'opera', 'samsung' */,
59
60
  ];
60
61
 
package/lib/constants.js CHANGED
@@ -59,6 +59,7 @@ const BROWSERS_LIST_MAP = {
59
59
  const CHROMIUM_BASED_BROWSERS = [
60
60
  'android browser',
61
61
  'yandex',
62
+ 'blink',
62
63
  'vivaldi' /* , 'chrome webview', 'opera', 'samsung' */,
63
64
  ];
64
65
 
@@ -58,7 +58,8 @@ const satisfies = (userAgent, browserslistConfig, { env = 'defaults', forceMinim
58
58
  // https://github.com/faisalman/ua-parser-js/pull/390
59
59
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#Rendering_engine
60
60
  if (engineName === 'chromium' ||
61
- (engineName.toLowerCase() === 'blink' && CHROMIUM_BASED_BROWSERS.indexOf(browserName) !== -1)) {
61
+ (engineName.toLowerCase() === 'blink' &&
62
+ CHROMIUM_BASED_BROWSERS.indexOf(browserName.toLowerCase()) !== -1)) {
62
63
  browserName = 'chrome';
63
64
  browserVersion = engineVersion || '';
64
65
  }
package/lib/satisfies.js CHANGED
@@ -69,7 +69,8 @@ const satisfies = (userAgent$1, browserslistConfig, { env = 'defaults', forceMin
69
69
  // https://github.com/faisalman/ua-parser-js/pull/390
70
70
  // https://developer.mozilla.org/en-US/docs/Web/HTTP/Browser_detection_using_the_user_agent#Rendering_engine
71
71
  if (engineName === 'chromium' ||
72
- (engineName.toLowerCase() === 'blink' && constants.CHROMIUM_BASED_BROWSERS.indexOf(browserName) !== -1)) {
72
+ (engineName.toLowerCase() === 'blink' &&
73
+ constants.CHROMIUM_BASED_BROWSERS.indexOf(browserName.toLowerCase()) !== -1)) {
73
74
  browserName = 'chrome';
74
75
  browserVersion = engineVersion || '';
75
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinkoff/user-agent",
3
- "version": "0.7.99",
3
+ "version": "0.7.108",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.es.js",
@@ -29,7 +29,7 @@
29
29
  "user-agent-data-types": "^0.3.1"
30
30
  },
31
31
  "peerDependencies": {
32
- "@tramvai/cli": "5.41.2",
32
+ "@tramvai/cli": "5.45.2",
33
33
  "@types/ua-parser-js": "^0.7.33"
34
34
  },
35
35
  "license": "Apache-2.0"