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

react-turnstile

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-turnstile - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

.github/workflows/ci.yml

28

dist/index.js
"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,

2

package.json
{
"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

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