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

react-stripe-script-loader

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-stripe-script-loader - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22

9

index.js

@@ -116,6 +116,7 @@ "use strict";

var iframesList = document.getElementsByTagName('iframe');
iframesList.filter(function (item) {
return item.name && item.name.indexOf('privateStripe') === 0;
}).map(function (filteredItem) {
return filteredItem.remove();
console.log(iframesList);
iframesList && iframesList.map(function (item, index) {
if (item.name && item.name.indexOf('privateStripe') === 0) {
return document.body.removeChild(frames[index]);
}
});

@@ -122,0 +123,0 @@ scriptElement.remove();

{
"name": "react-stripe-script-loader",
"version": "1.0.21",
"version": "1.0.22",
"description": "React component that lets load Stripe script and shows React Stripe Elements",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,6 +43,10 @@ import React, { useState, useEffect } from 'react'

const iframesList = document.getElementsByTagName('iframe')
console.log(iframesList)
iframesList &&
iframesList.map((item, index) => {
if (item.name && item.name.indexOf('privateStripe') === 0) {
return document.body.removeChild(frames[index])
}
})
iframesList
.filter(item => item.name && item.name.indexOf('privateStripe') === 0)
.map(filteredItem => filteredItem.remove())
scriptElement.remove()

@@ -49,0 +53,0 @@ }

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