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

@infinite-list/data-model

Package Overview
Dependencies
Maintainers
1
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infinite-list/data-model - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

README.md

38

dist/index.d.ts
import SelectValue from '@x-oasis/select-value';
import Batchinator from '@x-oasis/batchinator';
import PrefixIntervalTree from '@x-oasis/prefix-interval-tree';

@@ -71,39 +72,2 @@ declare class ItemMetaStateEventHelper {

declare class PrefixIntervalTree {
private _size;
private _half;
private _heap;
private _maxUsefulLength;
private _onUpdateItemLayout;
private _onUpdateIntervalTree;
constructor(xs: number[] | number, opts?: {
onUpdateItemLayout?: Function;
onUpdateIntervalTree?: Function;
});
initWithNumber(length: number): void;
initWithArray(arr: number[]): void;
static uniform(size: number, initialValue: number): PrefixIntervalTree;
static empty(size: number): PrefixIntervalTree;
stretch(): void;
remove(index: number): boolean;
set(index: number, value: number): void;
getMaxUsefulLength(): number;
get(index: number): number;
getSize(): number;
getHalf(): number;
getHeap(): number[];
getMaxValue(): number;
sumUntil(end: number): number;
sumTo(inclusiveEnd: number): number;
sum(begin: number, end: number): number;
greatestLowerBound(t: number): number;
greatestStrictLowerBound(t: number): number;
computeRange(minOffset: number, maxOffset: number): {
startIndex: number;
endIndex: number;
};
leastUpperBound(t: number): number;
leastStrictUpperBound(t: number): number;
}
declare class OnEndReachedHelper {

@@ -110,0 +74,0 @@ readonly onEndReachedThreshold: number;

{
"name": "@infinite-list/data-model",
"version": "0.0.2",
"version": "0.0.3",
"files": [

@@ -24,2 +24,3 @@ "dist",

"@x-oasis/omit": "^0.0.8",
"@x-oasis/prefix-interval-tree": "^0.0.10",
"@x-oasis/resolve-changed": "^0.0.6",

@@ -26,0 +27,0 @@ "@x-oasis/select-value": "^0.0.6",

import BaseLayout from './BaseLayout';
import ItemMeta from './ItemMeta';
import PrefixIntervalTree from './PrefixIntervalTree';
import PrefixIntervalTree from '@x-oasis/prefix-interval-tree';
import { removeItemsKeyword } from './common';

@@ -5,0 +5,0 @@ import ViewabilityConfigTuples from './configs/ViewabilityConfigTuples';

@@ -28,3 +28,3 @@ export const DEFAULT_LAYOUT = {

export function shallowDiffers(prev: Object, next: Object): boolean {
for (let attribute in prev) {
for (const attribute in prev) {
if (!(attribute in next)) {

@@ -34,3 +34,3 @@ return true;

}
for (let attribute in next) {
for (const attribute in next) {
if (prev[attribute] !== next[attribute]) {

@@ -37,0 +37,0 @@ return true;

@@ -6,7 +6,7 @@ import Batchinator from '@x-oasis/batchinator';

private _batchUpdateEnabled: boolean;
private _value: boolean = false;
private _value = false;
readonly _eventName: string;
private _listeners: Array<StateEventListener> = [];
private _triggerBatchinator: Batchinator;
private _handleCount: number = 0;
private _handleCount = 0;
private _once: boolean;

@@ -13,0 +13,0 @@ readonly _key: string;

@@ -40,3 +40,3 @@ import Batchinator from '@x-oasis/batchinator';

if (typeof info === 'number') {
let length = info;
const length = info;
if (this._selectValue.selectLength(meta.getLayout()) !== length) {

@@ -43,0 +43,0 @@ this._selectValue.setLength(meta.getLayout(), length);

@@ -7,3 +7,3 @@ import noop from '@x-oasis/noop';

import ListGroupDimensions from './ListGroupDimensions';
import PrefixIntervalTree from './PrefixIntervalTree';
import PrefixIntervalTree from '@x-oasis/prefix-interval-tree';
import layoutEqual from '@x-oasis/layout-equal'

@@ -10,0 +10,0 @@ import omit from '@x-oasis/omit'

@@ -7,3 +7,3 @@ import Batchinator from '@x-oasis/batchinator';

import ListDimensions from './ListDimensions';
import PrefixIntervalTree from './PrefixIntervalTree';
import PrefixIntervalTree from '@x-oasis/prefix-interval-tree';
import {

@@ -10,0 +10,0 @@ isNotEmpty,

import BaseDimensions from './BaseDimensions';
import ItemMeta from './ItemMeta';
import PrefixIntervalTree from './PrefixIntervalTree';
import PrefixIntervalTree from '@x-oasis/prefix-interval-tree';
import layoutEqual from '@x-oasis/layout-equal'

@@ -5,0 +5,0 @@

@@ -5,3 +5,3 @@ import shallowEqual from '@x-oasis/shallow-equal';

class SortedItems {
export default class SortedItems {
readonly selectValue: SelectValue;

@@ -164,4 +164,4 @@ private _items: Array<ItemMeta> = [];

let min = 0;
let max = data.length - 1;
const min = 0;
const max = data.length - 1;

@@ -221,3 +221,1 @@ const minValue = getValue(data[min]);

}
export default SortedItems;
class ListSpyUtils {
private _enableDispatchOnScroll: boolean = true;
private _enableDispatchOnScroll = true;
constructor() {}

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

@@ -16,3 +16,3 @@ import Batchinator from '@x-oasis/batchinator';

private onEndReached: OnEndReached;
private _waitingForDataChangedSinceEndReached: boolean = false;
private _waitingForDataChangedSinceEndReached = false;
private _onEndReachedTimeoutHandler: NodeJS.Timeout;

@@ -19,0 +19,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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