diff --git a/package-lock.json b/package-lock.json index 38bce82ce3..9193f23150 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "name": "keycloak-admin-ui", "license": "Apache", "dependencies": { - "@keycloak/keycloak-admin-client": "^19.0.0-dev.16", + "@keycloak/keycloak-admin-client": "^19.0.0-dev.17", "@patternfly/patternfly": "^4.202.1", "@patternfly/react-code-editor": "^4.65.1", "@patternfly/react-core": "^4.224.1", @@ -2205,17 +2205,20 @@ } }, "node_modules/@keycloak/keycloak-admin-client": { - "version": "19.0.0-dev.16", - "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-19.0.0-dev.16.tgz", - "integrity": "sha512-WSsP+vIvhsf3uQhjYbpVMvuFcCSFwbqOzFyPXtsoCOrW+BPUwLxexkl5pOWGmeqCXDZjxxlCF+8StmCl5zPoMQ==", + "version": "19.0.0-dev.17", + "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-19.0.0-dev.17.tgz", + "integrity": "sha512-tzhTd0Hlu79ZfU7Cz4POlBkl+kcMEccOuOXiXx7Lh1rkM0nNnfsik9R83yJxcfi3nJK/aOnYHmdP+5sQLjBVXw==", "dependencies": { "axios": "^0.27.2", - "camelize-ts": "^1.0.8", + "camelize-ts": "^2.1.1", "keycloak-js": "^18.0.0", - "lodash": "^4.17.21", + "lodash-es": "^4.17.21", "query-string": "^7.0.1", - "url-join": "^4.0.0", - "url-template": "^2.0.8" + "url-join": "^5.0.0", + "url-template": "^3.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/@nodelib/fs.scandir": { @@ -5377,7 +5380,8 @@ }, "node_modules/axios": { "version": "0.27.2", - "license": "MIT", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", "dependencies": { "follow-redirects": "^1.14.9", "form-data": "^4.0.0" @@ -5385,7 +5389,8 @@ }, "node_modules/axios/node_modules/form-data": { "version": "4.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -6312,15 +6317,11 @@ } }, "node_modules/camelize-ts": { - "version": "1.0.8", - "license": "MIT", - "dependencies": { - "lodash.camelcase": "^4.3.0", - "lodash.isdate": "^4.0.1", - "lodash.isregexp": "^4.0.1" - }, - "peerDependencies": { - "typescript": "^4.1.3" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelize-ts/-/camelize-ts-2.1.1.tgz", + "integrity": "sha512-PhU5pNZvg4lRTXYHYzCvq3stESnsYcBBjqG9HIEAb+HjVAnZ1aU+N3mgU+7wvKpOQSRx4AxEHAtAAyEjS7U0aw==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" } }, "node_modules/caniuse-api": { @@ -9585,7 +9586,8 @@ }, "node_modules/filter-obj": { "version": "1.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==", "engines": { "node": ">=0.10.0" } @@ -9666,14 +9668,15 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.0", + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", + "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==", "funding": [ { "type": "individual", "url": "https://github.com/sponsors/RubenVerborgh" } ], - "license": "MIT", "engines": { "node": ">=4.0" }, @@ -11372,7 +11375,8 @@ }, "node_modules/js-sha256": { "version": "0.9.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", + "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, "node_modules/js-tokens": { "version": "4.0.0", @@ -11656,8 +11660,9 @@ "license": "MIT" }, "node_modules/keycloak-js": { - "version": "18.0.0", - "license": "Apache-2.0", + "version": "18.0.1", + "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-18.0.1.tgz", + "integrity": "sha512-IRXToYpbIrkyfLeNNJly2OjUCf11ncx2Sdsg257NVDwjOYE923osu47w8pfxEVWpTaS14/Y2QjbTHciuBK0RBQ==", "dependencies": { "base64-js": "^1.5.1", "js-sha256": "^0.9.0" @@ -12229,6 +12234,7 @@ }, "node_modules/lodash.camelcase": { "version": "4.3.0", + "dev": true, "license": "MIT" }, "node_modules/lodash.debounce": { @@ -12237,14 +12243,6 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, - "node_modules/lodash.isdate": { - "version": "4.0.1", - "license": "MIT" - }, - "node_modules/lodash.isregexp": { - "version": "4.0.1", - "license": "MIT" - }, "node_modules/lodash.memoize": { "version": "4.1.2", "dev": true, @@ -15073,8 +15071,9 @@ } }, "node_modules/query-string": { - "version": "7.0.1", - "license": "MIT", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.1.tgz", + "integrity": "sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w==", "dependencies": { "decode-uri-component": "^0.2.0", "filter-obj": "^1.1.0", @@ -16864,7 +16863,8 @@ }, "node_modules/split-on-first": { "version": "1.1.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==", "engines": { "node": ">=6" } @@ -17043,7 +17043,8 @@ }, "node_modules/strict-uri-encode": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==", "engines": { "node": ">=4" } @@ -18046,6 +18047,7 @@ "version": "4.7.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -18311,12 +18313,20 @@ } }, "node_modules/url-join": { - "version": "4.0.1", - "license": "MIT" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz", + "integrity": "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } }, "node_modules/url-template": { - "version": "2.0.8", - "license": "BSD" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-template/-/url-template-3.0.0.tgz", + "integrity": "sha512-S6P5TcJ8GrGG+yzMZ8ojdtiGtQmQG+UOMelhE3X5uQrEEoq69aDQ05eASPQGj+CjsPVfumWKbH2HrjME46sk0g==", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } }, "node_modules/url/node_modules/punycode": { "version": "1.3.2", @@ -20967,17 +20977,17 @@ } }, "@keycloak/keycloak-admin-client": { - "version": "19.0.0-dev.16", - "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-19.0.0-dev.16.tgz", - "integrity": "sha512-WSsP+vIvhsf3uQhjYbpVMvuFcCSFwbqOzFyPXtsoCOrW+BPUwLxexkl5pOWGmeqCXDZjxxlCF+8StmCl5zPoMQ==", + "version": "19.0.0-dev.17", + "resolved": "https://registry.npmjs.org/@keycloak/keycloak-admin-client/-/keycloak-admin-client-19.0.0-dev.17.tgz", + "integrity": "sha512-tzhTd0Hlu79ZfU7Cz4POlBkl+kcMEccOuOXiXx7Lh1rkM0nNnfsik9R83yJxcfi3nJK/aOnYHmdP+5sQLjBVXw==", "requires": { "axios": "^0.27.2", - "camelize-ts": "^1.0.8", + "camelize-ts": "^2.1.1", "keycloak-js": "^18.0.0", - "lodash": "^4.17.21", + "lodash-es": "^4.17.21", "query-string": "^7.0.1", - "url-join": "^4.0.0", - "url-template": "^2.0.8" + "url-join": "^5.0.0", + "url-template": "^3.0.0" } }, "@nodelib/fs.scandir": { @@ -23320,6 +23330,8 @@ }, "axios": { "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", "requires": { "follow-redirects": "^1.14.9", "form-data": "^4.0.0" @@ -23327,6 +23339,8 @@ "dependencies": { "form-data": { "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", "requires": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -24020,12 +24034,9 @@ "dev": true }, "camelize-ts": { - "version": "1.0.8", - "requires": { - "lodash.camelcase": "^4.3.0", - "lodash.isdate": "^4.0.1", - "lodash.isregexp": "^4.0.1" - } + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelize-ts/-/camelize-ts-2.1.1.tgz", + "integrity": "sha512-PhU5pNZvg4lRTXYHYzCvq3stESnsYcBBjqG9HIEAb+HjVAnZ1aU+N3mgU+7wvKpOQSRx4AxEHAtAAyEjS7U0aw==" }, "caniuse-api": { "version": "3.0.0", @@ -26267,7 +26278,9 @@ } }, "filter-obj": { - "version": "1.1.0" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/filter-obj/-/filter-obj-1.1.0.tgz", + "integrity": "sha512-8rXg1ZnX7xzy2NGDVkBVaAy+lSlPNwad13BtgSlLuxfIslyt5Vg64U7tFcCt4WS1R0hvtnQybT/IyCkGZ3DpXQ==" }, "find-cache-dir": { "version": "3.3.2", @@ -26324,7 +26337,9 @@ } }, "follow-redirects": { - "version": "1.15.0" + "version": "1.15.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz", + "integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==" }, "for-in": { "version": "1.0.2" @@ -27428,7 +27443,9 @@ } }, "js-sha256": { - "version": "0.9.0" + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", + "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" }, "js-tokens": { "version": "4.0.0" @@ -27617,7 +27634,9 @@ "dev": true }, "keycloak-js": { - "version": "18.0.0", + "version": "18.0.1", + "resolved": "https://registry.npmjs.org/keycloak-js/-/keycloak-js-18.0.1.tgz", + "integrity": "sha512-IRXToYpbIrkyfLeNNJly2OjUCf11ncx2Sdsg257NVDwjOYE923osu47w8pfxEVWpTaS14/Y2QjbTHciuBK0RBQ==", "requires": { "base64-js": "^1.5.1", "js-sha256": "^0.9.0" @@ -27977,7 +27996,8 @@ "version": "4.17.21" }, "lodash.camelcase": { - "version": "4.3.0" + "version": "4.3.0", + "dev": true }, "lodash.debounce": { "version": "4.0.8", @@ -27985,12 +28005,6 @@ "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", "dev": true }, - "lodash.isdate": { - "version": "4.0.1" - }, - "lodash.isregexp": { - "version": "4.0.1" - }, "lodash.memoize": { "version": "4.1.2", "dev": true @@ -29901,7 +29915,9 @@ "dev": true }, "query-string": { - "version": "7.0.1", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-7.1.1.tgz", + "integrity": "sha512-MplouLRDHBZSG9z7fpuAAcI7aAYjDLhtsiVZsevsfaHWDS2IDdORKbSd1kWUA+V4zyva/HZoSfpwnYMMQDhb0w==", "requires": { "decode-uri-component": "^0.2.0", "filter-obj": "^1.1.0", @@ -31125,7 +31141,9 @@ "dev": true }, "split-on-first": { - "version": "1.1.0" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" }, "split-string": { "version": "3.1.0", @@ -31254,7 +31272,9 @@ "version": "1.0.1" }, "strict-uri-encode": { - "version": "2.0.0" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha512-QwiXZgpRcKkhTj2Scnn++4PKtWsH0kpzZ62L2R6c/LUVYv7hVnZqcg2+sMuT6R7Jusu1vviK/MFsu6kNJfWlEQ==" }, "string_decoder": { "version": "1.1.1", @@ -31993,7 +32013,8 @@ "typescript": { "version": "4.7.4", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz", - "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" + "integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==", + "dev": true }, "uglify-js": { "version": "3.16.2", @@ -32187,10 +32208,14 @@ } }, "url-join": { - "version": "4.0.1" + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-5.0.0.tgz", + "integrity": "sha512-n2huDr9h9yzd6exQVnH/jU5mr+Pfx08LRXXZhkLLetAMESRj+anQsTAh940iMrIetKAmry9coFuZQ2jY8/p3WA==" }, "url-template": { - "version": "2.0.8" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-template/-/url-template-3.0.0.tgz", + "integrity": "sha512-S6P5TcJ8GrGG+yzMZ8ojdtiGtQmQG+UOMelhE3X5uQrEEoq69aDQ05eASPQGj+CjsPVfumWKbH2HrjME46sk0g==" }, "use": { "version": "3.1.1" diff --git a/package.json b/package.json index 182a45d0ee..486048d69d 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "server:import-client": "./scripts/import-client.mjs" }, "dependencies": { - "@keycloak/keycloak-admin-client": "^19.0.0-dev.16", + "@keycloak/keycloak-admin-client": "^19.0.0-dev.17", "@patternfly/patternfly": "^4.202.1", "@patternfly/react-code-editor": "^4.65.1", "@patternfly/react-core": "^4.224.1", diff --git a/scripts/import-client.mjs b/scripts/import-client.mjs index 05d1059908..5cbc001a4a 100755 --- a/scripts/import-client.mjs +++ b/scripts/import-client.mjs @@ -11,7 +11,7 @@ const ADMIN_PASSWORD = "admin"; await importClient(); async function importClient() { - const adminClient = new KcAdminClient.default({ + const adminClient = new KcAdminClient({ baseUrl: "http://127.0.0.1:8180", realmName: "master", });