New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-notification-badge

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-notification-badge - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

4

CHANGELOG.md
## Change Log
### Ver 1.3.3
* #25 [There's a logical mistake in 'AnimationCounter.js' file!](https://github.com/georgeOsdDev/react-notification-badge/issues/25)
### Ver 1.3.2

@@ -4,0 +8,0 @@

8

lib/components/AnimationCounter.js

@@ -9,4 +9,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
var _react = require('react');

@@ -44,3 +42,3 @@

var requestAnimationFrame = function () {
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
return defaultSetTimeout;

@@ -53,3 +51,3 @@ } else {

var cancelAnimationFrame = function () {
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
return defaultClearTimeout;

@@ -61,3 +59,3 @@ } else {

var now = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== undefined && window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow);
var now = typeof window !== 'undefined' && window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow);

@@ -64,0 +62,0 @@ var getTime = function getTime() {

{
"name": "react-notification-badge",
"version": "1.3.2",
"version": "1.3.3",
"description": "Simple notification badge react component",

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

@@ -16,3 +16,3 @@ 'use strict';

const requestAnimationFrame = (() => {
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
return defaultSetTimeout;

@@ -30,3 +30,3 @@ } else {

const cancelAnimationFrame = (() => {
if (typeof window !== 'undefined') {
if (typeof window === 'undefined') {
return defaultClearTimeout;

@@ -43,3 +43,3 @@ } else {

const now = typeof window !== undefined &&
const now = typeof window !== 'undefined' &&
window.performance && (

@@ -46,0 +46,0 @@ performance.now ||

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