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

react-hook-notification

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-notification - npm Package Compare versions

Comparing version 3.3.3 to 3.3.4

8

dist/main/Initialize.js

@@ -34,5 +34,5 @@ "use strict";

createElement() {
const element = document.createElement('div');
const element = document === null || document === void 0 ? void 0 : document.createElement('div');
element.setAttribute('id', 'rhn-container');
document.body.appendChild(element);
document === null || document === void 0 ? void 0 : document.body.appendChild(element);
}

@@ -50,3 +50,3 @@ static getInstance() {

var _a;
(_a = document.getElementById('rhn-container')) === null || _a === void 0 ? void 0 : _a.remove();
(_a = document === null || document === void 0 ? void 0 : document.getElementById('rhn-container')) === null || _a === void 0 ? void 0 : _a.remove();
}

@@ -59,3 +59,3 @@ render(component) {

this.createElement();
react_dom_1.default.render(react_1.default.createElement(react_1.StrictMode, null, this.Component && react_1.default.createElement(this.Component, null)), document.getElementById('rhn-container'));
react_dom_1.default.render(react_1.default.createElement(react_1.StrictMode, null, this.Component && react_1.default.createElement(this.Component, null)), document === null || document === void 0 ? void 0 : document.getElementById('rhn-container'));
}

@@ -62,0 +62,0 @@ }

@@ -5,3 +5,3 @@ "use strict";

const defineAnimationSize = () => {
const windowWidth = window.innerWidth;
const windowWidth = (window === null || window === void 0 ? void 0 : window.innerWidth) || 0;
const windowIsLarger = windowWidth > 640;

@@ -8,0 +8,0 @@ return windowIsLarger ? 380 : windowWidth;

{
"version": "3.3.3",
"version": "3.3.4",
"license": "MIT",

@@ -4,0 +4,0 @@ "main": "dist/main/index.js",

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