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

react-native-google-mobile-ads

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-google-mobile-ads - npm Package Compare versions

Comparing version 6.2.1 to 6.2.2

6

lib/commonjs/AdsConsent.js

@@ -45,11 +45,11 @@ "use strict";

if ((0, _common.hasOwnProperty)(options, 'debugGeography') && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.DISABLED && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.EEA && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.NOT_EEA) {
if ((0, _common.isPropertySet)(options, 'debugGeography') && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.DISABLED && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.EEA && options.debugGeography !== _AdsConsentDebugGeography.AdsConsentDebugGeography.NOT_EEA) {
throw new Error("AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.");
}
if ((0, _common.hasOwnProperty)(options, 'tagForUnderAgeOfConsent') && !(0, _common.isBoolean)(options.tagForUnderAgeOfConsent)) {
if ((0, _common.isPropertySet)(options, 'tagForUnderAgeOfConsent') && !(0, _common.isBoolean)(options.tagForUnderAgeOfConsent)) {
throw new Error("AdsConsent.requestInfoUpdate(*) 'options.tagForUnderAgeOfConsent' expected a boolean value.");
}
if ((0, _common.hasOwnProperty)(options, 'testDeviceIdentifiers')) {
if ((0, _common.isPropertySet)(options, 'testDeviceIdentifiers')) {
if (!(0, _common.isArray)(options.testDeviceIdentifiers)) {

@@ -56,0 +56,0 @@ throw new Error("AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.");

@@ -11,2 +11,3 @@ "use strict";

hasOwnProperty: true,
isPropertySet: true,
stripTrailingSlash: true,

@@ -32,2 +33,3 @@ isIOS: true,

exports.isIOS = void 0;
exports.isPropertySet = isPropertySet;
exports.once = once;

@@ -178,2 +180,6 @@ exports.stripTrailingSlash = stripTrailingSlash;

}
function isPropertySet(target, property) {
return hasOwnProperty(target, property) && !(0, _validate.isUndefined)(target[property]);
}
/**

@@ -180,0 +186,0 @@ * Remove a trailing forward slash from a string if it exists

@@ -43,3 +43,3 @@ "use strict";

if ((0, _common.hasOwnProperty)(requestConfiguration, 'tagForChildDirectedTreatment')) {
if ((0, _common.isPropertySet)(requestConfiguration, 'tagForChildDirectedTreatment')) {
if (!(0, _common.isBoolean)(requestConfiguration.tagForChildDirectedTreatment)) {

@@ -52,3 +52,3 @@ throw new Error("'requestConfiguration.tagForChildDirectedTreatment' expected a boolean value");

if ((0, _common.hasOwnProperty)(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if ((0, _common.isPropertySet)(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if (!(0, _common.isBoolean)(requestConfiguration.tagForUnderAgeOfConsent)) {

@@ -61,3 +61,3 @@ throw new Error("'requestConfiguration.tagForUnderAgeOfConsent' expected a boolean value");

if ((0, _common.hasOwnProperty)(requestConfiguration, 'testDeviceIdentifiers')) {
if ((0, _common.isPropertySet)(requestConfiguration, 'testDeviceIdentifiers')) {
if (!(0, _common.isArray)(requestConfiguration.testDeviceIdentifiers)) {

@@ -64,0 +64,0 @@ throw new Error("'requestConfiguration.testDeviceIdentifiers' expected an array value");

@@ -37,3 +37,3 @@ "use strict";

if ((0, _common.hasOwnProperty)(options, 'requestNonPersonalizedAdsOnly')) {
if ((0, _common.isPropertySet)(options, 'requestNonPersonalizedAdsOnly')) {
if (!(0, _common.isBoolean)(options.requestNonPersonalizedAdsOnly)) {

@@ -40,0 +40,0 @@ throw new Error("'options.requestNonPersonalizedAdsOnly' expected a boolean value");

@@ -37,3 +37,3 @@ "use strict";

if ((0, _common.hasOwnProperty)(options, 'immersiveModeEnabled')) {
if ((0, _common.isPropertySet)(options, 'immersiveModeEnabled')) {
if (!(0, _common.isBoolean)(options.immersiveModeEnabled)) {

@@ -40,0 +40,0 @@ throw new Error("'options.immersiveModeEnabled' expected a boolean value");

@@ -8,4 +8,4 @@ "use strict";

// Generated by genversion.
const version = '6.2.1';
const version = '6.2.2';
exports.version = version;
//# sourceMappingURL=version.js.map

@@ -22,3 +22,3 @@ /*

import { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';
import { hasOwnProperty, isArray, isBoolean, isObject, isString } from './common';
import { isPropertySet, isArray, isBoolean, isObject, isString } from './common';
const native = NativeModules.RNGoogleMobileAdsConsentModule;

@@ -33,11 +33,11 @@ export const AdsConsent = {

if (hasOwnProperty(options, 'debugGeography') && options.debugGeography !== AdsConsentDebugGeography.DISABLED && options.debugGeography !== AdsConsentDebugGeography.EEA && options.debugGeography !== AdsConsentDebugGeography.NOT_EEA) {
if (isPropertySet(options, 'debugGeography') && options.debugGeography !== AdsConsentDebugGeography.DISABLED && options.debugGeography !== AdsConsentDebugGeography.EEA && options.debugGeography !== AdsConsentDebugGeography.NOT_EEA) {
throw new Error("AdsConsent.requestInfoUpdate(*) 'options.debugGeography' expected one of AdsConsentDebugGeography.DISABLED, AdsConsentDebugGeography.EEA or AdsConsentDebugGeography.NOT_EEA.");
}
if (hasOwnProperty(options, 'tagForUnderAgeOfConsent') && !isBoolean(options.tagForUnderAgeOfConsent)) {
if (isPropertySet(options, 'tagForUnderAgeOfConsent') && !isBoolean(options.tagForUnderAgeOfConsent)) {
throw new Error("AdsConsent.requestInfoUpdate(*) 'options.tagForUnderAgeOfConsent' expected a boolean value.");
}
if (hasOwnProperty(options, 'testDeviceIdentifiers')) {
if (isPropertySet(options, 'testDeviceIdentifiers')) {
if (!isArray(options.testDeviceIdentifiers)) {

@@ -44,0 +44,0 @@ throw new Error("AdsConsent.requestInfoUpdate(*) 'options.testDeviceIdentifiers' expected an array of string values.");

@@ -19,3 +19,3 @@ /*

import * as Base64 from './Base64';
import { isString } from './validate';
import { isString, isUndefined } from './validate';
export * from './id';

@@ -80,2 +80,5 @@ export * from './path';

}
export function isPropertySet(target, property) {
return hasOwnProperty(target, property) && !isUndefined(target[property]);
}
/**

@@ -82,0 +85,0 @@ * Remove a trailing forward slash from a string if it exists

@@ -17,3 +17,3 @@ /*

*/
import { hasOwnProperty, isArray, isBoolean, isObject } from './common';
import { isPropertySet, isArray, isBoolean, isObject } from './common';
import { MaxAdContentRating } from './MaxAdContentRating';

@@ -35,3 +35,3 @@ export function validateAdRequestConfiguration(requestConfiguration) {

if (hasOwnProperty(requestConfiguration, 'tagForChildDirectedTreatment')) {
if (isPropertySet(requestConfiguration, 'tagForChildDirectedTreatment')) {
if (!isBoolean(requestConfiguration.tagForChildDirectedTreatment)) {

@@ -44,3 +44,3 @@ throw new Error("'requestConfiguration.tagForChildDirectedTreatment' expected a boolean value");

if (hasOwnProperty(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if (isPropertySet(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if (!isBoolean(requestConfiguration.tagForUnderAgeOfConsent)) {

@@ -53,3 +53,3 @@ throw new Error("'requestConfiguration.tagForUnderAgeOfConsent' expected a boolean value");

if (hasOwnProperty(requestConfiguration, 'testDeviceIdentifiers')) {
if (isPropertySet(requestConfiguration, 'testDeviceIdentifiers')) {
if (!isArray(requestConfiguration.testDeviceIdentifiers)) {

@@ -56,0 +56,0 @@ throw new Error("'requestConfiguration.testDeviceIdentifiers' expected an array value");

@@ -17,3 +17,3 @@ /*

*/
import { hasOwnProperty, isArray, isBoolean, isObject, isString, isUndefined, isValidUrl } from './common';
import { isPropertySet, isArray, isBoolean, isObject, isString, isUndefined, isValidUrl } from './common';
export function validateAdRequestOptions(options) {

@@ -30,3 +30,3 @@ const out = {};

if (hasOwnProperty(options, 'requestNonPersonalizedAdsOnly')) {
if (isPropertySet(options, 'requestNonPersonalizedAdsOnly')) {
if (!isBoolean(options.requestNonPersonalizedAdsOnly)) {

@@ -33,0 +33,0 @@ throw new Error("'options.requestNonPersonalizedAdsOnly' expected a boolean value");

@@ -17,3 +17,3 @@ /*

*/
import { hasOwnProperty, isBoolean, isObject, isUndefined } from './common';
import { isPropertySet, isBoolean, isObject, isUndefined } from './common';
export function validateAdShowOptions(options) {

@@ -30,3 +30,3 @@ const out = {};

if (hasOwnProperty(options, 'immersiveModeEnabled')) {
if (isPropertySet(options, 'immersiveModeEnabled')) {
if (!isBoolean(options.immersiveModeEnabled)) {

@@ -33,0 +33,0 @@ throw new Error("'options.immersiveModeEnabled' expected a boolean value");

// Generated by genversion.
export const version = '6.2.1';
export const version = '6.2.2';
//# sourceMappingURL=version.js.map

@@ -18,2 +18,3 @@ import * as Base64 from './Base64';

export declare function hasOwnProperty(target: unknown, property: PropertyKey): boolean;
export declare function isPropertySet(target: unknown, property: PropertyKey): boolean;
/**

@@ -20,0 +21,0 @@ * Remove a trailing forward slash from a string if it exists

@@ -1,2 +0,2 @@

export declare const SDK_VERSION = "6.2.1";
export declare const SDK_VERSION = "6.2.2";
export { default, MobileAds } from './MobileAds';

@@ -3,0 +3,0 @@ export { AdsConsentDebugGeography } from './AdsConsentDebugGeography';

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

export declare const version = "6.2.1";
export declare const version = "6.2.2";
{
"name": "react-native-google-mobile-ads",
"version": "6.2.1",
"version": "6.2.2",
"author": "Invertase <oss@invertase.io> (http://invertase.io)",

@@ -5,0 +5,0 @@ "description": "React Native Google Mobile Ads is an easy way to monetize mobile apps with targeted, in-app advertising.",

@@ -23,3 +23,3 @@ /*

import { AdsConsentSpecialFeatures } from './AdsConsentSpecialFeatures';
import { hasOwnProperty, isArray, isBoolean, isObject, isString } from './common';
import { isPropertySet, isArray, isBoolean, isObject, isString } from './common';
import {

@@ -42,3 +42,3 @@ AdsConsentFormResult,

if (
hasOwnProperty(options, 'debugGeography') &&
isPropertySet(options, 'debugGeography') &&
options.debugGeography !== AdsConsentDebugGeography.DISABLED &&

@@ -54,3 +54,3 @@ options.debugGeography !== AdsConsentDebugGeography.EEA &&

if (
hasOwnProperty(options, 'tagForUnderAgeOfConsent') &&
isPropertySet(options, 'tagForUnderAgeOfConsent') &&
!isBoolean(options.tagForUnderAgeOfConsent)

@@ -63,3 +63,3 @@ ) {

if (hasOwnProperty(options, 'testDeviceIdentifiers')) {
if (isPropertySet(options, 'testDeviceIdentifiers')) {
if (!isArray(options.testDeviceIdentifiers)) {

@@ -66,0 +66,0 @@ throw new Error(

@@ -20,3 +20,3 @@ /*

import * as Base64 from './Base64';
import { isString } from './validate';
import { isString, isUndefined } from './validate';

@@ -73,2 +73,9 @@ export * from './id';

export function isPropertySet(target: unknown, property: PropertyKey) {
return (
hasOwnProperty(target, property) &&
!isUndefined((target as Record<PropertyKey, unknown>)[property])
);
}
/**

@@ -75,0 +82,0 @@ * Remove a trailing forward slash from a string if it exists

@@ -18,3 +18,3 @@ /*

import { hasOwnProperty, isArray, isBoolean, isObject } from './common';
import { isPropertySet, isArray, isBoolean, isObject } from './common';
import { MaxAdContentRating } from './MaxAdContentRating';

@@ -45,3 +45,3 @@ import { RequestConfiguration } from './types/RequestConfiguration';

if (hasOwnProperty(requestConfiguration, 'tagForChildDirectedTreatment')) {
if (isPropertySet(requestConfiguration, 'tagForChildDirectedTreatment')) {
if (!isBoolean(requestConfiguration.tagForChildDirectedTreatment)) {

@@ -56,3 +56,3 @@ throw new Error(

if (hasOwnProperty(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if (isPropertySet(requestConfiguration, 'tagForUnderAgeOfConsent')) {
if (!isBoolean(requestConfiguration.tagForUnderAgeOfConsent)) {

@@ -65,3 +65,3 @@ throw new Error("'requestConfiguration.tagForUnderAgeOfConsent' expected a boolean value");

if (hasOwnProperty(requestConfiguration, 'testDeviceIdentifiers')) {
if (isPropertySet(requestConfiguration, 'testDeviceIdentifiers')) {
if (!isArray(requestConfiguration.testDeviceIdentifiers)) {

@@ -68,0 +68,0 @@ throw new Error("'requestConfiguration.testDeviceIdentifiers' expected an array value");

@@ -19,3 +19,3 @@ /*

import {
hasOwnProperty,
isPropertySet,
isArray,

@@ -41,3 +41,3 @@ isBoolean,

if (hasOwnProperty(options, 'requestNonPersonalizedAdsOnly')) {
if (isPropertySet(options, 'requestNonPersonalizedAdsOnly')) {
if (!isBoolean(options.requestNonPersonalizedAdsOnly)) {

@@ -44,0 +44,0 @@ throw new Error("'options.requestNonPersonalizedAdsOnly' expected a boolean value");

@@ -18,3 +18,3 @@ /*

import { hasOwnProperty, isBoolean, isObject, isUndefined } from './common';
import { isPropertySet, isBoolean, isObject, isUndefined } from './common';
import { AdShowOptions } from './types/AdShowOptions';

@@ -33,3 +33,3 @@

if (hasOwnProperty(options, 'immersiveModeEnabled')) {
if (isPropertySet(options, 'immersiveModeEnabled')) {
if (!isBoolean(options.immersiveModeEnabled)) {

@@ -36,0 +36,0 @@ throw new Error("'options.immersiveModeEnabled' expected a boolean value");

// Generated by genversion.
export const version = '6.2.1';
export const version = '6.2.2';

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