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

@hcaptcha/react-hcaptcha

Package Overview
Dependencies
Maintainers
4
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hcaptcha/react-hcaptcha - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

26

dist/index.js
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));

@@ -19,2 +26,6 @@

var React = _interopRequireWildcard(require("react"));
var _utils = require("./utils.js");
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }

@@ -24,8 +35,3 @@

var React = require('react');
var _require = require("./utils.js"),
generateQuery = _require.generateQuery; // Create script to init hCaptcha
// Create script to init hCaptcha
var onLoadListeners = [];

@@ -51,3 +57,3 @@ var apiScriptRequested = false; // Generate hCaptcha API Script

script.async = true;
var query = generateQuery(params);
var query = (0, _utils.generateQuery)(params);
script.src += query !== "" ? "&".concat(query) : "";

@@ -81,3 +87,3 @@ document.head.appendChild(script);

var isApiReady = typeof hcaptcha !== 'undefined';
_this.ref = React.createRef();
_this.ref = /*#__PURE__*/React.createRef();
_this.state = {

@@ -375,2 +381,4 @@ isApiReady: isApiReady,

module.exports = HCaptcha;
var _default = HCaptcha;
exports["default"] = _default;
module.exports = exports.default;

@@ -5,2 +5,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", {
value: true
});
exports.generateQuery = generateQuery;
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));

@@ -24,5 +29,2 @@

;
module.exports = {
generateQuery: generateQuery
};
;
{
"name": "@hcaptcha/react-hcaptcha",
"version": "1.3.1",
"version": "1.4.0",
"types": "types/index.d.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"files": [
"src",
"dist",
"types/index.d.ts"
"types"
],

@@ -17,3 +18,5 @@ "description": "A React library for hCaptcha",

"transpile": "babel src -d dist --copy-files",
"build": "npm run transpile",
"prebuild": "rimraf dist",
"build": "npm run transpile && npm run build:esm",
"build:esm": "cross-env BABEL_ENV=esm babel src -d dist/esm --copy-files",
"prepublishOnly": "npm run transpile"

@@ -40,2 +43,4 @@ },

"babel-loader": "^8.2.2",
"babel-plugin-add-module-exports": "^1.0.4",
"cross-env": "^7.0.3",
"html-webpack-plugin": "^3.2.0",

@@ -45,2 +50,3 @@ "jest": "^26.6.3",

"react-dom": "^16.14.0",
"rimraf": "^3.0.2",
"webpack": "^4.44.2",

@@ -51,4 +57,5 @@ "webpack-cli": "^3.3.12",

"dependencies": {
"@babel/runtime": "^7.17.9"
"@babel/runtime": "^7.17.9",
"@types/react": "^18.0.0"
}
}

@@ -1,3 +0,3 @@

const React = require('react');
const { generateQuery } = require("./utils.js");
import * as React from 'react';
import { generateQuery } from "./utils.js";

@@ -297,2 +297,2 @@ // Create script to init hCaptcha

module.exports = HCaptcha;
export default HCaptcha;

@@ -9,4 +9,2 @@ function generateQuery(params) {

module.exports = {
generateQuery
};
export { generateQuery };
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