Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade dependencies #25

Merged
merged 3 commits into from
Dec 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@ module.exports = {
react: {
version: 'latest',
},
react: {
version: '18',
},
},
}
248 changes: 151 additions & 97 deletions README.md

Large diffs are not rendered by default.

37 changes: 19 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,30 @@
"dev:yalc-publish-push": "yalc publish --push"
},
"devDependencies": {
"@babel/cli": "^7.15.7",
"@babel/core": "^7.15.8",
"@babel/plugin-transform-runtime": "^7.15.8",
"@babel/preset-env": "^7.15.8",
"babel-jest": "^27.2.5",
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.5",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"babel-jest": "^29.3.1",
"babel-plugin-module-resolver": "^4.1.0",
"core-js": "^3.18.2",
"eslint": "^7.32.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"core-js": "^3.26.1",
"eslint": "^8.29.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.5.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"if-env": "^1.0.4",
"jest": "^27.2.5",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"mockdate": "^3.0.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.4.1",
"prop-types": "^15.7.2"
"prettier": "^2.8.0",
"prop-types": "^15.8.1"
},
"dependencies": {}
}
3 changes: 3 additions & 0 deletions src/__tests__/awaitCMPLoad.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ describe('awaitCMPLoad', () => {

it('calls logDebugging as expected when the CMP responds successfully', async () => {
expect.assertions(2)

// Promise is returned below.
// eslint-disable-next-line jest/valid-expect-in-promise
const promise = awaitCMPLoad()
.then(() => {
expect(logDebugging).toHaveBeenCalledWith(
Expand Down
8 changes: 2 additions & 6 deletions src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,7 @@ describe('index.js: openTCFConsentDialog', () => {
index.initializeCMP()
await index.openTCFConsentDialog()
const { logDebugging } = require('src/logger')
expect(logDebugging).toHaveBeenLastCalledWith(
`Called openTCFConsentDialog.`
)
expect(logDebugging).toHaveBeenCalledWith(`Called openTCFConsentDialog.`)
})

it('calls logError and does not throw if something goes wrong', async () => {
Expand Down Expand Up @@ -673,9 +671,7 @@ describe('index.js: openCCPAConsentDialog', () => {
index.initializeCMP()
await index.openCCPAConsentDialog()
const { logDebugging } = require('src/logger')
expect(logDebugging).toHaveBeenLastCalledWith(
`Called openCCPAConsentDialog.`
)
expect(logDebugging).toHaveBeenCalledWith(`Called openCCPAConsentDialog.`)
})

it('calls logError and does not throw if something goes wrong', async () => {
Expand Down
1 change: 1 addition & 0 deletions src/qcChoiceModified.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export const setUpQuantcastChoice = () => {
'' +
''
const stylesElement = document.createElement('style')
// eslint-disable-next-line prefer-regex-literals
const re = new RegExp('&quote;', 'g')
css = css.replace(re, '"')
stylesElement.type = 'text/css'
Expand Down
Loading