Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-uxcam

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-uxcam - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

CHANGELOG.md

@@ -7,2 +7,3 @@ # Changelog

---------- | ---------- | ----------
1.0.2 | 2023-07-13 | Fixed few native methods not working correctly issue
1.0.1 | 2023-03-03 | Added option for configuration and occlusion while startup

@@ -9,0 +10,0 @@ 1.0.0 | 2021-05-24 | First full release

18

index.android.js

@@ -14,3 +14,3 @@ var UXCam = com.uxcam.UXCam

const PLUGIN_NAME = "nativescript";
const PLUGIN_VERSION = "1.0.1";
const PLUGIN_VERSION = "1.0.2";

@@ -221,4 +221,8 @@ export class NSUXCam {

static logEvent(eventName, properties) {
if(typeof properties !== "undefined" || properties !== null){
UXCam.logEvent(eventName, properties);
if(typeof properties != "undefined" || properties != null){
if(properties instanceof Map){
UXCam.logEvent(eventName, new org.json.JSONObject(JSON.stringify(Object.fromEntries(properties))));
} else if(properties instanceof Object){
UXCam.logEvent(eventName, new org.json.JSONObject(JSON.stringify(properties)));
}
}else{

@@ -548,4 +552,8 @@ UXCam.logEvent(eventName);

static reportBugEvent(eventName, properties){
if(typeof properties !== "undefined" || properties !== null){
UXCam.reportBugEvent(eventName, properties);
if(typeof properties != "undefined" || properties != null){
if(properties instanceof Map){
UXCam.reportBugEvent(eventName, new org.json.JSONObject(JSON.stringify(Object.fromEntries(properties))));
} else if(properties instanceof Object){
UXCam.reportBugEvent(eventName, new org.json.JSONObject(JSON.stringify(properties)));
}
}else{

@@ -552,0 +560,0 @@ UXCam.reportBugEvent(eventName);

const PLUGIN_NAME = "nativescript";
const PLUGIN_VERSION = "1.0.1";
const PLUGIN_VERSION = "1.0.2";

@@ -137,6 +137,7 @@ export class NSUXCam {

static occludeSensitiveScreen(hideScreen, hideGesture) {
console.log("called occlude screen");
if(typeof hideGesture !== "undefined"){
UXCam.occludeSensitiveScreen(hideScreen, hideGesture);
UXCam.occludeSensitiveScreenHideGestures(hideScreen, hideGesture);
}else{
UXCam.occludeSensitiveScreen(hideScreen, true);
UXCam.occludeSensitiveScreen(hideScreen);
}

@@ -175,3 +176,3 @@ }

static setUserProperty(propertyName, value) {
UXCam.setUserProperty(propertyName, value);
UXCam.setUserPropertyValue(propertyName, value);
}

@@ -188,3 +189,3 @@

static setSessionProperty(propertyName, value) {
UXCam.setSessionProperty(propertyName, value);
UXCam.setSessionPropertyValue(propertyName, value);
}

@@ -202,3 +203,3 @@

if(typeof properties !== "undefined" || properties !== null){
UXCam.logEvent(eventName, properties);
UXCam.logEventWithProperties(eventName, properties);
}else{

@@ -525,3 +526,3 @@ UXCam.logEvent(eventName);

if(typeof properties !== "undefined" || properties !== null){
UXCam.reportBugEvent(eventName, properties);
UXCam.reportBugEventProperties(eventName, properties);
}else{

@@ -528,0 +529,0 @@ UXCam.reportBugEvent(eventName);

{
"name": "nativescript-uxcam",
"version": "1.0.1",
"version": "1.0.2",
"description": "NativeScript plugin for UXCam.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -140,3 +140,3 @@

declare class UXCamBlurSetting extends NSObject implements UXCamOcclusionSetting {
declare class UXCamBlurSetting extends NSObject implements UXCamOcclusionSetting, UXGestureRecordable {

@@ -159,3 +159,3 @@ static alloc(): UXCamBlurSetting; // inherited from NSObject

hideGestures: boolean; // inherited from UXCamOcclusionSetting
hideGestures: boolean; // inherited from UXGestureRecordable

@@ -242,4 +242,2 @@ readonly isProxy: boolean; // inherited from NSObjectProtocol

hideGestures: boolean; // inherited from UXCamOcclusionSetting
readonly isProxy: boolean; // inherited from NSObjectProtocol

@@ -345,4 +343,2 @@

hideGestures: boolean;
type: UXOcclusionType;

@@ -355,3 +351,3 @@ }

declare class UXCamOverlaySetting extends NSObject implements UXCamOcclusionSetting {
declare class UXCamOverlaySetting extends NSObject implements UXCamOcclusionSetting, UXGestureRecordable {

@@ -372,3 +368,3 @@ static alloc(): UXCamOverlaySetting; // inherited from NSObject

hideGestures: boolean; // inherited from UXCamOcclusionSetting
hideGestures: boolean; // inherited from UXGestureRecordable

@@ -433,2 +429,11 @@ readonly isProxy: boolean; // inherited from NSObjectProtocol

interface UXGestureRecordable extends NSObjectProtocol {
hideGestures: boolean;
}
declare var UXGestureRecordable: {
prototype: UXGestureRecordable;
};
declare const enum UXOcclusionCategory {

@@ -435,0 +440,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