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

@awesome-cordova-library/device

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awesome-cordova-library/device - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

29

lib/index.js

@@ -89,9 +89,13 @@ "use strict";

var offset;
if ((offset = userAgent.indexOf('Edge')) !== -1) {
if (userAgent.indexOf('Edge') !== -1) {
offset = userAgent.indexOf('Edge');
returnVal = getModel ? 'Edge' : userAgent.substring(offset + 5);
}
else if ((offset = userAgent.indexOf('Chrome')) !== -1) {
else if (userAgent.indexOf('Chrome') !== -1) {
offset = userAgent.indexOf('Chrome');
returnVal = getModel ? 'Chrome' : userAgent.substring(offset + 7);
}
else if ((offset = userAgent.indexOf('Safari')) !== -1) {
else if (userAgent.indexOf('Safari') !== -1) {
offset = userAgent.indexOf('Safari');
console.log(offset);
if (getModel) {

@@ -102,3 +106,4 @@ returnVal = 'Safari';

returnVal = userAgent.substring(offset + 7);
if ((offset = userAgent.indexOf('Version')) !== -1) {
if (userAgent.indexOf('Version') !== -1) {
offset = userAgent.indexOf('Version');
returnVal = userAgent.substring(offset + 8);

@@ -108,14 +113,22 @@ }

}
else if ((offset = userAgent.indexOf('Firefox')) !== -1) {
else if (userAgent.indexOf('Firefox') !== -1) {
offset = userAgent.indexOf('Firefox');
returnVal = getModel ? 'Firefox' : userAgent.substring(offset + 8);
}
else if ((offset = userAgent.indexOf('MSIE')) !== -1) {
else if (userAgent.indexOf('MSIE') !== -1) {
offset = userAgent.indexOf('MSIE');
returnVal = getModel ? 'MSIE' : userAgent.substring(offset + 5);
}
else if ((offset = userAgent.indexOf('Trident')) !== -1) {
else if (userAgent.indexOf('Trident') !== -1) {
offset = userAgent.indexOf('Trident');
returnVal = getModel ? 'MSIE' : '11';
}
if ((offset = returnVal.indexOf(';')) !== -1 || (offset = returnVal.indexOf(' ')) !== -1) {
if (returnVal.indexOf(';') !== -1) {
offset = returnVal.indexOf(';');
returnVal = returnVal.substring(0, offset);
}
else if (returnVal.indexOf(' ') !== -1) {
offset = returnVal.indexOf(' ');
returnVal = returnVal.substring(0, offset);
}
return returnVal;

@@ -122,0 +135,0 @@ };

{
"name": "@awesome-cordova-library/device",
"version": "1.0.0",
"version": "1.0.1",
"description": "This plugin defines a global device object, which describes the device's hardware and software. Although the object is in the global scope, it is not available until after the deviceready event.",

@@ -49,3 +49,3 @@ "main": "lib/index.js",

"lint": "tslint -p tsconfig.json",
"repo:publish": "npm publish --access public"
"repo:publish": "npm run build; npm publish --access public"
},

@@ -52,0 +52,0 @@ "directories": {

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