New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

virsical-jssdk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

virsical-jssdk - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

36

index.js

@@ -11,5 +11,5 @@ ;(function (global, factory) {

const _platform_other = 0;
const _platform_android = 1;
const _platform_ios = 2;
var _platform_other = 0;
var _platform_android = 1;
var _platform_ios = 2;

@@ -31,5 +31,5 @@

return _platform_android;
// }else(!!u.match(/\(i[^;]+;(U;)?CPU.+MacOSX/)){ //ios终端
// return _platform_ios;
} else{// 其他设备
}else if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){
return _platform_ios;
}else{// 其他设备
return _platform_other;

@@ -42,7 +42,9 @@ }

Virsical.config = function(info){
if(getPlatform()==_platform_android){
window.control.config(info.debug, info.client_id, info.client_secret);
isDebugger = info.debug;
} else if(getPlatform()==_platform_ios){
isDebugger = info.debug();
}else if(getPlatform()==_platform_ios){
//TODO ios
window.location.href = 'vsk3browser://config?'+info.debug+'&'+info.client_id+'&'+info.client_secret;
}

@@ -92,3 +94,4 @@ }

// loginTimer = setTimeout(loginTimeout(), login_timeout_during);
if(getPlatform()==_platform_android){

@@ -98,2 +101,3 @@ window.control.login();

//TODO ios
window.location.href = 'vsk3browser://login';
}

@@ -213,2 +217,3 @@ }

workspaceFailCallback = callbackFunction.fail;
if(getPlatform()==_platform_android){

@@ -218,2 +223,3 @@ window.captureqr.scan();

//TODO ios
window.location.href = 'vsk3browser://captureqr';
}

@@ -236,11 +242,2 @@ }

var messageCallback;
Virsical.messageCallback = function (callback) {
messageCallback = callback;
}
function sendMessage(message) {
messageCallback && messageCallback(message);
}
window.configReady = configReady;

@@ -252,7 +249,4 @@ window.configError = configError;

window.captureQRResult = captureQRResult;
window.sendMessage = sendMessage;
return Virsical;
})));
{
"name": "virsical-jssdk",
"version": "0.1.6",
"version": "0.1.7",
"description": "Virsical 3.0 JS SDK",

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

# Virsical 3.0 JS SDK
[![npm](https://img.shields.io/npm/v/virsical-jssdk.svg?maxAge=2592000?style=plastic)](https://www.npmjs.com/package/virsical-jssdk)
![license-mit](https://img.shields.io/badge/license-MIT-42cd00.svg)
## install

@@ -50,2 +53,2 @@ ```npm

});
```
```
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