@tanem/react-nprogress
Advanced tools
Comparing version 5.0.22 to 5.0.23
@@ -1,3 +0,3 @@ | ||
declare type Next = () => void; | ||
declare type Callback = (next: Next) => void; | ||
type Next = () => void; | ||
type Callback = (next: Next) => void; | ||
export declare const createQueue: () => { | ||
@@ -4,0 +4,0 @@ clear: () => void; |
import * as React from 'react'; | ||
import { Options } from './types'; | ||
import { useNProgress } from './useNProgress'; | ||
declare type Props = Options & { | ||
type Props = Options & { | ||
children: (renderProps: ReturnType<typeof useNProgress>) => React.ReactElement; | ||
@@ -6,0 +6,0 @@ }; |
import * as React from 'react'; | ||
import { Options } from './types'; | ||
import { useNProgress } from './useNProgress'; | ||
declare type Outer<P> = P & Options; | ||
declare type Inner<P> = P & ReturnType<typeof useNProgress>; | ||
type Outer<P> = P & Options; | ||
type Inner<P> = P & ReturnType<typeof useNProgress>; | ||
export declare function withNProgress<P>(BaseComponent: React.ComponentType<Inner<P>>): React.FC<Outer<P>>; | ||
export {}; |
{ | ||
"name": "@tanem/react-nprogress", | ||
"version": "5.0.22", | ||
"version": "5.0.23", | ||
"description": "A React primitive for building slim progress bars.", | ||
@@ -69,7 +69,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@babel/runtime": "^7.20.6", | ||
"@babel/runtime": "^7.20.7", | ||
"hoist-non-react-statics": "^3.3.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.20.5", | ||
"@babel/core": "7.20.7", | ||
"@babel/plugin-transform-runtime": "7.19.6", | ||
@@ -86,11 +86,12 @@ "@babel/preset-env": "7.20.2", | ||
"@types/hoist-non-react-statics": "3.3.1", | ||
"@types/jest": "29.2.4", | ||
"@types/jest": "29.2.5", | ||
"@types/mock-raf": "1.0.3", | ||
"@types/node": "18.11.18", | ||
"@types/react": "18.0.26", | ||
"@types/react-dom": "18.0.9", | ||
"@typescript-eslint/eslint-plugin": "5.47.0", | ||
"@typescript-eslint/parser": "5.47.0", | ||
"@types/react-dom": "18.0.10", | ||
"@typescript-eslint/eslint-plugin": "5.48.0", | ||
"@typescript-eslint/parser": "5.48.0", | ||
"babel-core": "6.26.3", | ||
"eslint": "8.30.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint": "8.31.0", | ||
"eslint-config-prettier": "8.6.0", | ||
"eslint-plugin-react": "7.31.11", | ||
@@ -108,9 +109,9 @@ "eslint-plugin-react-hooks": "4.6.0", | ||
"regenerator-runtime": "0.13.11", | ||
"rollup": "3.7.5", | ||
"rollup": "3.9.1", | ||
"rollup-plugin-sourcemaps": "0.6.3", | ||
"shx": "0.3.4", | ||
"tanem-scripts": "6.0.67", | ||
"tanem-scripts": "6.0.68", | ||
"ts-jest": "29.0.3", | ||
"typescript": "4.8.4" | ||
"typescript": "4.9.4" | ||
} | ||
} |
# react-nprogress | ||
[![npm version](https://img.shields.io/npm/v/@tanem/react-nprogress.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/react-nprogress) | ||
[![build status](https://img.shields.io/github/workflow/status/tanem/react-nprogress/CI?style=flat-square)](https://github.com/tanem/react-nprogress/actions?query=workflow%3ACI) | ||
[![build status](https://img.shields.io/github/actions/workflow/status/tanem/react-nprogress/ci.yml?style=flat-square)](https://github.com/tanem/react-nprogress/actions?query=workflow%3ACI) | ||
[![coverage status](https://img.shields.io/codecov/c/github/tanem/react-nprogress.svg?style=flat-square)](https://codecov.io/gh/tanem/react-nprogress) | ||
@@ -6,0 +6,0 @@ [![npm downloads](https://img.shields.io/npm/dm/@tanem/react-nprogress.svg?style=flat-square)](https://www.npmjs.com/package/@tanem/react-nprogress) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175850
40
Updated@babel/runtime@^7.20.7