@invertase/react-native-google-ads
Advanced tools
Comparing version 3.4.0 to 4.0.0
@@ -1,2 +0,2 @@ | ||
import { AdsConsent } from '../lib'; | ||
import { AdsConsent } from '../src'; | ||
@@ -3,0 +3,0 @@ describe('Google Ads AdsConsent', function () { |
@@ -1,2 +0,2 @@ | ||
import admob, { GoogleAdsTypes } from '../lib'; | ||
import admob, { MaxAdContentRating } from '../src'; | ||
@@ -16,4 +16,3 @@ describe('Admob', function () { | ||
admob().setRequestConfiguration({ | ||
maxAdContentRating: | ||
'Y' as GoogleAdsTypes.MaxAdContentRating[keyof GoogleAdsTypes.MaxAdContentRating], | ||
maxAdContentRating: 'Y' as MaxAdContentRating, | ||
}), | ||
@@ -20,0 +19,0 @@ ).toThrowError( |
@@ -1,2 +0,2 @@ | ||
import { InterstitialAd } from '../lib'; | ||
import { InterstitialAd } from '../src'; | ||
@@ -3,0 +3,0 @@ describe('Google Ads Interstitial', function () { |
module.exports = { | ||
maxConcurrency: 10, | ||
preset: './node_modules/react-native/jest-preset.js', | ||
transform: { | ||
'^.+\\.(js)$': '<rootDir>/node_modules/babel-jest', | ||
'\\.(ts|tsx)$': 'ts-jest', | ||
}, | ||
preset: 'react-native', | ||
modulePathIgnorePatterns: ['<rootDir>/example/node_modules', '<rootDir>/lib/'], | ||
setupFiles: ['./jest.setup.ts'], | ||
testRegex: '(/^__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', | ||
modulePaths: ['node_modules'], | ||
moduleDirectories: ['node_modules'], | ||
moduleFileExtensions: ['ts', 'tsx', 'js'], | ||
}; |
{ | ||
"name": "@invertase/react-native-google-ads", | ||
"version": "3.4.0", | ||
"version": "4.0.0", | ||
"author": "Invertase <oss@invertase.io> (http://invertase.io)", | ||
"description": "React Native Google Ads is an easy way to monetize mobile apps with targeted, in-app advertising.", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"main": "lib/commonjs/index.js", | ||
"module": "lib/module/index.js", | ||
"react-native": "src/index.ts", | ||
"types": "lib/typescript/index.d.ts", | ||
"repository": { | ||
@@ -52,8 +54,17 @@ "type": "git", | ||
}, | ||
"react-native-builder-bob": { | ||
"source": "src", | ||
"output": "lib", | ||
"targets": [ | ||
"commonjs", | ||
"module", | ||
"typescript" | ||
] | ||
}, | ||
"scripts": { | ||
"prepare": "yarn build", | ||
"build": "genversion --semi lib/version.js", | ||
"build:clean": "rimraf android/build && rimraf ios/build", | ||
"build": "genversion --es6 --semi src/version.ts && bob build", | ||
"build:clean": "rimraf android/build && rimraf ios/build && rimraf lib", | ||
"lint:code": "yarn lint:js && yarn lint:android && yarn lint:ios:check", | ||
"lint:js": "eslint lib/ --ext .js,.jsx,.ts,.tsx --max-warnings=0", | ||
"lint:js": "eslint src/ --ext .js,.jsx,.ts,.tsx --max-warnings=0", | ||
"lint:android": "google-java-format --set-exit-if-changed --replace --glob=\"android/**/*.java\"", | ||
@@ -66,3 +77,3 @@ "lint:ios:check": "clang-format --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google -n -Werror", | ||
"lint:spellcheck": "spellchecker --quiet --files=\"docs/**/*.md\" --dictionaries=\"./.spellcheck.dict.txt\" --reports=\"spelling.json\" --plugins spell indefinite-article repeated-words syntax-mentions syntax-urls frontmatter", | ||
"tsc:compile": "tsc --project .", | ||
"tsc:compile": "tsc --project . --noEmit", | ||
"lint": "yarn lint:code && yarn tsc:compile", | ||
@@ -123,2 +134,3 @@ "tests:jest": "jest", | ||
"react-native": "0.66.3", | ||
"react-native-builder-bob": "^0.18.2", | ||
"rimraf": "^3.0.2", | ||
@@ -125,0 +137,0 @@ "semantic-release": "^18.0.1", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
865898
364
9611
39
1