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

react-hubspot-form

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hubspot-form - npm Package Compare versions

Comparing version 1.3.1 to 1.3.3

10

dist/index.js

@@ -51,2 +51,6 @@ 'use strict';

if (window.hbspt) {
// protect against component unmounting before window.hbspt is available
if (this.el === null) {
return;
}
var props = _extends({}, this.props);

@@ -78,2 +82,6 @@ delete props.loading;

value: function findFormElement() {
// protect against component unmounting before form is added
if (this.el === null) {
return;
}
var form = this.el.querySelector('form');

@@ -97,3 +105,3 @@ if (form) {

this.onSubmitInterval = setInterval(function () {
if (!_this2.el.querySelector('form')) {
if (!_this2.el.querySelector('iframe')) {
clearInterval(_this2.onSubmitInterval);

@@ -100,0 +108,0 @@ if (_this2.props.onSubmit) {

2

package.json
{
"name": "react-hubspot-form",
"version": "1.3.1",
"version": "1.3.3",
"keywords": [

@@ -5,0 +5,0 @@ "react",

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