react-turnstile
Advanced tools
Comparing version 1.0.0 to 1.0.1
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
const react_1 = tslib_1.__importStar(require("react")); | ||
const react_1 = __importStar(require("react")); | ||
const global = globalThis !== null && globalThis !== void 0 ? globalThis : window; | ||
@@ -43,3 +65,2 @@ let turnstileState = typeof global.turnstile !== "undefined" ? "ready" : "unloaded"; | ||
return; | ||
ref.current.innerHTML = ""; // remove old widget | ||
(async () => { | ||
@@ -60,2 +81,3 @@ if (!ref.current) | ||
// turnstile is loaded, render the widget | ||
ref.current.innerHTML = ""; // remove old widget | ||
const turnstileOptions = { | ||
@@ -62,0 +84,0 @@ sitekey, |
{ | ||
"name": "react-turnstile", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "React library for Cloudflare's Turnstile CAPTCHA alternative", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
{ | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"importHelpers": true, | ||
"declaration": true, | ||
@@ -6,0 +5,0 @@ "sourceMap": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16273
10
302