migrate mcaptcha-glue to @mcaptcha/vanilla-glue

This commit is contained in:
realaravinth 2021-12-16 20:57:39 +05:30
parent 73ce2d1cb1
commit 9999bd887a
No known key found for this signature in database
GPG key ID: AD9F0F08E855ED88
4 changed files with 17 additions and 10 deletions

View file

@ -38,6 +38,6 @@
"dependencies": {
"@mcaptcha/pow-wasm": "^0.1.0-alpha-1",
"@mcaptcha/pow_sha256-polyfill": "^0.1.0-alpha-1",
"mcaptcha-glue": "^0.1.0-alpha-1"
"@mcaptcha/vanilla-glue": "^0.1.0-alpha-1"
}
}

View file

@ -14,6 +14,6 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import * as lib from "mcaptcha-glue";
//import * as lib from "@mcaptcha/vanilla-glue";
export const register = (): void => lib.init();
//export const register = (): void => init();

View file

@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {init} from "mcaptcha-glue";
//import {init} from "mcaptcha-glue";
import VIEWS from "../../../views/v1/routes";
@ -69,5 +69,5 @@ export const index = (): void => {
const form = <HTMLFontElement>document.getElementById("form");
form.addEventListener("submit", login, true);
registerShowPassword();
init();
// init();
};

View file

@ -533,6 +533,11 @@
"@types/yargs" "^16.0.0"
chalk "^4.0.0"
"@mcaptcha/core-glue@^0.1.0-alpha-3":
version "0.1.0-alpha-3"
resolved "https://registry.yarnpkg.com/@mcaptcha/core-glue/-/core-glue-0.1.0-alpha-3.tgz#16c11cb3751b6421999353dc10c032afd08ffa8b"
integrity sha512-avphBVgf3PPDWuUoDsB2qiXAss2pc00lUILswJaMQofr8FQyflzkhha8H2Z+qGFiX0Iib/yyP2TOtBDbHqE9Tg==
"@mcaptcha/pow-wasm@^0.1.0-alpha-1":
version "0.1.0-alpha-1"
resolved "https://registry.yarnpkg.com/@mcaptcha/pow-wasm/-/pow-wasm-0.1.0-alpha-1.tgz#ec3fac9d34b7b6436dec6597629501e524a8b702"
@ -543,6 +548,13 @@
resolved "https://registry.yarnpkg.com/@mcaptcha/pow_sha256-polyfill/-/pow_sha256-polyfill-0.1.0-alpha-1.tgz#d34ee78de39223416358c540af46ea863e4373c2"
integrity sha512-lnQNBCOnVI9BunHP8FGCsGs310GguQWdxSspXlvWcrLwgl86aq0hlBzZfOV+szG/jeTRAMry0He3MrD/kbqB/Q==
"@mcaptcha/vanilla-glue@^0.1.0-alpha-1":
version "0.1.0-alpha-1"
resolved "https://registry.yarnpkg.com/@mcaptcha/vanilla-glue/-/vanilla-glue-0.1.0-alpha-1.tgz#6ddef419280853c55611d30fd44f4a31e7aab65f"
integrity sha512-GHPjUpqdgk9DquGnGYGDQertcwMENKUc4yr/Q3M7WzL6rPBs6JMCVdDHV22RGTxk3xBM19fGuDQ8GOyNauQ3hg==
dependencies:
"@mcaptcha/core-glue" "^0.1.0-alpha-3"
"@nodelib/fs.scandir@2.1.5":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@ -3668,11 +3680,6 @@ makeerror@1.0.x:
dependencies:
tmpl "1.0.x"
mcaptcha-glue@^0.1.0-alpha-1:
version "0.1.0-alpha-3"
resolved "https://registry.yarnpkg.com/mcaptcha-glue/-/mcaptcha-glue-0.1.0-alpha-3.tgz#0c1c5cfc6991de6571fb2c0f0950acac289e1141"
integrity sha512-C/Nfw4RGsmbozbyvxx/p0C7bUBn+YmP7tTl/8ORNdQiuy2VQUmD874LvbocnmSar8Isk/8rIaCqmVRBlRw/Yaw==
mdn-data@2.0.14:
version "2.0.14"
resolved "https://registry.yarnpkg.com/mdn-data/-/mdn-data-2.0.14.tgz#7113fc4281917d63ce29b43446f701e68c25ba50"