Socket
Socket
Sign inDemoInstall

yu-judge-browser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yu-judge-browser - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

5

lib/plugin.js

@@ -22,3 +22,6 @@ 'use strict';

wechat: u.indexOf('MicroMessenger') > -1, //是否微信
webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部
webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
uc: u.indexOf('UCBrowser') > -1, //是否UC浏览器
dingding: u.indexOf('DingTalk') > -1, //是否UC浏览器
canOpenTab: u.indexOf('UCBrowser') < 0 && u.indexOf('MicroMessenger') < 0 && u.indexOf('DingTalk') < 0 //判断是否可以新开窗口
};

@@ -25,0 +28,0 @@ }(),

2

package.json
{
"name": "yu-judge-browser",
"version": "1.0.5",
"version": "1.0.6",
"description": "a simple plugin develop cli with babel",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,2 +17,5 @@ const YuJudgeBrowser = {

webApp: u.indexOf('Safari') == -1, //是否web应该程序,没有头部与底部
uc:u.indexOf('UCBrowser') > -1, //是否UC浏览器
dingding:u.indexOf('DingTalk') > -1, //是否UC浏览器
canOpenTab:(u.indexOf('UCBrowser') < 0)&&(u.indexOf('MicroMessenger') < 0)&&(u.indexOf('DingTalk') < 0),//判断是否可以新开窗口
};

@@ -19,0 +22,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