New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4.4 to 2.4.5

6

HISTORY.md

@@ -6,5 +6,9 @@

## 2.4.5 (2016-02-15)
* fix(smartisan): fixed smartisan device and OS rule. #97.
## 2.4.4 (2016-02-05)
* fix(moto): fixed moto rule. #95.
* fix(moto): fixed moto rule. #95, #96.

@@ -11,0 +15,0 @@ ## 2.4.3 (2016-01-25)

@@ -120,3 +120,10 @@ "use strict";

["hosin", /\bhosin ([a-z0-9]+)/],
["smartisan", /\bsmartisan\b/],
["smartisan",
function(ua) {
if (/\bsmartisan\b/.test(ua)) {
return true;
}
return /sm\-?(\d{3,})/;
}
],
["ephone", /ephone ([a-z0-9]+)/],

@@ -186,3 +193,11 @@ ["佰事讯", /\b(wx9) build/],

const OS = [
["smartisanos", /\bsmartisan os \- ([\d.]+)/],
["smartisanos",
function(ua) {
const m = /\bsmartisan os \- ([\d.]+)/.exec(ua);
if (m) {
return { version: m[1] };
}
return /sm\-?\d{3,}/;
}
],
["meego", /\bmeego\b/],

@@ -189,0 +204,0 @@ ];

2

package.json
{
"name": "detector",
"version": "2.4.4",
"version": "2.4.5",
"description": "The module for detect client-side information.",

@@ -5,0 +5,0 @@ "homepage": "http://spmjs.io/docs/detector/",

@@ -116,2 +116,34 @@ // more rule test.

// 锤子 T1 手机, Smartisan OS, Chrome 浏览器
["Mozilla/5.0 (Linux; Android 4.4.2; SM705 Build/SANFRANCISCO) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/30.0.0.0 Mobile Safari/537.36", {
device: "smartisan/705",
os: "smartisanos/-1",
browser: "chrome/30.0.0.0;30.0.0.0;o",
engine: "webkit/537.36;537.36;o",
}],
// 锤子 T1 手机, Smartisan OS, 原生浏览器
["Mozilla/5.0 (Linux; U; Android 4.2.2; en-us; SM-705 Build/JDQ39) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30", {
device: "smartisan/705",
os: "smartisanos/-1",
browser: "android/4.0;4.0;o",
engine: "webkit/534.30;534.30;o",
}],
// 锤子 T1 手机, Smartisan OS, 原生浏览器 (不知道为什么会带上 Chrome 标记)
["Mozilla/5.0 (Linux; Android 4.4.2; SM705 Build/SANFRANCISCO) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.11 Mobile Safari/537.36", {
device: "smartisan/705",
os: "smartisanos/-1",
browser: "chrome/46.0.2490.11;46.0.2490.11;o",
engine: "webkit/537.36;537.36;o",
}],
// 锤子 T2 手机, Smartisan OS, 微信浏览器
["Mozilla/5.0 (Linux; U; Android 5.1.1; zh-cn; SM801 Build/LMY47V) AppleWebKit/533.1 (KHTML, like Gecko)Version/4.0 MQQBrowser/5.4 TBS/025489 Mobile Safari/533.1 MicroMessenger/6.3.13.49_r4080b63.740 NetType/3gnet Language/zh_CN", {
device: "smartisan/801",
os: "smartisanos/-1",
browser: "micromessenger/6.3.13.49;6.3.13.49;o",
engine: "webkit/533.1;533.1;o",
}],
["Mozilla/5.0 (Linux; Android 4.4.2; XT1033 Build/KXB20.25-1.31) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.136 Mobile Safari/537.36", {

@@ -118,0 +150,0 @@ device: "moto/xt1033",

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