Socket
Socket
Sign inDemoInstall

instabug-cordova

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instabug-cordova - npm Package Compare versions

Comparing version 1.14.1 to 8.0.0

src/ios/Instabug.framework/Headers/IBGBugReporting.h

2

package.json
{
"name": "instabug-cordova",
"version": "1.14.1",
"version": "8.0.0",
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",

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

@@ -23,2 +23,11 @@ var exec = require('cordova/exec');

var getInvocationOptions = function () {
return {
emailFieldHidden: 'emailFieldHidden',
emailFieldOptional: 'emailFieldOptional',
commentFieldRequired: 'commentFieldRequired',
disablePostSendingDialog: 'disablePostSendingDialog'
};
};
var getReproStepsMode = function () {

@@ -32,2 +41,9 @@ return {

var getPromptOptions = function () {
return {
bug: 'bug',
chat: 'chat',
feedback: 'feedback'
}
};
var getWelcomeMessageMode = function () {

@@ -38,3 +54,4 @@ return {

welcomeMessageModeDisabled: 'welcomeMessageModeDisabled'
};
}
};

@@ -50,2 +67,9 @@

var getActionTypes = function () {
return {
requestNewFeature: 'requestNewFeature',
addCommentToFeature: 'addCommentToFeature'
};
};
var getLocales = function () {

@@ -79,2 +103,3 @@ return {

if (validatedEvent) {
console.warn("This method is now deprecated, and will be removed in an upcoming version.")
exec(success, error, 'IBGPlugin', 'activate', [token, event, options]);

@@ -86,7 +111,37 @@ } else {

Instabug.invoke = function (mode, success, error) {
Instabug.startWithToken = function (token, events, options, success, error) {
var i;
var validatedEvents = [];
for (i = 0; i < events.length; i++) {
var validatedEvent = getInvocationEvents()[events[i]];
if(validatedEvent) {
validatedEvents.push(validatedEvent);
}
}
if (validatedEvents !== undefined || validatedEvents.length != 0) {
exec(success, error, 'IBGPlugin', 'startWithToken', [token, validatedEvents, options]);
} else {
console.log('Could not activate Instabug - invocation event is not valid.');
}
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.invoke = function (mode, invocationOptions, success, error) {
var validatedMode = getInvocationModes()[mode];
var i;
var validatedOptions = [];
for (i = 0; i < invocationOptions.length; i++) {
var validatedOption = getInvocationOptions()[invocationOptions[i]];
if(validatedOption) {
validatedOptions.push(validatedOption);
}
}
if (validatedMode) {
exec(success, error, 'IBGPlugin', 'invoke', [validatedMode]);
if(validatedOptions.length != 0) {
exec(success, error, 'IBGPlugin', 'invoke', [validatedMode, validatedOptions]);
} else {
exec(success, error, 'IBGPlugin', 'invoke', [validatedMode]);
}
} else {

@@ -122,2 +177,12 @@ exec(success, error, 'IBGPlugin', 'invoke', []);

/**
* @deprecated since version 8.0.0.
*/
Instabug.setAttachmentTypesEnabled = function (screenshot, extraScreenshot,
galleryImage, screenRecording,
success, error) {
exec(success, error, 'IBGPlugin', 'setAttachmentTypesEnabled', [screenshot,
extraScreenshot, galleryImage, screenRecording]);
};
Instabug.setUserName = function (name, success, error) {

@@ -127,2 +192,5 @@ exec(success, error, 'IBGPlugin', 'setUserName', [name]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.showSurveyWithToken = function (surveyToken, success, error) {

@@ -132,2 +200,29 @@ exec(success, error, 'IBGPlugin', 'showSurveyWithToken', [surveyToken]);

Instabug.logUserEventWithName = function (userEvent, success, error) {
exec(success, error, 'IBGPlugin', 'logUserEventWithName', [userEvent]);
};
Instabug.setShakingThreshold = function (shakingThreshold, success, error) {
exec(success, error, 'IBGPlugin', 'setShakingThreshold', [shakingThreshold]);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setEmailFieldRequiredForFeatureRequests = function (isRequired, actionTypes, success, error) {
var i;
var validatedActionTypes = [];
for (i = 0; i < actionTypes.length; i++) {
var validatedActionType = getActionTypes()[actionTypes[i]];
if(validatedActionType) {
validatedActionTypes.push(validatedActionType);
}
}
if (validatedActionTypes !== undefined || validatedActionTypes.length != 0) {
exec(success, error, 'IBGPlugin', 'setEmailFieldRequiredForFeatureRequests', [isRequired, validatedActionTypes]);
} else {
console.log('Could not set email field - "' + validatedActionTypes + '" is incorrect.');
}
};
Instabug.setReproStepsMode = function (reproStepsMode, success, error) {

@@ -155,2 +250,5 @@

/**
* @deprecated since version 8.0.0.
*/
Instabug.setExtendedBugReportMode = function (extendedBugReportMode, success, error) {

@@ -167,2 +265,21 @@

/**
* @deprecated since version 8.0.0.
*/
Instabug.setPromptOptionsEnabled = function (promptOptions, success, error) {
var i;
var validatedPromptOptions = [];
for (i = 0; i < promptOptions.length; i++) {
var validatedPromptOption = getPromptOptions()[promptOptions[i]];
if(validatedPromptOption) {
validatedPromptOptions.push(validatedPromptOption);
}
}
if (validatedPromptOptions !== undefined || validatedPromptOptions.length != 0) {
exec(success, error, 'IBGPlugin', 'setPromptOptionsEnabled', [validatedPromptOptions]);
} else {
console.log('Could not change prompt option - "' + validatedPromptOption + '" is not valid.');
}
};
Instabug.setUserData = function (data, success, error) {

@@ -184,2 +301,31 @@ exec(success, error, 'IBGPlugin', 'setUserData', [data]);

Instabug.getUnreadMessagesCount = function (success, error) {
exec(success, error, 'IBGPlugin', 'getUnreadMessagesCount', []);
};
Instabug.setChatNotificationEnabled = function (isEnabled, success, error) {
exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]);
};
Instabug.setIBGLogPrintsToConsole = function (isEnabled, success, error) {
exec(success, error, 'IBGPlugin', 'setIBGLogPrintsToConsole', [isEnabled]);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setSurveysEnabled = function (isEnabled, success, error) {
exec(success, error, 'IBGPlugin', 'setSurveysEnabled', [isEnabled]);
};
/**
* @deprecated since version 8.0.0
*/
Instabug.showSurveyIfAvailable = function (success, error) {
exec(success, error, 'IBGPlugin', 'showSurveyIfAvailable', []);
};
/**
* @deprecated Since version 8.0.
*/
Instabug.changeInvocationEvent = function (event, success, error) {

@@ -195,2 +341,21 @@ var validatedEvent = getInvocationEvents()[event];

/**
* @deprecated since version 8.0.0.
*/
Instabug.setInvocationEvents = function (events, success, error) {
var i;
var validatedEvents = [];
for (i = 0; i < events.length; i++) {
var validatedEvent = getInvocationEvents()[events[i]];
if(validatedEvent) {
validatedEvents.push(validatedEvent);
}
}
if (validatedEvents !== undefined || validatedEvents.length != 0) {
exec(success, error, 'IBGPlugin', 'setInvocationEvents', [validatedEvents]);
} else {
console.log('Could not change invocation event - "' + event + '" is not valid.');
}
};
Instabug.disable = function (success, error) {

@@ -224,2 +389,5 @@ exec(success, error, 'IBGPlugin', 'disable', []);

/**
* @deprecated since version 8.0.0.
*/
Instabug.hasRespondedToSurveyWithToken = function (surveyToken, success, error) {

@@ -229,2 +397,9 @@ exec(success, error, 'IBGPlugin', 'hasRespondedToSurveyWithToken', [surveyToken]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.getAvailableSurveys = function (success, error) {
exec(success, error, 'IBGPlugin', 'getAvailableSurveys', []);
};
Instabug.identifyUserWithEmail = function (email, name, success, error) {

@@ -234,2 +409,41 @@ exec(success, error, 'IBGPlugin', 'identifyUserWithEmail', [email, name]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.setPreInvocationHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'setPreInvocationHandler', []);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setPostInvocationHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'setPostInvocationHandler', []);
};
Instabug.setPreSendingHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'setPreSendingHandler', []);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setDidSelectPromptOptionHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'didSelectPromptOptionHandler', []);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setWillShowSurveyHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'willShowSurveyHandler', []);
};
/**
* @deprecated since version 8.0.0.
*/
Instabug.setDidDismissSurveyHandler = function (success, error) {
exec(success, error, 'IBGPlugin', 'didDismissSurveyHandler', []);
};
Instabug.setVideoRecordingFloatingButtonPosition = function (position, success, error) {

@@ -243,2 +457,9 @@ exec(success, error, 'IBGPlugin', 'setVideoRecordingFloatingButtonPosition', [position]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.dismiss = function (success, error) {
exec(success, error, 'IBGPlugin', 'dismiss', []);
};
Instabug.setDebugEnabled = function (isDebugEnabled, success, error) {

@@ -263,2 +484,5 @@ exec(success, error, 'IBGPlugin', 'setDebugEnabled', [isDebugEnabled]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.setThresholdForReshowingSurveyAfterDismiss = function (sessionsCount, daysCount, success, error) {

@@ -268,2 +492,5 @@ exec(success, error, 'IBGPlugin', 'setThresholdForReshowingSurveyAfterDismiss', [sessionsCount, daysCount]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.setAutoShowingSurveysEnabled = function (autoShowingSurveysEnabled, success, error) {

@@ -273,2 +500,5 @@ exec(success, error, 'IBGPlugin', 'setAutoShowingSurveysEnabled', [autoShowingSurveysEnabled]);

/**
* @deprecated since version 8.0.0.
*/
Instabug.showFeatureRequests = function (success, error) {

@@ -278,2 +508,5 @@ exec(success, error, 'IBGPlugin', 'showFeatureRequests', []);

/**
* @deprecated since version 8.0.0.
*/
Instabug.setShouldShowSurveysWelcomeScreen = function (shouldShowWelcomeScreen, success, error) {

@@ -280,0 +513,0 @@ exec(success, error, 'IBGPlugin', 'setShouldShowSurveysWelcomeScreen', [shouldShowWelcomeScreen]);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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