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

movenext

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

movenext - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/cjs/functions/moveNext.d.ts

@@ -13,3 +13,3 @@ export type Direction = "prev" | "next";

declare function moveNext<TData extends {
[key: string]: unknown;
[key: string]: any;
}[], TSelector, TCurrentId extends undefined | TSelector>(opts: {

@@ -16,0 +16,0 @@ data: TData;

@@ -12,2 +12,3 @@ "use strict";

*/
/* eslint-disable @typescript-eslint/no-explicit-any */
function moveNext(opts) {

@@ -14,0 +15,0 @@ var data = opts.data, direction = opts.direction, endBehaviour = opts.endBehaviour, selector = opts.selector, selectedId = opts.selectedId;

@@ -13,3 +13,3 @@ export type Direction = "prev" | "next";

declare function moveNext<TData extends {
[key: string]: unknown;
[key: string]: any;
}[], TSelector, TCurrentId extends undefined | TSelector>(opts: {

@@ -16,0 +16,0 @@ data: TData;

@@ -10,2 +10,3 @@ /**

*/
/* eslint-disable @typescript-eslint/no-explicit-any */
function moveNext(opts) {

@@ -12,0 +13,0 @@ var data = opts.data, direction = opts.direction, endBehaviour = opts.endBehaviour, selector = opts.selector, selectedId = opts.selectedId;

{
"name": "movenext",
"version": "1.0.0",
"version": "1.0.1",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -23,7 +23,7 @@ Simple and straightforward solution to get the next logical record.

- `data` `{ [key: string]: unknown }[]` _array of records_
- `data` `{ [key: string]: any }[]` _array of records_
- `direction` `'prev' | 'next'` _determines the direction_
- `endBehaviour` `'default' | 'jump'` _behaviour after the last logical entry_
- `selector(entry) => unknown` _callback for selecting the id reference_
- `entry` `{ [key: string]: unknown }` _entry of `data`_
- `selector(entry) => any` _callback for selecting the id reference_
- `entry` `{ [key: string]: any }` _entry of `data`_
- `selectedId` `undefined | ...` _current selected id_

@@ -30,0 +30,0 @@

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