Socket
Socket
Sign inDemoInstall

@mcaptcha/react-glue

Package Overview
Dependencies
7
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0-rc1 to 0.1.0-rc2

1

dist/index.d.ts

@@ -6,2 +6,3 @@ import { ReactElement } from 'react';

export declare const INPUT_LABEL_ID = "mcaptcha__token-label";
export declare const INSTRUCTIONS_URL = "https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/";
/**

@@ -8,0 +9,0 @@ * @param {URL?}widgetLink: URL of the widget. Use this only when you are using

12

dist/index.js

@@ -9,2 +9,3 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var INPUT_LABEL_ID = 'mcaptcha__token-label';
var INSTRUCTIONS_URL = 'https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/';
var MCaptchaWidget = function MCaptchaWidget(config) {

@@ -26,2 +27,5 @@ var containerStyle = {

}
if (input && input.current) {
input.current.readOnly = true;
}
});

@@ -40,3 +44,5 @@ w.listen();

htmlFor: INPUT_NAME
}, "mCaptcha Access token"), React.createElement("input", {
}, "mCaptcha authorization token.", ' ', React.createElement("a", {
href: INSTRUCTIONS_URL
}, "Instructions"), ".", React.createElement("input", {
ref: input,

@@ -46,6 +52,5 @@ id: INPUT_NAME,

value: token,
readOnly: true,
required: true,
type: 'text'
}), React.createElement("iframe", {
})), React.createElement("iframe", {
title: 'mCaptcha',

@@ -72,3 +77,4 @@ src: w.widgetLink.toString(),

exports.INPUT_NAME = INPUT_NAME;
exports.INSTRUCTIONS_URL = INSTRUCTIONS_URL;
exports.MCaptchaWidget = MCaptchaWidget;
//# sourceMappingURL=index.js.map

@@ -7,2 +7,3 @@ import { useRef, useState, useEffect, createElement } from 'react';

var INPUT_LABEL_ID = 'mcaptcha__token-label';
var INSTRUCTIONS_URL = 'https://mcaptcha.org/docs/user-manual/how-to-mcaptcha-without-js/';
var MCaptchaWidget = function MCaptchaWidget(config) {

@@ -24,2 +25,5 @@ var containerStyle = {

}
if (input && input.current) {
input.current.readOnly = true;
}
});

@@ -38,3 +42,5 @@ w.listen();

htmlFor: INPUT_NAME
}, "mCaptcha Access token"), createElement("input", {
}, "mCaptcha authorization token.", ' ', createElement("a", {
href: INSTRUCTIONS_URL
}, "Instructions"), ".", createElement("input", {
ref: input,

@@ -44,6 +50,5 @@ id: INPUT_NAME,

value: token,
readOnly: true,
required: true,
type: 'text'
}), createElement("iframe", {
})), createElement("iframe", {
title: 'mCaptcha',

@@ -62,3 +67,3 @@ src: w.widgetLink.toString(),

export { INPUT_LABEL_ID, INPUT_NAME, MCaptchaWidget };
export { INPUT_LABEL_ID, INPUT_NAME, INSTRUCTIONS_URL, MCaptchaWidget };
//# sourceMappingURL=index.modern.js.map
{
"name": "@mcaptcha/react-glue",
"version": "0.1.0-rc1",
"version": "0.1.0-rc2",
"description": "glue code to setup mCaptcha on your React website",

@@ -5,0 +5,0 @@ "author": "Aravinth Manivannan <realaravinth@batsense.net>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc