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

react-script-hook

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-script-hook - npm Package Compare versions

Comparing version 1.0.14 to 1.0.15

7

lib/use-script.js

@@ -36,3 +36,8 @@ "use strict";

Object.keys(attributes).forEach(function (key) {
return scriptEl.setAttribute(key, attributes[key]);
if (scriptEl[key] === undefined) {
scriptEl.setAttribute(key, attributes[key]);
}
else {
scriptEl[key] = attributes[key];
}
});

@@ -39,0 +44,0 @@ var handleLoad = function () {

2

package.json
{
"name": "react-script-hook",
"version": "1.0.14",
"version": "1.0.15",
"description": "React hook to dynamically load an external script and know when its loaded",

@@ -5,0 +5,0 @@ "keywords": [

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