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 10.0.1 to 10.1.0

8

__tests__/googleMobileAds.test.ts

@@ -62,3 +62,11 @@ import admob, { MaxAdContentRating } from '../src';

});
describe('testDebugMenu', function () {
it('throws if adUnit is empty', function () {
expect(() => {
admob().openDebugMenu('');
}).toThrowError('openDebugMenu expected a non-empty string value');
});
});
});
});

4

lib/commonjs/MobileAds.js

@@ -45,2 +45,6 @@ "use strict";

}
openDebugMenu(adUnit) {
if (!adUnit) throw new Error('googleMobileAds.openDebugMenu expected a non-empty string value');
this.native.openDebugMenu(adUnit);
}
}

@@ -47,0 +51,0 @@ const MobileAdsInstance = new MobileAdsModule({

2

lib/commonjs/version.js

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

// Generated by genversion.
const version = '10.0.1';
const version = '10.1.0';
exports.version = version;
//# sourceMappingURL=version.js.map

@@ -39,2 +39,6 @@ import { Module } from './internal';

}
openDebugMenu(adUnit) {
if (!adUnit) throw new Error('googleMobileAds.openDebugMenu expected a non-empty string value');
this.native.openDebugMenu(adUnit);
}
}

@@ -41,0 +45,0 @@ const MobileAdsInstance = new MobileAdsModule({

// Generated by genversion.
export const version = '10.0.1';
export const version = '10.1.0';
//# sourceMappingURL=version.js.map

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

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

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

@@ -10,2 +10,3 @@ import { Module } from './internal';

openAdInspector(): Promise<void>;
openDebugMenu(adUnit: string): void;
}

@@ -12,0 +13,0 @@ export declare const MobileAds: () => MobileAdsModule;

@@ -19,4 +19,5 @@ import { AdapterStatus } from './AdapterStatus';

rewardedInterstitialShow: AdShowFunction;
openDebugMenu(adUnit: string): void;
}
export {};
//# sourceMappingURL=GoogleMobileAdsNativeModule.d.ts.map

@@ -47,3 +47,14 @@ import { EventEmitter } from 'react-native';

emitter: EventEmitter;
/**
* Opens the Ad Debug Menu.
*
* Android: `initialize` needs to be called before calling this function.
*
* @see https://developers.google.com/ad-manager/mobile-ads-sdk/android/debug
* @see https://developers.google.com/ad-manager/mobile-ads-sdk/ios/debug
*
* @param adUnit Any valid ad unit from your Ad Manager account is sufficient to open the debug options menu.
*/
openDebugMenu(adUnit: string): void;
}
//# sourceMappingURL=MobileAdsModule.interface.d.ts.map

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

export declare const version = "10.0.1";
export declare const version = "10.1.0";
//# sourceMappingURL=version.d.ts.map
{
"name": "react-native-google-mobile-ads",
"version": "10.0.1",
"version": "10.1.0",
"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.",

@@ -76,2 +76,7 @@ import { Module } from './internal';

}
openDebugMenu(adUnit: string) {
if (!adUnit) throw new Error('googleMobileAds.openDebugMenu expected a non-empty string value');
this.native.openDebugMenu(adUnit);
}
}

@@ -78,0 +83,0 @@

@@ -25,2 +25,3 @@ import { AdapterStatus } from './AdapterStatus';

rewardedInterstitialShow: AdShowFunction;
openDebugMenu(adUnit: string): void;
}

@@ -53,2 +53,14 @@ import { EventEmitter } from 'react-native';

emitter: EventEmitter;
/**
* Opens the Ad Debug Menu.
*
* Android: `initialize` needs to be called before calling this function.
*
* @see https://developers.google.com/ad-manager/mobile-ads-sdk/android/debug
* @see https://developers.google.com/ad-manager/mobile-ads-sdk/ios/debug
*
* @param adUnit Any valid ad unit from your Ad Manager account is sufficient to open the debug options menu.
*/
openDebugMenu(adUnit: string): void;
}
// Generated by genversion.
export const version = '10.0.1';
export const version = '10.1.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

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