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

react-countup

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-countup - npm Package Compare versions

Comparing version 6.0.0-0 to 6.0.0-1

19

build/index.js

@@ -192,4 +192,3 @@ 'use strict';

var createInstance = useEventCallback(function () {
return createCountUpInstance( // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
typeof ref === 'string' ? ref : ref.current, instanceProps);
return createCountUpInstance(typeof ref === 'string' ? ref : ref.current, instanceProps);
});

@@ -260,13 +259,11 @@ var getCountUp = useEventCallback(function (recreate) {

});
var maybeInitialize = useEventCallback(function () {
var maybeInitialize = useEventCallback(function (shouldReset) {
if (startOnMount) {
if (shouldReset) {
reset();
}
start();
}
});
var maybeReinitialize = useEventCallback(function () {
if (startOnMount) {
reset();
start();
}
});
React.useEffect(function () {

@@ -277,5 +274,5 @@ if (!isInitializedRef.current) {

} else if (enableReinitialize) {
maybeReinitialize();
maybeInitialize(true);
}
}, [enableReinitialize, isInitializedRef, maybeInitialize, maybeReinitialize, props]);
}, [enableReinitialize, isInitializedRef, maybeInitialize, delay, props.start, props.suffix, props.prefix, props.duration, props.separator, props.decimals, props.decimal, props.formattingFn]);
React.useEffect(function () {

@@ -282,0 +279,0 @@ return function () {

@@ -1,3 +0,3 @@

/// <reference types="react" />
import { CallbackProps, CommonProps, CountUpApi } from './types';
import React from 'react';
export interface useCountUpProps extends CommonProps, CallbackProps {

@@ -4,0 +4,0 @@ startOnMount?: boolean;

{
"name": "react-countup",
"version": "6.0.0-0",
"version": "6.0.0-1",
"description": "A React component wrapper around CountUp.js",

@@ -28,2 +28,3 @@ "author": "Glenn Reyes <glenn@glennreyes.com> (https://twitter.com/glnnrys)",

"scripts": {
"format": "prettier --write \"*.md\" \"src/**/*.ts\"",
"build": "rollup -c && tsc --emitDeclarationOnly --noEmit false --project src/tsconfig.json --outDir build",

@@ -40,4 +41,4 @@ "prepublishOnly": "yarn build",

"devDependencies": {
"@babel/core": "7.14.8",
"@babel/preset-env": "7.14.8",
"@babel/core": "7.15.0",
"@babel/preset-env": "7.15.0",
"@babel/preset-react": "7.14.5",

@@ -47,13 +48,13 @@ "@babel/preset-typescript": "^7.14.5",

"@testing-library/react": "12.0.0",
"@testing-library/react-hooks": "7.0.1",
"@testing-library/react-hooks": "7.0.2",
"@types/warning": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"babel-jest": "27.0.6",
"babel-jest": "27.1.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "27.0.6",
"jest": "27.1.0",
"prettier": "2.3.2",

@@ -65,3 +66,3 @@ "pretty-quick": "3.1.1",

"react-test-renderer": "17.0.2",
"rollup": "2.55.1",
"rollup": "2.56.3",
"rollup-plugin-babel": "4.4.0",

@@ -68,0 +69,0 @@ "typescript": "^4.3.5"

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