Socket
Socket
Sign inDemoInstall

@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.10.1 to 0.10.2

3

dist/main/custom/context.js

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

var stream_1 = require("@rimbu/stream");
var custom_2 = require("@rimbu/stream/custom");
var ListContext = /** @class */ (function () {

@@ -45,3 +46,3 @@ function ListContext(blockSizeBits) {

var source = sources[i];
if (!stream_1.StreamSource.isEmptyInstance(source)) {
if (!(0, custom_2.isEmptyStreamSourceInstance)(source)) {
if (source.context === _this) {

@@ -48,0 +49,0 @@ if (null === result)

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

var common_1 = require("@rimbu/common");
var stream_1 = require("@rimbu/stream");
var custom_1 = require("@rimbu/stream/custom");
var _emptyObject = {};

@@ -66,3 +66,3 @@ var ListNonEmptyBase = /** @class */ (function (_super) {

}
if (remove <= 0 && stream_1.StreamSource.isEmptyInstance(insert))
if (remove <= 0 && (0, custom_1.isEmptyStreamSourceInstance)(insert))
return this;

@@ -69,0 +69,0 @@ return this.take(index).concat(insert, this.drop(index + remove));

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

@@ -31,3 +32,3 @@ constructor(blockSizeBits) {

const source = sources[i];
if (!StreamSource.isEmptyInstance(source)) {
if (!isEmptyStreamSourceInstance(source)) {
if (source.context === this) {

@@ -34,0 +35,0 @@ if (null === result)

import { RimbuError } from '@rimbu/base';
import { NonEmptyBase } from '@rimbu/collection-types/set-custom';
import { IndexRange, } from '@rimbu/common';
import { StreamSource } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
const _emptyObject = {};

@@ -52,3 +52,3 @@ export class ListNonEmptyBase extends NonEmptyBase {

}
if (remove <= 0 && StreamSource.isEmptyInstance(insert))
if (remove <= 0 && isEmptyStreamSourceInstance(insert))
return this;

@@ -55,0 +55,0 @@ return this.take(index).concat(insert, this.drop(index + remove));

@@ -5,3 +5,3 @@ import { NonEmptyBase } from '@rimbu/collection-types/set-custom';

import type { CacheMap, ListContext } from '@rimbu/list/custom';
import { FastIterator, Stream, StreamSource } from '@rimbu/stream';
import type { FastIterator, Stream, StreamSource } from '@rimbu/stream';
export declare abstract class ListNonEmptyBase<T> extends NonEmptyBase<T> implements List.NonEmpty<T> {

@@ -8,0 +8,0 @@ abstract get context(): ListContext;

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

@@ -67,5 +67,5 @@ "keywords": [

"@rimbu/base": "^0.8.0",
"@rimbu/collection-types": "^0.9.1",
"@rimbu/collection-types": "^0.9.2",
"@rimbu/common": "^0.9.0",
"@rimbu/stream": "^0.10.1",
"@rimbu/stream": "^0.10.2",
"tslib": "^2.3.1"

@@ -80,3 +80,3 @@ },

},
"gitHead": "0474974142d1aa81cc6d9e746010bcd6dba60265"
"gitHead": "7271174e99229284224cef3489d3e80bddb305d0"
}

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

import { Stream, StreamSource } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';

@@ -97,3 +98,3 @@ export class ListContext implements List.Context {

if (!StreamSource.isEmptyInstance(source)) {
if (!isEmptyStreamSourceInstance(source)) {
if ((source as any).context === this) {

@@ -100,0 +101,0 @@ if (null === result) result = source as any as List<T>;

@@ -14,3 +14,4 @@ import { RimbuError } from '@rimbu/base';

import type { CacheMap, ListContext } from '@rimbu/list/custom';
import { FastIterator, Stream, StreamSource } from '@rimbu/stream';
import type { FastIterator, Stream, StreamSource } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';

@@ -115,3 +116,3 @@ const _emptyObject = {};

if (remove <= 0 && StreamSource.isEmptyInstance(insert)) return this;
if (remove <= 0 && isEmptyStreamSourceInstance(insert)) return this;

@@ -118,0 +119,0 @@ return this.take(index).concat(insert, this.drop(index + remove));

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