From 5e36316ebb5c5e60f267162a380f311c20dad672 Mon Sep 17 00:00:00 2001 From: Ishan khan Date: Wed, 17 Aug 2022 15:41:04 +0530 Subject: [PATCH] Updates for nodebb v2 --- package-lock.json | 31 +++++++++++++------------------ package.json | 2 +- plugin.json | 11 +++++++---- 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/package-lock.json b/package-lock.json index a87f6e1..b0d5ccf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,14 @@ { "name": "nodebb-plugin-fusionauth-oidc", - "version": "1.0.2", + "version": "1.0.4", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "nodebb-plugin-fusionauth-oidc", - "version": "1.0.2", + "version": "1.0.4", "license": "BSD-2-Clause", "dependencies": { - "async": "^2", + "async": "^3.0.8", "passport-oauth2": "^1.5.0" }, "devDependencies": { @@ -643,12 +642,9 @@ } }, "node_modules/async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "dependencies": { - "lodash": "^4.17.14" - } + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" }, "node_modules/babel-polyfill": { "version": "6.26.0", @@ -3102,7 +3098,8 @@ "node_modules/lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true }, "node_modules/lodash._reinterpolate": { "version": "3.0.0", @@ -5101,12 +5098,9 @@ "dev": true }, "async": { - "version": "2.6.3", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.3.tgz", - "integrity": "sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==", - "requires": { - "lodash": "^4.17.14" - } + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==" }, "babel-polyfill": { "version": "6.26.0", @@ -7019,7 +7013,8 @@ "lodash": { "version": "4.17.15", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" + "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", + "dev": true }, "lodash._reinterpolate": { "version": "3.0.0", diff --git a/package.json b/package.json index 2e2483d..d12b926 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "readmeFilename": "README.md", "dependencies": { - "async": "^2", + "async": "^3.0.8", "passport-oauth2": "^1.5.0" }, "nbbpm": { diff --git a/plugin.json b/plugin.json index 0fb39ca..dde3d29 100644 --- a/plugin.json +++ b/plugin.json @@ -3,7 +3,6 @@ "name": "OpenID Connect Plugin for NodeBB", "description": "Authenticate to FusionAuth or any OpenID Connect identity provider.", "url": "https://github.com/FusionAuth/nodebb-plugin-fusionauth-oidc", - "library": "./library.js", "templates": "templates", "hooks": [ { @@ -35,7 +34,11 @@ "method": "redirectLogout" } ], - "acpScripts": [ - "static/lib/admin.js" - ] + "nbbpm": { + "compatibility": "^2.0.0" + }, + "acpScripts": [], + "modules": { + "../admin/plugins/fusionauth-oidc.js": "static/lib/admin.js" + } }