From ce0cf0282aa8dff2362e03c316f4e5aedfb6e5e9 Mon Sep 17 00:00:00 2001 From: Noah Gordon Date: Wed, 30 Aug 2017 15:35:02 +0000 Subject: [PATCH 1/6] Support browsers identified as 'Mobile Safari' --- index.js | 2 +- test.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 5b77b2b..bbbeddf 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ function getBrowserName(agent) { return 'ie_mob'; } else if (agent.browser.name === 'Opera Mobi') { return 'op_mob'; - } else if (agent.browser.name === 'Safari' && agent.os.name === 'iOS') { + } else if ((agent.browser.name === 'Safari' || agent.browser.name === 'Mobile Safari') && agent.os.name === 'iOS') { return 'ios_saf'; } else if (agent.browser.name === 'UCBrowser') { return 'and_uc'; diff --git a/test.js b/test.js index 8c8ec0e..7244aa5 100644 --- a/test.js +++ b/test.js @@ -87,6 +87,11 @@ describe('isBrowserSupported()', function () { { userAgent: 'Googlebot/2.1 (+http://www.google.com/bot.html)', expected: false + }, + { + userAgent: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_1 like Mac OS X) AppleWebKit/603.1.30 (KHTML, like Gecko) Version/10.0 Mobile/14E304 Safari/602.1', + selections: 'iOS >= 10', + expected: true } ]; From 19446f83f343897f637a9519c25affd196796c3f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 25 Oct 2018 16:05:18 +0000 Subject: [PATCH 2/6] Upgrade browserslist --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 992a550..8ca1a71 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "version" ], "dependencies": { - "browserslist": "^2.3.3", + "browserslist": "^4.3.3", "ua-parser-js": "^0.7.14" }, "devDependencies": { From 1b7bf23fcc38100d27dcafca8b5e19bdd9d5cc47 Mon Sep 17 00:00:00 2001 From: Jason Calabrese Date: Wed, 13 Feb 2019 15:31:10 -0800 Subject: [PATCH 3/6] use browserlist 4.4.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8ca1a71..de07753 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "version" ], "dependencies": { - "browserslist": "^4.3.3", + "browserslist": "^4.4.1", "ua-parser-js": "^0.7.14" }, "devDependencies": { From ecb6891e4241a5da7599ccaa97a1b4bca062bcc8 Mon Sep 17 00:00:00 2001 From: Jason Calabrese Date: Wed, 30 Oct 2019 15:31:34 +0000 Subject: [PATCH 4/6] bump browserlist to 4.7.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index de07753..bec6afa 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "version" ], "dependencies": { - "browserslist": "^4.4.1", + "browserslist": "^4.7.2", "ua-parser-js": "^0.7.14" }, "devDependencies": { From f4f347c96f74965447c2e377ba31298746cb48ac Mon Sep 17 00:00:00 2001 From: Todd Mohney Date: Mon, 13 Jan 2020 18:43:41 +0000 Subject: [PATCH 5/6] Upgrading browserslist package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bec6afa..0e3f644 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "version" ], "dependencies": { - "browserslist": "^4.7.2", + "browserslist": "4.8.3", "ua-parser-js": "^0.7.14" }, "devDependencies": { From 0f3a3f0b7a948461a6d5e4dce3b62bb1c16aff4e Mon Sep 17 00:00:00 2001 From: Jason Calabrese Date: Mon, 2 Mar 2020 19:16:32 +0000 Subject: [PATCH 6/6] bump browserlist to 4.9.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0e3f644..0de168e 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "version" ], "dependencies": { - "browserslist": "4.8.3", + "browserslist": "4.9.1", "ua-parser-js": "^0.7.14" }, "devDependencies": {