🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

next-restore-scroll-position

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

next-restore-scroll-position - npm Package Compare versions

Comparing version

to
1.0.9

4

dist/index.d.ts
interface Router {
asPath: string;
events: {
on: (event: unknown, callback: (data?: any) => void) => void;
off: (event: unknown, callback: (data?: any) => void) => void;
on: (event: any, callback: (data?: any) => void) => void;
off: (event: any, callback: (data?: any) => void) => void;
};

@@ -7,0 +7,0 @@ beforePopState: (callback: () => boolean) => void;

{
"name": "next-restore-scroll-position",
"version": "1.0.8",
"version": "1.0.9",
"description": "Restores scroll position when navigating back and forth in NextJS",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs",

@@ -7,4 +7,4 @@ import { useEffect, useRef } from 'react'

events: {
on: (event: unknown, callback: (data?: any) => void) => void
off: (event: unknown, callback: (data?: any) => void) => void
on: (event: any, callback: (data?: any) => void) => void
off: (event: any, callback: (data?: any) => void) => void
}

@@ -11,0 +11,0 @@ beforePopState: (callback: () => boolean) => void

Sorry, the diff of this file is not supported yet