diff --git a/babelConfig.js b/babelConfig.js index a88491c0cae..aa4670969ca 100644 --- a/babelConfig.js +++ b/babelConfig.js @@ -26,6 +26,7 @@ module.exports = function (options = {}) { const plugins = [ [path.resolve(__dirname, './plugins/pbjsGlobals.js'), options], [useLocal('@babel/plugin-transform-runtime')], + [useLocal('@babel/plugin-proposal-private-methods')], ]; if (options.codeCoverage) { plugins.push([useLocal('babel-plugin-istanbul')]) diff --git a/package-lock.json b/package-lock.json index 3491a10db60..523b3d3d27b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "prebid.js", - "version": "8.27.0", + "version": "8.49.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "prebid.js", - "version": "8.27.0", + "version": "8.49.5", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.7", @@ -27,6 +27,7 @@ }, "devDependencies": { "@babel/eslint-parser": "^7.16.5", + "@babel/plugin-proposal-private-methods": "^7.18.6", "@wdio/browserstack-service": "^8.29.0", "@wdio/cli": "^8.29.0", "@wdio/concise-reporter": "^8.29.0", @@ -590,6 +591,23 @@ "@babel/core": "^7.0.0" } }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", @@ -30449,6 +30467,7 @@ } }, "plugins/eslint": { + "name": "eslint-plugin-prebid", "version": "1.0.0", "dev": true, "license": "Apache-2.0" @@ -30782,6 +30801,16 @@ "@babel/helper-plugin-utils": "^7.24.0" } }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", + "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, "@babel/plugin-proposal-private-property-in-object": { "version": "7.21.0-placeholder-for-preset-env.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", diff --git a/package.json b/package.json index d3666d19f09..f2fc580b643 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ }, "devDependencies": { "@babel/eslint-parser": "^7.16.5", + "@babel/plugin-proposal-private-methods": "^7.18.6", "@wdio/browserstack-service": "^8.29.0", "@wdio/cli": "^8.29.0", "@wdio/concise-reporter": "^8.29.0",