Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-recaptcha-v3

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-recaptcha-v3 - npm Package Compare versions

Comparing version 1.5.0 to 1.6.1

25

dist/ReCaptchaVuePlugin.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -40,2 +41,3 @@ });

function VueReCaptcha(Vue, options) {
var _this = this;
var plugin = new ReCaptchaVuePlugin();

@@ -45,14 +47,18 @@ var recaptchaLoaded = false;

Vue.prototype.$recaptchaLoaded = function () { return new Promise(function (resolve, reject) {
if (recaptchaLoaded === true)
if (recaptchaLoaded === true) {
resolve(true);
else
}
else {
loadedWaiters.push(resolve);
}
}); };
plugin.initializeReCaptcha(options).then(function (wrapper) {
recaptchaLoaded = true;
Vue.prototype.$recaptcha = function (action) {
return wrapper.execute(action);
};
Vue.prototype.$recaptcha = function (action) { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
return [2, wrapper.execute(action)];
});
}); };
loadedWaiters.forEach(function (v) { return v(true); });
});
}).catch(console.error);
}

@@ -66,6 +72,3 @@ exports.VueReCaptcha = VueReCaptcha;

return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, recaptcha_v3_1.load(options.siteKey, options.loaderOptions)];
case 1: return [2, _a.sent()];
}
return [2, recaptcha_v3_1.load(options.siteKey, options.loaderOptions)];
});

@@ -72,0 +75,0 @@ });

{
"name": "vue-recaptcha-v3",
"version": "1.5.0",
"version": "1.6.1",
"keywords": [

@@ -29,6 +29,14 @@ "captcha",

"build": "tsc",
"lint": "eslint \"src/**/*.ts\" \"demo/**/*.ts\"",
"demo:webpack:server": "webpack-dev-server --config demo/webpack.config.js --progress --public --host 0.0.0.0"
},
"dependencies": {
"recaptcha-v3": "^1.5.0"
"@typescript-eslint/eslint-plugin": "2",
"eslint": "6",
"eslint-config-standard-with-typescript": "^9.0.0",
"eslint-plugin-import": "2",
"eslint-plugin-node": "9",
"eslint-plugin-promise": "4",
"eslint-plugin-standard": "4",
"recaptcha-v3": "^1.6.1"
},

@@ -38,13 +46,12 @@ "devDependencies": {

"html-webpack-plugin": "^3.2.0",
"ts-loader": "^5.3.0",
"tslint": "^5.11.0",
"typescript": "^3.1.6",
"vue": "^2.5.17",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2",
"webpack-dev-server": "^3.1.10"
"ts-loader": "^6.1.2",
"typescript": "^3.6.3",
"vue": "^2.6.10",
"webpack": "^4.41.0",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.8.1"
},
"peerDependencies": {
"vue": "^2.5.17"
"vue": "^2.6.10"
}
}

@@ -7,15 +7,15 @@ # Vue reCAPTCHA-v3

## Install
With NPM:
```bash
$ npm install vue-recaptcha-v3
```
## Install
With NPM:
```bash
$ npm install vue-recaptcha-v3
```
With Yarn:
```bash
$ yarn add vue-recaptcha-v3
```
With Yarn:
```bash
$ yarn add vue-recaptcha-v3
```
## Prerequisites
To use this package you only need a valid site key for your domain, which you can easily get [here](https://www.google.com/recaptcha).
## Prerequisites
To use this package you only need a valid site key for your domain, which you can easily get [here](https://www.google.com/recaptcha).

@@ -22,0 +22,0 @@ ## Usage

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc