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

@rimbu/list

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/list - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

4

dist/main/context.js

@@ -36,3 +36,3 @@ "use strict";

var source = sources[0];
if (source instanceof list_custom_1.ListNonEmptyBase && source.context === _this)
if (source.context === _this)
return source;

@@ -46,3 +46,3 @@ }

if (!stream_1.StreamSource.isEmptyInstance(source)) {
if (source instanceof list_custom_1.ListNonEmptyBase && source.context === _this) {
if (source.context === _this) {
if (null === result)

@@ -49,0 +49,0 @@ result = source;

@@ -8,3 +8,3 @@ "use strict";

var stream_1 = require("@rimbu/stream");
var list_custom_1 = require("../../list-custom");
var non_empty_1 = require("./non-empty");
var LeafBlock = /** @class */ (function (_super) {

@@ -246,3 +246,3 @@ (0, tslib_1.__extends)(LeafBlock, _super);

return LeafBlock;
}(list_custom_1.ListNonEmptyBase));
}(non_empty_1.ListNonEmptyBase));
exports.LeafBlock = LeafBlock;

@@ -249,0 +249,0 @@ var ReversedLeafBlock = /** @class */ (function (_super) {

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

var list_custom_1 = require("../../list-custom");
var non_empty_1 = require("./non-empty");
var LeafTree = /** @class */ (function (_super) {

@@ -276,4 +277,4 @@ (0, tslib_1.__extends)(LeafTree, _super);

return LeafTree;
}(list_custom_1.ListNonEmptyBase));
}(non_empty_1.ListNonEmptyBase));
exports.LeafTree = LeafTree;
//# sourceMappingURL=leaf-tree.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./implementation/leaf/non-empty"), exports);
(0, tslib_1.__exportStar)(require("./implementation/block"), exports);

@@ -10,3 +11,2 @@ (0, tslib_1.__exportStar)(require("./implementation/empty"), exports);

(0, tslib_1.__exportStar)(require("./implementation/tree/operations"), exports);
(0, tslib_1.__exportStar)(require("./implementation/leaf/non-empty"), exports);
(0, tslib_1.__exportStar)(require("./builder/block-builder"), exports);

@@ -13,0 +13,0 @@ (0, tslib_1.__exportStar)(require("./builder/builder-base"), exports);

import { RimbuError } from '@rimbu/base';
import { Reducer } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import { Empty, GenBuilder, LeafBlock, LeafBlockBuilder, LeafTree, LeafTreeBuilder, ListNonEmptyBase, NonLeafBlock, NonLeafBlockBuilder, NonLeafTree, NonLeafTreeBuilder, ReversedLeafBlock, } from './list-custom';
import { Empty, GenBuilder, LeafBlock, LeafBlockBuilder, LeafTree, LeafTreeBuilder, NonLeafBlock, NonLeafBlockBuilder, NonLeafTree, NonLeafTreeBuilder, ReversedLeafBlock, } from './list-custom';
export class ListContext {

@@ -23,3 +23,3 @@ constructor(blockSizeBits) {

const source = sources[0];
if (source instanceof ListNonEmptyBase && source.context === this)
if (source.context === this)
return source;

@@ -33,3 +33,3 @@ }

if (!StreamSource.isEmptyInstance(source)) {
if (source instanceof ListNonEmptyBase && source.context === this) {
if (source.context === this) {
if (null === result)

@@ -36,0 +36,0 @@ result = source;

import { Arr, RimbuError } from '@rimbu/base';
import { IndexRange, OptLazy, TraverseState, Update, } from '@rimbu/common';
import { Stream } from '@rimbu/stream';
import { ListNonEmptyBase } from '../../list-custom';
import { ListNonEmptyBase } from './non-empty';
export class LeafBlock extends ListNonEmptyBase {

@@ -6,0 +6,0 @@ constructor(context, children) {

import { RimbuError } from '@rimbu/base';
import { OptLazy, TraverseState, } from '@rimbu/common';
import { ListNonEmptyBase, treeAppend, treeForEach, treeGet, treePrepend, treeStream, treeToArray, treeUpdate, } from '../../list-custom';
import { treeAppend, treeForEach, treeGet, treePrepend, treeStream, treeToArray, treeUpdate, } from '../../list-custom';
import { ListNonEmptyBase } from './non-empty';
export class LeafTree extends ListNonEmptyBase {

@@ -5,0 +6,0 @@ constructor(context, left, right, middle, length = left.length +

@@ -0,1 +1,2 @@

export * from './implementation/leaf/non-empty';
export * from './implementation/block';

@@ -7,3 +8,2 @@ export * from './implementation/empty';

export * from './implementation/tree/operations';
export * from './implementation/leaf/non-empty';
export * from './builder/block-builder';

@@ -10,0 +10,0 @@ export * from './builder/builder-base';

@@ -6,4 +6,4 @@ import { ArrayNonEmpty, IndexRange, OptLazy, TraverseState, Update } from '@rimbu/common';

import type { Block, ListContext } from '../../list-custom';
import { ListNonEmptyBase } from '../../list-custom';
import type { LeafTree } from './leaf-tree';
import { ListNonEmptyBase } from './non-empty';
export declare class LeafBlock<T> extends ListNonEmptyBase<T> implements Block<T, LeafBlock<T>, T> {

@@ -10,0 +10,0 @@ readonly context: ListContext;

@@ -5,3 +5,3 @@ import { ArrayNonEmpty, IndexRange, OptLazy, TraverseState, Update } from '@rimbu/common';

import type { LeafBlock, ListContext, NonLeaf, Tree } from '../../list-custom';
import { ListNonEmptyBase } from '../../list-custom';
import { ListNonEmptyBase } from './non-empty';
export declare class LeafTree<T> extends ListNonEmptyBase<T> implements Tree<T, LeafTree<T>, LeafBlock<T>, T> {

@@ -8,0 +8,0 @@ readonly context: ListContext;

@@ -0,1 +1,2 @@

export * from './implementation/leaf/non-empty';
export * from './implementation/block';

@@ -7,3 +8,2 @@ export * from './implementation/empty';

export * from './implementation/tree/operations';
export * from './implementation/leaf/non-empty';
export * from './builder/block-builder';

@@ -10,0 +10,0 @@ export * from './builder/builder-base';

{
"name": "@rimbu/list",
"version": "0.8.2",
"version": "0.8.3",
"description": "An efficient immutable ordered sequence of elements akin to a Vector",

@@ -74,3 +74,3 @@ "keywords": [

},
"gitHead": "1594b907f4dbbd994a52f0e2e94ffd9217420ff5"
"gitHead": "aa942d41980ef39199f88d574c5138d54a24c372"
}

@@ -20,3 +20,2 @@ import { RimbuError } from '@rimbu/base';

LeafTreeBuilder,
ListNonEmptyBase,
NonLeafBlock,

@@ -86,4 +85,3 @@ NonLeafBlockBuilder,

const source = sources[0];
if (source instanceof ListNonEmptyBase && source.context === this)
return source;
if ((source as any).context === this) return source;
}

@@ -100,3 +98,3 @@

if (!StreamSource.isEmptyInstance(source)) {
if (source instanceof ListNonEmptyBase && source.context === this) {
if ((source as any).context === this) {
if (null === result) result = source as any as List<T>;

@@ -103,0 +101,0 @@ else result = result.concat(source);

@@ -13,4 +13,4 @@ import { Arr, RimbuError } from '@rimbu/base';

import type { Block, ListContext } from '../../list-custom';
import { ListNonEmptyBase } from '../../list-custom';
import type { LeafTree } from './leaf-tree';
import { ListNonEmptyBase } from './non-empty';

@@ -17,0 +17,0 @@ export class LeafBlock<T>

@@ -13,3 +13,2 @@ import { RimbuError } from '@rimbu/base';

import {
ListNonEmptyBase,
treeAppend,

@@ -23,2 +22,3 @@ treeForEach,

} from '../../list-custom';
import { ListNonEmptyBase } from './non-empty';

@@ -25,0 +25,0 @@ export class LeafTree<T>

@@ -0,1 +1,2 @@

export * from './implementation/leaf/non-empty';
export * from './implementation/block';

@@ -7,3 +8,2 @@ export * from './implementation/empty';

export * from './implementation/tree/operations';
export * from './implementation/leaf/non-empty';

@@ -10,0 +10,0 @@ export * from './builder/block-builder';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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