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

@microsoft/omnichannel-chat-sdk

Package Overview
Dependencies
Maintainers
3
Versions
365
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/omnichannel-chat-sdk - npm Package Compare versions

Comparing version 0.3.1-main.43a229d to 0.3.1-main.577db56

24

lib/telemetry/AriaTelemetry.js

@@ -20,2 +20,7 @@ "use strict";

var settings_2 = require("../config/settings");
var platform_1 = require("../utils/platform");
var Renderer;
(function (Renderer) {
Renderer["ReactNative"] = "ReactNative";
})(Renderer || (Renderer = {}));
var AriaTelemetry = /** @class */ (function () {

@@ -293,3 +298,4 @@ function AriaTelemetry() {

NPMPackagesInfo: JSON.stringify(packagesInfo),
CDNPackagesInfo: JSON.stringify(AriaTelemetry._CDNPackagesInfo)
CDNPackagesInfo: JSON.stringify(AriaTelemetry._CDNPackagesInfo),
PlatformDetails: ''
};

@@ -299,14 +305,23 @@ };

var platformData = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
var platformDetails = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
if (!platform_1.isReactNative()) {
return platformData;
}
try {
var ReactNative = require('react-native'); // eslint-disable-line @typescript-eslint/no-var-requires
var Platform = ReactNative.Platform;
platformDetails.Renderer = Renderer.ReactNative;
platformData.DeviceInfo_OsVersion = Platform.Version;
if (Platform.OS === 'android') {
platformDetails.DeviceInfo_OsVersion = Platform.Version;
if (Platform.OS.toLowerCase() === 'android') {
platformData.DeviceInfo_OsName = 'Android';
platformDetails.DeviceInfo_OsName = 'Android';
}
else if (Platform.OS === 'ios') {
else if (Platform.OS.toLowerCase() === 'ios') {
platformData.DeviceInfo_OsName = 'iOS';
platformDetails.DeviceInfo_OsName = 'iOS';
}
else {
platformData.DeviceInfo_OsName = "" + Platform.OS;
platformDetails.DeviceInfo_OsName = "" + Platform.OS;
}

@@ -320,2 +335,3 @@ /* istanbul ignore next */

}
platformData.PlatformDetails = JSON.stringify(platformDetails); // Fallback if unable to overwrite Aria's default properties
return platformData;

@@ -325,3 +341,3 @@ };

var platformData = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
if (!window) {
if (!platform_1.isBrowser()) {
return platformData;

@@ -328,0 +344,0 @@ }

2

package.json
{
"name": "@microsoft/omnichannel-chat-sdk",
"version": "0.3.1-main.43a229d",
"version": "0.3.1-main.577db56",
"description": "Microsoft Omnichannel Chat SDK",

@@ -5,0 +5,0 @@ "files": [

@@ -75,5 +75,6 @@ # Omnichannel Chat SDK

extraNodeModules: {
...require('node-libs-react-native'),
net: require.resolve('node-libs-react-native/mock/net'),
tls: require.resolve('node-libs-react-native/mock/tls')
...require('node-libs-react-native'),
net: require.resolve('node-libs-react-native/mock/net'),
tls: require.resolve('node-libs-react-native/mock/tls')
}
}

@@ -80,0 +81,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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