Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

detector

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detector - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

10

detector.js
var detector = {};
var NA_VERSION = "-1";
var window = this;
var win = this;
var external;

@@ -205,3 +205,3 @@ var re_msie = /\b(?:msie |ie |trident\/[0-9].*rv[ :])([0-9.]+)/;

// 因此只能用 try/catch 而无法使用特性判断。
var security = external.twGetSecurityID(window);
var security = external.twGetSecurityID(win);
var version = external.twGetVersion(security);

@@ -286,3 +286,3 @@

// 有基于 Chromniun 的急速模式和基于 IE 的兼容模式。必须在 IE 的规则之前。
["baidu", /\bba?idubrowser[ \/]([0-9.x]+)/],
["baidu", /\b(?:ba?idubrowser|baiduhd)[ \/]([0-9.x]+)/],
// 后面会做修复版本号,这里只要能识别是 IE 即可。

@@ -490,6 +490,6 @@ ["ie", re_msie],

var vendor = navigator.vendor || "";
external = window.external;
external = win.external;
detector = parse(userAgent + " " + appVersion + " " + vendor);
window.detector = detector;
win.detector = detector;

@@ -496,0 +496,0 @@ }

{
"name": "detector",
"version": "2.1.0",
"version": "2.1.1",
"description": "客户端信息识别模块",

@@ -20,6 +20,6 @@ "homepage": "http://spmjs.io/docs/detector/",

"type": "git",
"url": "https://github.com/aralejs/detector.git"
"url": "https://github.com/hotoo/detector.git"
},
"bugs": {
"url": "https://github.com/aralejs/detector/issues"
"url": "https://github.com/hotoo/detector/issues"
},

@@ -26,0 +26,0 @@ "license": "MIT",

@@ -900,2 +900,9 @@

engine: "webkit/533.1;533.1;o"
}],
["Mozilla/5.0 (iPad; CPU OS 7_1_2 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) BaiduHD/2.6.2 Mobile/10A406 Safari/8536.25",
{
device: "ipad/-1",
os: "ios/7.1.2",
browser: "baidu/2.6.2;2.6.2;o",
engine: "webkit/534.46;534.46;o"
}]

@@ -902,0 +909,0 @@ ];

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc