From d58d84fd7fe50092730b577e4aadd7485f645f44 Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Fri, 10 Jan 2025 12:59:42 +0000 Subject: [PATCH 1/6] update fsevents --- package-lock.json | 115 ++----------------------------------- package.json | 5 +- server/plugins/html.js | 2 +- tests/integration/utils.js | 9 ++- webtask.json | 2 +- 5 files changed, 16 insertions(+), 117 deletions(-) diff --git a/package-lock.json b/package-lock.json index 62045e12..1303fcb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6705,21 +6705,6 @@ "url": "https://ko-fi.com/tunnckoCore/commissions" } }, - "node_modules/auth0-extensions-cli/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/auth0-extensions-cli/node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -10385,17 +10370,6 @@ "node": ">=0.10.0" } }, - "node_modules/bindings": { - "version": "1.5.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/bindings/-/bindings-1.5.0.tgz", - "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", - "dev": true, - "license": "MIT", - "optional": true, - "dependencies": { - "file-uri-to-path": "1.0.0" - } - }, "node_modules/blipp": { "version": "4.0.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/blipp/-/blipp-4.0.2.tgz", @@ -15805,14 +15779,6 @@ "node": ">=4.0.0" } }, - "node_modules/file-uri-to-path": { - "version": "1.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", - "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==", - "dev": true, - "license": "MIT", - "optional": true - }, "node_modules/filelist": { "version": "1.0.4", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/filelist/-/filelist-1.0.4.tgz", @@ -16322,10 +16288,9 @@ "license": "ISC" }, "node_modules/fsevents": { - "version": "1.2.13", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-1.2.13.tgz", - "integrity": "sha512-oWb1Z6mkHIskLzEJ/XWX0srkpkTQ7vaopMQkyaEIoq0fmtFVxOthb8cCxeT+p3ynTdkk/RZwbgG4brR5BeWECw==", - "deprecated": "Upgrade to fsevents v2 to mitigate potential security issues", + "version": "2.3.3", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -16333,12 +16298,8 @@ "os": [ "darwin" ], - "dependencies": { - "bindings": "^1.5.0", - "nan": "^2.12.1" - }, "engines": { - "node": ">= 4.0" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, "node_modules/function-bind": { @@ -23224,21 +23185,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mocha/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/mocha/node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -23699,14 +23645,6 @@ "thenify-all": "^1.0.0" } }, - "node_modules/nan": { - "version": "2.22.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/nan/-/nan-2.22.0.tgz", - "integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==", - "dev": true, - "license": "MIT", - "optional": true - }, "node_modules/nanoassert": { "version": "1.1.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/nanoassert/-/nanoassert-1.1.0.tgz", @@ -24710,21 +24648,6 @@ "node": ">=8" } }, - "node_modules/nodemon/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/nodemon/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/glob-parent/-/glob-parent-5.1.2.tgz", @@ -35138,21 +35061,6 @@ "node": ">=8" } }, - "node_modules/webpack-dev-server/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/webpack-dev-server/node_modules/glob-parent": { "version": "5.1.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/glob-parent/-/glob-parent-5.1.2.tgz", @@ -35825,21 +35733,6 @@ "node": ">=0.8.0" } }, - "node_modules/webtask-bundle/node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/webtask-bundle/node_modules/glob": { "version": "6.0.4", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/glob/-/glob-6.0.4.tgz", diff --git a/package.json b/package.json index 545375ff..aad361db 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0-authz", - "version": "2.12.1", + "version": "2.12.2", "description": "Auth0 Authorization Extension", "engines": { "node": "18.16.0" @@ -203,6 +203,7 @@ "@babel/runtime": "npm:@babel/runtime-corejs3@7.26.0" } }, - "cheerio": "1.0.0-rc.3" + "cheerio": "1.0.0-rc.3", + "fsevents": "2.3.3" } } diff --git a/server/plugins/html.js b/server/plugins/html.js index 53758079..3ac5024f 100644 --- a/server/plugins/html.js +++ b/server/plugins/html.js @@ -25,7 +25,7 @@ const assembleHtmlRoute = (link) => ({ BASE_URL: getBaseUrl(req), API_BASE: getBaseUrl(req), BASE_PATH: getBasePath(req), - EXTENSION_VERSION: '2.12.1', + EXTENSION_VERSION: '2.12.2', SEARCH_ENGINE: ( (config('AUTH0_RTA').replace('https://', '') === 'auth0.auth0.com') || config('IS_LAYER0_TEST_SPACE') diff --git a/tests/integration/utils.js b/tests/integration/utils.js index 1bc9f13b..370f4355 100644 --- a/tests/integration/utils.js +++ b/tests/integration/utils.js @@ -14,12 +14,17 @@ export const credentials = { * Get an access token for the Authorization Extension API. */ export const getAccessToken = async () => { - const result = await request + try { + const result = await request .post(`https://${config('AUTH0_DOMAIN')}/oauth/token`) .send(credentials) .set('Content-Type', 'application/json'); - return result.body.access_token; + return result.body.access_token; + } catch (error) { + console.log(error); + } + }; export const authzApi = (endpoint) => (config('AUTHZ_API_URL') + endpoint); diff --git a/webtask.json b/webtask.json index 0c72c880..054813d4 100644 --- a/webtask.json +++ b/webtask.json @@ -1,7 +1,7 @@ { "title": "Auth0 Authorization", "name": "auth0-authz", - "version": "2.12.1", + "version": "2.12.2", "author": "auth0", "description": "This extension gives Auth0 customers the possibility to manage group memberships for their users.", "type": "application", From 30b6fb78dbdcc14e4ccd5106ce3a1a9134082237 Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Fri, 10 Jan 2025 14:20:29 +0000 Subject: [PATCH 2/6] add comment to integration tests for troubleshooting --- package-lock.json | 4 ++-- tests/integration/utils.js | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1303fcb7..e9b05d0c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "auth0-authz", - "version": "2.12.1", + "version": "2.12.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "auth0-authz", - "version": "2.12.1", + "version": "2.12.2", "license": "MIT", "dependencies": { "@hapi/boom": "10.0.1", diff --git a/tests/integration/utils.js b/tests/integration/utils.js index 370f4355..6faeb6bc 100644 --- a/tests/integration/utils.js +++ b/tests/integration/utils.js @@ -10,21 +10,24 @@ export const credentials = { grant_type: 'client_credentials' }; +/* +Things to check if integration tests are failing: +- update the client_id and client_secret in the config.json file, for the env you're testing against +- ensure the api is enabled in the extension and a client grant between the authz api and the client exists +- ensure there is a client grant between the management api and the authz client as a couple of scopes are required to add and delete some stuff during the tests +*/ + + /* * Get an access token for the Authorization Extension API. */ export const getAccessToken = async () => { - try { - const result = await request + const result = await request .post(`https://${config('AUTH0_DOMAIN')}/oauth/token`) .send(credentials) .set('Content-Type', 'application/json'); return result.body.access_token; - } catch (error) { - console.log(error); - } - }; export const authzApi = (endpoint) => (config('AUTHZ_API_URL') + endpoint); From 42876b269bd944c56ad7ea9aa02d52cf14ffa651 Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Mon, 13 Jan 2025 13:15:08 +0000 Subject: [PATCH 3/6] Add bundle analyzer --- build/webpack/config.prod.js | 10 +- package-lock.json | 344 +++++++++++++++++++++++++---------- package.json | 1 + report-large.html | 39 ++++ 4 files changed, 296 insertions(+), 98 deletions(-) create mode 100644 report-large.html diff --git a/build/webpack/config.prod.js b/build/webpack/config.prod.js index e4ee563e..d6cbbb3e 100644 --- a/build/webpack/config.prod.js +++ b/build/webpack/config.prod.js @@ -6,6 +6,7 @@ const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin; const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); +const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const project = require('../../package.json'); const config = require('./config.base.js'); @@ -80,7 +81,14 @@ config.plugins = [ return JSON.stringify(chunks); } }), - new NodePolyfillPlugin() + new NodePolyfillPlugin(), + new BundleAnalyzerPlugin({ + reportFilename: 'report.html', + statsFilename: 'stats.json', + analyzerMode: 'static', + generateStatsFile: true, + statsOptions: { source: false } + }) ]; config.optimization = { diff --git a/package-lock.json b/package-lock.json index e9b05d0c..eefab2e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -127,6 +127,7 @@ "uglify-js": "^3.17.4", "url-loader": "0.5.8", "webpack": "^5.90.1", + "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1", "webpack-hot-middleware": "^2.18.0", @@ -3600,6 +3601,13 @@ "node": ">=14" } }, + "node_modules/@polka/url": { + "version": "1.0.0-next.28", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@polka/url/-/url-1.0.0-next.28.tgz", + "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==", + "dev": true, + "license": "MIT" + }, "node_modules/@shellscape/koa-send": { "version": "4.1.3", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/@shellscape/koa-send/-/koa-send-4.1.3.tgz", @@ -4650,6 +4658,32 @@ "node": ">=0.4.0" } }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk/node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/adm-zip": { "version": "0.4.16", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/adm-zip/-/adm-zip-0.4.16.tgz", @@ -6547,6 +6581,17 @@ "dev": true, "license": "MIT" }, + "node_modules/auth0-extensions-cli/node_modules/ejs": { + "version": "2.7.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ejs/-/ejs-2.7.4.tgz", + "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==", + "dev": true, + "hasInstallScript": true, + "license": "Apache-2.0", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/auth0-extensions-cli/node_modules/emoji-regex": { "version": "7.0.3", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/emoji-regex/-/emoji-regex-7.0.3.tgz", @@ -6757,6 +6802,20 @@ "node": ">=6" } }, + "node_modules/auth0-extensions-cli/node_modules/gzip-size": { + "version": "4.1.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/gzip-size/-/gzip-size-4.1.0.tgz", + "integrity": "sha512-1g6EPVvIHuPmpAdBBpsIVYLgjzGV/QqcFRJXpMyrqEWG10JhOaTjQeCcjMDyX0Iqfm/Q5M9twR/mbDk5f5MqkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "duplexer": "^0.1.1", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/auth0-extensions-cli/node_modules/has-flag": { "version": "3.0.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/has-flag/-/has-flag-3.0.0.tgz", @@ -8103,6 +8162,92 @@ } } }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer": { + "version": "2.13.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.13.1.tgz", + "integrity": "sha512-rwxyfecTAxoarCC9VlHlIpfQCmmJ/qWD5bpbjkof+7HrNhTNZIwZITxN6CdlYL2axGmwNUQ+tFgcSOiNXMf/sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^5.3.0", + "bfj-node4": "^5.2.0", + "chalk": "^2.3.0", + "commander": "^2.13.0", + "ejs": "^2.5.7", + "express": "^4.16.2", + "filesize": "^3.5.11", + "gzip-size": "^4.1.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "opener": "^1.4.3", + "ws": "^4.0.0" + }, + "bin": { + "webpack-bundle-analyzer": "lib/bin/analyzer.js" + }, + "engines": { + "node": ">= 4" + } + }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer/node_modules/acorn": { + "version": "5.7.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer/node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true, + "license": "MIT" + }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/auth0-extensions-cli/node_modules/webpack-bundle-analyzer/node_modules/ws": { + "version": "4.1.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ws/-/ws-4.1.0.tgz", + "integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==", + "dev": true, + "license": "MIT", + "dependencies": { + "async-limiter": "~1.0.0", + "safe-buffer": "~5.1.0" + } + }, "node_modules/auth0-extensions-cli/node_modules/webpack-cli": { "version": "3.3.12", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/webpack-cli/-/webpack-cli-3.3.12.tgz", @@ -13266,6 +13411,13 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/debounce": { + "version": "1.2.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/debounce/-/debounce-1.2.1.tgz", + "integrity": "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug==", + "dev": true, + "license": "MIT" + }, "node_modules/debug": { "version": "4.4.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/debug/-/debug-4.4.0.tgz", @@ -16979,27 +17131,19 @@ } }, "node_modules/gzip-size": { - "version": "4.1.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/gzip-size/-/gzip-size-4.1.0.tgz", - "integrity": "sha512-1g6EPVvIHuPmpAdBBpsIVYLgjzGV/QqcFRJXpMyrqEWG10JhOaTjQeCcjMDyX0Iqfm/Q5M9twR/mbDk5f5MqkA==", + "version": "6.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/gzip-size/-/gzip-size-6.0.0.tgz", + "integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==", "dev": true, "license": "MIT", "dependencies": { - "duplexer": "^0.1.1", - "pify": "^3.0.0" + "duplexer": "^0.1.2" }, "engines": { - "node": ">=4" - } - }, - "node_modules/gzip-size/node_modules/pify": { - "version": "3.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/pify/-/pify-3.0.0.tgz", - "integrity": "sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/handle-thing": { @@ -23565,6 +23709,16 @@ "dev": true, "license": "ISC" }, + "node_modules/mrmime": { + "version": "2.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/mrmime/-/mrmime-2.0.0.tgz", + "integrity": "sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, "node_modules/ms": { "version": "2.0.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ms/-/ms-2.0.0.tgz", @@ -31112,6 +31266,21 @@ "semver": "bin/semver.js" } }, + "node_modules/sirv": { + "version": "2.0.4", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/sirv/-/sirv-2.0.4.tgz", + "integrity": "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, + "engines": { + "node": ">= 10" + } + }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/slash/-/slash-3.0.0.tgz", @@ -33264,6 +33433,16 @@ "integrity": "sha512-nfjOAu/zAWmX9tgwi5NRp7O7zTDUD1miHiB40klUnAh9qnL1iXdgzcz/i5dMaL5jahcBAaSfmNOBBJBLJW8TEg==", "license": "MIT" }, + "node_modules/totalist": { + "version": "3.0.1", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/totalist/-/totalist-3.0.1.tgz", + "integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/touch": { "version": "3.1.1", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/touch/-/touch-3.1.1.tgz", @@ -34589,117 +34768,88 @@ } }, "node_modules/webpack-bundle-analyzer": { - "version": "2.13.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/webpack-bundle-analyzer/-/webpack-bundle-analyzer-2.13.1.tgz", - "integrity": "sha512-rwxyfecTAxoarCC9VlHlIpfQCmmJ/qWD5bpbjkof+7HrNhTNZIwZITxN6CdlYL2axGmwNUQ+tFgcSOiNXMf/sQ==", + "version": "4.10.2", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.2.tgz", + "integrity": "sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw==", "dev": true, "license": "MIT", "dependencies": { - "acorn": "^5.3.0", - "bfj-node4": "^5.2.0", - "chalk": "^2.3.0", - "commander": "^2.13.0", - "ejs": "^2.5.7", - "express": "^4.16.2", - "filesize": "^3.5.11", - "gzip-size": "^4.1.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "opener": "^1.4.3", - "ws": "^4.0.0" + "@discoveryjs/json-ext": "0.5.7", + "acorn": "^8.0.4", + "acorn-walk": "^8.0.0", + "commander": "^7.2.0", + "debounce": "^1.2.1", + "escape-string-regexp": "^4.0.0", + "gzip-size": "^6.0.0", + "html-escaper": "^2.0.2", + "opener": "^1.5.2", + "picocolors": "^1.0.0", + "sirv": "^2.0.3", + "ws": "^7.3.1" }, "bin": { "webpack-bundle-analyzer": "lib/bin/analyzer.js" }, "engines": { - "node": ">= 4" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" + "node": ">= 10.13.0" } }, - "node_modules/webpack-bundle-analyzer/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/webpack-bundle-analyzer/node_modules/acorn": { + "version": "8.14.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "bin": { + "acorn": "bin/acorn" }, "engines": { - "node": ">=4" + "node": ">=0.4.0" } }, "node_modules/webpack-bundle-analyzer/node_modules/commander": { - "version": "2.20.3", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/commander/-/commander-2.20.3.tgz", - "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/webpack-bundle-analyzer/node_modules/ejs": { - "version": "2.7.4", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ejs/-/ejs-2.7.4.tgz", - "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==", - "dev": true, - "hasInstallScript": true, - "license": "Apache-2.0", - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/webpack-bundle-analyzer/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "version": "7.2.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/commander/-/commander-7.2.0.tgz", + "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", "dev": true, "license": "MIT", "engines": { - "node": ">=4" + "node": ">= 10" } }, - "node_modules/webpack-bundle-analyzer/node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true, - "license": "MIT" - }, - "node_modules/webpack-bundle-analyzer/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "node_modules/webpack-bundle-analyzer/node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "dev": true, "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/webpack-bundle-analyzer/node_modules/ws": { - "version": "4.1.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ws/-/ws-4.1.0.tgz", - "integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==", + "version": "7.5.10", + "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/ws/-/ws-7.5.10.tgz", + "integrity": "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==", "dev": true, "license": "MIT", - "dependencies": { - "async-limiter": "~1.0.0", - "safe-buffer": "~5.1.0" + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } } }, "node_modules/webpack-cli": { diff --git a/package.json b/package.json index aad361db..ff3975f5 100644 --- a/package.json +++ b/package.json @@ -177,6 +177,7 @@ "uglify-js": "^3.17.4", "url-loader": "0.5.8", "webpack": "^5.90.1", + "webpack-bundle-analyzer": "^4.10.2", "webpack-cli": "^5.1.4", "webpack-dev-server": "^4.15.1", "webpack-hot-middleware": "^2.18.0", diff --git a/report-large.html b/report-large.html new file mode 100644 index 00000000..490f71e6 --- /dev/null +++ b/report-large.html @@ -0,0 +1,39 @@ + + + + + + auth0-authz [13 Jan 2025 at 13:14] + + + + + + + + +
+ + + \ No newline at end of file From 413ed0ec6047e573dc77e1648590b6432d87d160 Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Mon, 13 Jan 2025 18:08:41 +0000 Subject: [PATCH 4/6] Specify core-js version in babelrc --- .babelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.babelrc b/.babelrc index e5e6c743..8eafbc19 100644 --- a/.babelrc +++ b/.babelrc @@ -1,5 +1,5 @@ { - "presets": ["@babel/preset-env", ["@babel/preset-react", {"runtime": "automatic"}]], + "presets": ["@babel/preset-env", ["@babel/preset-react", {"runtime": "automatic", "corejs": "3.39.0"}]], "plugins": ["@babel/plugin-proposal-export-default-from"], "sourceMaps": true } From 6782967f038cba8874ce58bdba215b5ae06e39e1 Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Mon, 13 Jan 2025 19:10:21 +0000 Subject: [PATCH 5/6] remove node polyfill --- build/webpack/config.prod.js | 3 +- package-lock.json | 343 ----------------------------------- package.json | 1 - 3 files changed, 1 insertion(+), 346 deletions(-) diff --git a/build/webpack/config.prod.js b/build/webpack/config.prod.js index d6cbbb3e..f36065c7 100644 --- a/build/webpack/config.prod.js +++ b/build/webpack/config.prod.js @@ -5,7 +5,7 @@ const path = require('path'); const StatsWriterPlugin = require('webpack-stats-plugin').StatsWriterPlugin; const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const TerserPlugin = require('terser-webpack-plugin'); -const NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); + const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; const project = require('../../package.json'); @@ -81,7 +81,6 @@ config.plugins = [ return JSON.stringify(chunks); } }), - new NodePolyfillPlugin(), new BundleAnalyzerPlugin({ reportFilename: 'report.html', statsFilename: 'stats.json', diff --git a/package-lock.json b/package-lock.json index eefab2e4..ade87c6d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -86,7 +86,6 @@ "mini-css-extract-plugin": "^2.8.0", "mocha": "11.0.1", "nock": "13.5.4", - "node-polyfill-webpack-plugin": "^4.1.0", "nodemon": "^2.0.2", "npm-run": "^4.1.2", "nyc": "17.1.0", @@ -10859,16 +10858,6 @@ "dev": true, "license": "MIT" }, - "node_modules/browser-resolve": { - "version": "2.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/browser-resolve/-/browser-resolve-2.0.0.tgz", - "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "resolve": "^1.17.0" - } - }, "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -12846,13 +12835,6 @@ "object-assign": "^4.1.1" } }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", - "dev": true, - "license": "MIT" - }, "node_modules/cross-env": { "version": "7.0.3", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/cross-env/-/cross-env-7.0.3.tgz", @@ -18983,23 +18965,6 @@ "xtend": "^4.0.0" } }, - "node_modules/is-nan": { - "version": "1.3.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/is-nan/-/is-nan-1.3.2.tgz", - "integrity": "sha512-E+zBKpQ2t6MEo1VsonYmluk9NxGrbzpeeLC2xIViuO2EjU2xsXsBPwTr3Ykv9l08UYEVEdWeRZNouaZqF6RN0w==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.0", - "define-properties": "^1.1.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-negated-glob": { "version": "1.0.0", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/is-negated-glob/-/is-negated-glob-1.0.0.tgz", @@ -19479,16 +19444,6 @@ "whatwg-fetch": ">=0.10.0" } }, - "node_modules/isomorphic-timers-promises": { - "version": "1.0.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/isomorphic-timers-promises/-/isomorphic-timers-promises-1.0.1.tgz", - "integrity": "sha512-u4sej9B1LPSxTGKB/HiuzvEQnXH0ECYkSVQU39koSwmFAxhlEAFl9RdTvLv4TOTQUgBS5O3O5fwUxk6byBZ+IQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - } - }, "node_modules/isstream": { "version": "0.1.2", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/isstream/-/isstream-0.1.2.tgz", @@ -24384,36 +24339,6 @@ "inherits": "2.0.3" } }, - "node_modules/node-polyfill-webpack-plugin": { - "version": "4.1.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/node-polyfill-webpack-plugin/-/node-polyfill-webpack-plugin-4.1.0.tgz", - "integrity": "sha512-b4ei444EKkOagG/yFqojrD3QTYM5IOU1f8tn9o6uwrG4qL+brI7oVhjPVd0ZL2xy+Z6CP5bu9w8XTvlWgiXHcw==", - "dev": true, - "license": "MIT", - "dependencies": { - "node-stdlib-browser": "^1.3.0", - "type-fest": "^4.27.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "webpack": ">=5" - } - }, - "node_modules/node-polyfill-webpack-plugin/node_modules/type-fest": { - "version": "4.31.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/type-fest/-/type-fest-4.31.0.tgz", - "integrity": "sha512-yCxltHW07Nkhv/1F6wWBr8kz+5BGMfP+RbRSYFnegVb0qV/UMT0G0ElBloPVerqn4M2ZV80Ir1FtCcYv1cT6vQ==", - "dev": true, - "license": "(MIT OR CC0-1.0)", - "engines": { - "node": ">=16" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/node-preload": { "version": "0.2.1", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/node-preload/-/node-preload-0.2.1.tgz", @@ -24434,248 +24359,6 @@ "dev": true, "license": "MIT" }, - "node_modules/node-stdlib-browser": { - "version": "1.3.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/node-stdlib-browser/-/node-stdlib-browser-1.3.0.tgz", - "integrity": "sha512-g/koYzOr9Fb1Jc+tHUHlFd5gODjGn48tHexUK8q6iqOVriEgSnd3/1T7myBYc+0KBVze/7F7n65ec9rW6OD7xw==", - "dev": true, - "license": "MIT", - "dependencies": { - "assert": "^2.0.0", - "browser-resolve": "^2.0.0", - "browserify-zlib": "^0.2.0", - "buffer": "^5.7.1", - "console-browserify": "^1.1.0", - "constants-browserify": "^1.0.0", - "create-require": "^1.1.1", - "crypto-browserify": "^3.11.0", - "domain-browser": "4.22.0", - "events": "^3.0.0", - "https-browserify": "^1.0.0", - "isomorphic-timers-promises": "^1.0.1", - "os-browserify": "^0.3.0", - "path-browserify": "^1.0.1", - "pkg-dir": "^5.0.0", - "process": "^0.11.10", - "punycode": "^1.4.1", - "querystring-es3": "^0.2.1", - "readable-stream": "^3.6.0", - "stream-browserify": "^3.0.0", - "stream-http": "^3.2.0", - "string_decoder": "^1.0.0", - "timers-browserify": "^2.0.4", - "tty-browserify": "0.0.1", - "url": "^0.11.4", - "util": "^0.12.4", - "vm-browserify": "^1.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-stdlib-browser/node_modules/assert": { - "version": "2.1.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/assert/-/assert-2.1.0.tgz", - "integrity": "sha512-eLHpSK/Y4nhMJ07gDaAzoX/XAKS8PSaojml3M0DM4JpV1LAi5JOJ/p6H/XWrl8L+DzVEvVCW1z3vWAaB9oTsQw==", - "dev": true, - "license": "MIT", - "dependencies": { - "call-bind": "^1.0.2", - "is-nan": "^1.3.2", - "object-is": "^1.1.5", - "object.assign": "^4.1.4", - "util": "^0.12.5" - } - }, - "node_modules/node-stdlib-browser/node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "license": "MIT", - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "node_modules/node-stdlib-browser/node_modules/domain-browser": { - "version": "4.22.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/domain-browser/-/domain-browser-4.22.0.tgz", - "integrity": "sha512-IGBwjF7tNk3cwypFNH/7bfzBcgSCbaMOD3GsaY1AU/JRrnHnYgEM0+9kQt52iZxjNsjBtJYtao146V+f8jFZNw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://bevry.me/fund" - } - }, - "node_modules/node-stdlib-browser/node_modules/events": { - "version": "3.3.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/node-stdlib-browser/node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/node-stdlib-browser/node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/node-stdlib-browser/node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/node-stdlib-browser/node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/node-stdlib-browser/node_modules/path-browserify": { - "version": "1.0.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/path-browserify/-/path-browserify-1.0.1.tgz", - "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-stdlib-browser/node_modules/pkg-dir": { - "version": "5.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/pkg-dir/-/pkg-dir-5.0.0.tgz", - "integrity": "sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==", - "dev": true, - "license": "MIT", - "dependencies": { - "find-up": "^5.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/node-stdlib-browser/node_modules/punycode": { - "version": "1.4.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-stdlib-browser/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/node-stdlib-browser/node_modules/stream-http": { - "version": "3.2.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/stream-http/-/stream-http-3.2.0.tgz", - "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", - "dev": true, - "license": "MIT", - "dependencies": { - "builtin-status-codes": "^3.0.0", - "inherits": "^2.0.4", - "readable-stream": "^3.6.0", - "xtend": "^4.0.2" - } - }, - "node_modules/node-stdlib-browser/node_modules/tty-browserify": { - "version": "0.0.1", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/tty-browserify/-/tty-browserify-0.0.1.tgz", - "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", - "dev": true, - "license": "MIT" - }, - "node_modules/node-stdlib-browser/node_modules/url": { - "version": "0.11.4", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/url/-/url-0.11.4.tgz", - "integrity": "sha512-oCwdVC7mTuWiPyjLUz/COz5TLk6wgp0RCsN+wHZ2Ekneac9w8uuV0njcbbie2ME+Vs+d6duwmYuR3HgQXs1fOg==", - "dev": true, - "license": "MIT", - "dependencies": { - "punycode": "^1.4.1", - "qs": "^6.12.3" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/node-uuid": { "version": "1.4.8", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/node-uuid/-/node-uuid-1.4.8.tgz", @@ -31978,32 +31661,6 @@ "node": ">= 0.8" } }, - "node_modules/stream-browserify": { - "version": "3.0.0", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/stream-browserify/-/stream-browserify-3.0.0.tgz", - "integrity": "sha512-H73RAHsVBapbim0tU2JwwOiXUj+fikfiaoYAKHF3VJfA0pe2BCzkhAHBlLG6REzE+2WNZcxOXjK7lkso+9euLA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "~2.0.4", - "readable-stream": "^3.5.0" - } - }, - "node_modules/stream-browserify/node_modules/readable-stream": { - "version": "3.6.2", - "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/readable-stream/-/readable-stream-3.6.2.tgz", - "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", - "dev": true, - "license": "MIT", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/stream-each": { "version": "1.2.3", "resolved": "https://a0us.jfrog.io/artifactory/api/npm/npm/stream-each/-/stream-each-1.2.3.tgz", diff --git a/package.json b/package.json index ff3975f5..e5daa4de 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,6 @@ "mini-css-extract-plugin": "^2.8.0", "mocha": "11.0.1", "nock": "13.5.4", - "node-polyfill-webpack-plugin": "^4.1.0", "nodemon": "^2.0.2", "npm-run": "^4.1.2", "nyc": "17.1.0", From 0fa37c2adba2a383343ec79d0ac398de69eb7b3b Mon Sep 17 00:00:00 2001 From: Tim Saunders Date: Mon, 13 Jan 2025 19:13:31 +0000 Subject: [PATCH 6/6] Switch analyzer to disabled --- build/webpack/config.prod.js | 3 ++- report-large.html | 39 ------------------------------------ tests/integration/utils.js | 2 +- 3 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 report-large.html diff --git a/build/webpack/config.prod.js b/build/webpack/config.prod.js index f36065c7..63d9b13f 100644 --- a/build/webpack/config.prod.js +++ b/build/webpack/config.prod.js @@ -84,7 +84,8 @@ config.plugins = [ new BundleAnalyzerPlugin({ reportFilename: 'report.html', statsFilename: 'stats.json', - analyzerMode: 'static', + // switch analyzerMode to 'static' to generate a static report + analyzerMode: 'disabled', generateStatsFile: true, statsOptions: { source: false } }) diff --git a/report-large.html b/report-large.html deleted file mode 100644 index 490f71e6..00000000 --- a/report-large.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - auth0-authz [13 Jan 2025 at 13:14] - - - - - - - - -
- - - \ No newline at end of file diff --git a/tests/integration/utils.js b/tests/integration/utils.js index 6faeb6bc..b4216b53 100644 --- a/tests/integration/utils.js +++ b/tests/integration/utils.js @@ -27,7 +27,7 @@ export const getAccessToken = async () => { .send(credentials) .set('Content-Type', 'application/json'); - return result.body.access_token; + return result.body.access_token; }; export const authzApi = (endpoint) => (config('AUTHZ_API_URL') + endpoint);