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

react-native-adjust

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-adjust - npm Package Compare versions

Comparing version 4.13.0 to 4.14.0

16

CHANGELOG.md

@@ -0,1 +1,15 @@

### Version 4.14.0 (4th July 2018)
#### Added
- Added deep link caching in case `appWillOpenUrl` method is called before SDK is initialised.
#### Changed
- Imposed type checks when calling methods for adding callback and partner parameters - both key and value now **must** be strings.
- Updated the way how iOS native bridge handles push tokens from React Native interface - they are now being passed directly as strings to native iOS SDK.
#### Native SDKs
- [iOS@v4.14.1][ios_sdk_v4.14.1]
- [Android@v4.14.0][android_sdk_v4.14.0]
---
### Version 4.13.0 (22nd May 2018)

@@ -217,2 +231,3 @@ #### Added

[ios_sdk_v4.13.0]: https://github.com/adjust/ios_sdk/tree/v4.13.0
[ios_sdk_v4.14.1]: https://github.com/adjust/ios_sdk/tree/v4.14.1

@@ -230,1 +245,2 @@ [android_sdk_v4.10.4]: https://github.com/adjust/android_sdk/tree/v4.10.4

[android_sdk_v4.13.0]: https://github.com/adjust/android_sdk/tree/v4.13.0
[android_sdk_v4.14.0]: https://github.com/adjust/android_sdk/tree/v4.14.0

55

index.js
'use strict';
import { NativeEventEmitter, NativeModules } from 'react-native';
import {
NativeEventEmitter,
NativeModules,
Platform,
} from 'react-native';
const module_adjust = NativeModules.Adjust;
const module_adjust_emitter = new NativeEventEmitter(NativeModules.AdjustEventEmitter);
let module_adjust_emitter = null;
if (Platform.OS === "android") {
module_adjust_emitter = new NativeEventEmitter(NativeModules.Adjust);
} else if (Platform.OS === "ios") {
module_adjust_emitter = new NativeEventEmitter(NativeModules.AdjustEventEmitter);
}
var Adjust = {};

@@ -42,2 +53,5 @@

Adjust.addSessionCallbackParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
module_adjust.addSessionCallbackParameter(key, value);

@@ -47,2 +61,5 @@ };

Adjust.addSessionPartnerParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
module_adjust.addSessionPartnerParameter(key, value);

@@ -127,2 +144,24 @@ };

// =========================================== //
// Adjust methods used for SDK testing only. //
// Do NOT use any of those in production code. //
// =========================================== //
Adjust.teardown = function() {
Adjust.componentWillUnmount();
module_adjust.teardown();
};
Adjust.setTestOptions = function(testOptions) {
module_adjust.setTestOptions(testOptions);
};
Adjust.onResume = function() {
module_adjust.onResume();
};
Adjust.onPause = function() {
module_adjust.onPause();
};
// =========================================== //
var AdjustEvent = function (eventToken) {

@@ -142,2 +181,5 @@ this.eventToken = eventToken;

this.addCallbackParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.callbackParameters[key] = value;

@@ -147,2 +189,5 @@ };

this.addPartnerParameter = function(key, value) {
if (typeof key !== 'string' || typeof value !== 'string') {
return;
}
this.partnerParameters[key] = value;

@@ -160,3 +205,3 @@ };

this.sdkPrefix = "react_native4.13.0";
this.sdkPrefix = "react_native4.14.0";
this.logLevel = null;

@@ -226,15 +271,11 @@

}
if (info1 != null) {
this.info1 = info1.toString();
}
if (info2 != null) {
this.info2 = info2.toString();
}
if (info3 != null) {
this.info3 = info3.toString();
}
if (info4 != null) {

@@ -241,0 +282,0 @@ this.info4 = info4.toString();

2

package.json
{
"name": "react-native-adjust",
"description": "Adjust React Native SDK",
"version": "4.13.0",
"version": "4.14.0",
"main": "index.js",

@@ -6,0 +6,0 @@ "author": "adjust GmbH",

@@ -366,2 +366,4 @@ ## Summary

**Note**: **Both** parameters in this method must be **strings**. If either of the passed parameters is not a string, the key-value pair will not be added to the parameters list.
### <a id="partner-parameters"></a>Partner parameters

@@ -384,2 +386,4 @@

**Note**: **Both** parameters in this method must be **strings**. If either of the passed parameters is not a string, the key-value pair will not be added to the parameters list.
### <a id="session-parameters"></a>Session parameters

@@ -403,2 +407,4 @@

**Note**: **Both** parameters in this method must be **strings**. If either of the passed parameters is not a string, the key-value pair will not be added to the parameters list.
It's possible to remove a specific session callback parameter by passing the desiring key to the method `removeSessionCallbackParameter` of the `Adjust` instance:

@@ -430,2 +436,4 @@

**Note**: **Both** parameters in this method must be **strings**. If either of the passed parameters is not a string, the key-value pair will not be added to the parameters list.
It's possible to remove a specific session partner parameter by passing the desiring key to the method `removeSessionPartnerParameter` of the `Adjust` instance:

@@ -432,0 +440,0 @@

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