Socket
Socket
Sign inDemoInstall

rtc-core

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rtc-core - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

10

detect.js

@@ -72,2 +72,9 @@ /* jshint node: true */

detect.moz = typeof navigator != 'undefined' && !!navigator.mozGetUserMedia;
// Newer Ipad versions cannot be detected just using useragent
// And detect-browser does not plan to implement this feature (ref: https://github.com/DamonOehlman/detect-browser/issues/163)
// Ref: https://stackoverflow.com/questions/9038625/detect-if-device-is-ios/58065241#58065241
const isIosMimic =
navigator && navigator.maxTouchPoints &&
navigator.maxTouchPoints > 2 &&
/MacIntel/.test(navigator.platform);

@@ -78,1 +85,4 @@ // set the browser and browser version

detect.os = browser.os;
if(isIosMimic) {
detect.os = 'iOS';
}

2

package.json
{
"name": "rtc-core",
"description": "Core definitions and functions for the rtc.io suite",
"version": "4.2.0",
"version": "4.3.0",
"dependencies": {

@@ -6,0 +6,0 @@ "detect-browser": "^4.6.0"

@@ -17,2 +17,7 @@ var detect = require('../detect');

t.equal(detect.browser, detect.browser.toLowerCase(), 'browser reported all in lowercase');
});
});
test('OS has been detected', function(t) {
t.plan(1);
t.equal(typeof detect.os, 'string', 'browser value is a string');
});
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