Socket
Socket
Sign inDemoInstall

@rimbu/hashed

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rimbu/hashed - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

5

dist/main/map-custom/implementation/builder.js

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

var stream_1 = require("@rimbu/stream");
var custom_1 = require("@rimbu/stream/custom");
var HashMapBlockBuilder = /** @class */ (function (_super) {

@@ -54,3 +55,3 @@ (0, tslib_1.__extends)(HashMapBlockBuilder, _super);

_this.checkLock();
if (stream_1.StreamSource.isEmptyInstance(source))
if ((0, custom_1.isEmptyStreamSourceInstance)(source))
return false;

@@ -176,3 +177,3 @@ return stream_1.Stream.from(source).filter(_this.addEntry).count() > 0;

_this.checkLock();
if (stream_1.StreamSource.isEmptyInstance(keys))
if ((0, custom_1.isEmptyStreamSourceInstance)(keys))
return false;

@@ -179,0 +180,0 @@ var notFound = Symbol();

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

var stream_1 = require("@rimbu/stream");
var custom_1 = require("@rimbu/stream/custom");
var HashMapEmpty = /** @class */ (function (_super) {

@@ -99,3 +100,3 @@ (0, tslib_1.__extends)(HashMapEmpty, _super);

HashMapNonEmptyBase.prototype.addEntries = function (entries) {
if (stream_1.StreamSource.isEmptyInstance(entries))
if ((0, custom_1.isEmptyStreamSourceInstance)(entries))
return this;

@@ -107,3 +108,3 @@ var builder = this.toBuilder();

HashMapNonEmptyBase.prototype.removeKeys = function (keys) {
if (stream_1.StreamSource.isEmptyInstance(keys))
if ((0, custom_1.isEmptyStreamSourceInstance)(keys))
return this;

@@ -110,0 +111,0 @@ var builder = this.toBuilder();

13

dist/main/set-custom/implementation/immutable.js

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

var stream_1 = require("@rimbu/stream");
var custom_1 = require("@rimbu/stream/custom");
var HashSetEmpty = /** @class */ (function (_super) {

@@ -71,3 +72,3 @@ (0, tslib_1.__extends)(HashSetEmpty, _super);

HashSetNonEmptyBase.prototype.addAll = function (values) {
if (stream_1.StreamSource.isEmptyInstance(values))
if ((0, custom_1.isEmptyStreamSourceInstance)(values))
return this;

@@ -79,3 +80,3 @@ var builder = this.toBuilder();

HashSetNonEmptyBase.prototype.removeAll = function (values) {
if (stream_1.StreamSource.isEmptyInstance(values))
if ((0, custom_1.isEmptyStreamSourceInstance)(values))
return this;

@@ -96,3 +97,3 @@ var builder = this.toBuilder();

return this;
if (stream_1.StreamSource.isEmptyInstance(other))
if ((0, custom_1.isEmptyStreamSourceInstance)(other))
return this;

@@ -106,3 +107,3 @@ var builder = this.toBuilder();

return this.context.empty();
if (stream_1.StreamSource.isEmptyInstance(other))
if ((0, custom_1.isEmptyStreamSourceInstance)(other))
return this;

@@ -116,3 +117,3 @@ var builder = this.toBuilder();

return this;
if (stream_1.StreamSource.isEmptyInstance(other))
if ((0, custom_1.isEmptyStreamSourceInstance)(other))
return this.context.empty();

@@ -134,3 +135,3 @@ var builder = this.context.builder();

return this.context.empty();
if (stream_1.StreamSource.isEmptyInstance(other))
if ((0, custom_1.isEmptyStreamSourceInstance)(other))
return this;

@@ -137,0 +138,0 @@ var builder = this.toBuilder();

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

import { List } from '@rimbu/list';
import { Stream, StreamSource } from '@rimbu/stream';
import { Stream } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
export class HashMapBlockBuilder extends BlockBuilderBase {

@@ -49,3 +50,3 @@ constructor(context, source, _entries, _entrySets, size, level) {

this.checkLock();
if (StreamSource.isEmptyInstance(source))
if (isEmptyStreamSourceInstance(source))
return false;

@@ -170,3 +171,3 @@ return Stream.from(source).filter(this.addEntry).count() > 0;

this.checkLock();
if (StreamSource.isEmptyInstance(keys))
if (isEmptyStreamSourceInstance(keys))
return false;

@@ -173,0 +174,0 @@ const notFound = Symbol();

import { Arr, Entry, RimbuError, Token } from '@rimbu/base';
import { EmptyBase, NonEmptyBase } from '@rimbu/collection-types/map-custom';
import { OptLazy, OptLazyOr, TraverseState, Update, } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import { Stream } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
export class HashMapEmpty extends EmptyBase {

@@ -86,3 +87,3 @@ constructor(context) {

addEntries(entries) {
if (StreamSource.isEmptyInstance(entries))
if (isEmptyStreamSourceInstance(entries))
return this;

@@ -94,3 +95,3 @@ const builder = this.toBuilder();

removeKeys(keys) {
if (StreamSource.isEmptyInstance(keys))
if (isEmptyStreamSourceInstance(keys))
return this;

@@ -97,0 +98,0 @@ const builder = this.toBuilder();

import { Arr, RimbuError } from '@rimbu/base';
import { EmptyBase, NonEmptyBase } from '@rimbu/collection-types/set-custom';
import { TraverseState } from '@rimbu/common';
import { Stream, StreamSource } from '@rimbu/stream';
import { Stream } from '@rimbu/stream';
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom';
export class HashSetEmpty extends EmptyBase {

@@ -58,3 +59,3 @@ constructor(context) {

addAll(values) {
if (StreamSource.isEmptyInstance(values))
if (isEmptyStreamSourceInstance(values))
return this;

@@ -66,3 +67,3 @@ const builder = this.toBuilder();

removeAll(values) {
if (StreamSource.isEmptyInstance(values))
if (isEmptyStreamSourceInstance(values))
return this;

@@ -83,3 +84,3 @@ const builder = this.toBuilder();

return this;
if (StreamSource.isEmptyInstance(other))
if (isEmptyStreamSourceInstance(other))
return this;

@@ -93,3 +94,3 @@ const builder = this.toBuilder();

return this.context.empty();
if (StreamSource.isEmptyInstance(other))
if (isEmptyStreamSourceInstance(other))
return this;

@@ -103,3 +104,3 @@ const builder = this.toBuilder();

return this;
if (StreamSource.isEmptyInstance(other))
if (isEmptyStreamSourceInstance(other))
return this.context.empty();

@@ -121,3 +122,3 @@ const builder = this.context.builder();

return this.context.empty();
if (StreamSource.isEmptyInstance(other))
if (isEmptyStreamSourceInstance(other))
return this;

@@ -124,0 +125,0 @@ const builder = this.toBuilder();

{
"name": "@rimbu/hashed",
"version": "0.8.1",
"version": "0.8.2",
"description": "Immutable HashMap and HashSet implementations for TypeScript",

@@ -72,6 +72,6 @@ "keywords": [

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

@@ -86,3 +86,3 @@ },

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

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

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

@@ -135,3 +136,3 @@ export type MapBlockBuilderEntry<K, V> =

if (StreamSource.isEmptyInstance(source)) return false;
if (isEmptyStreamSourceInstance(source)) return false;

@@ -377,3 +378,3 @@ return Stream.from(source).filter(this.addEntry).count() > 0;

if (StreamSource.isEmptyInstance(keys)) return false;
if (isEmptyStreamSourceInstance(keys)) return false;

@@ -380,0 +381,0 @@ const notFound = Symbol();

@@ -16,2 +16,3 @@ import { Arr, Entry, RimbuError, Token } from '@rimbu/base';

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

@@ -155,3 +156,3 @@ export class HashMapEmpty<K = any, V = any>

addEntries(entries: StreamSource<readonly [K, V]>): HashMap.NonEmpty<K, V> {
if (StreamSource.isEmptyInstance(entries)) return this;
if (isEmptyStreamSourceInstance(entries)) return this;

@@ -164,3 +165,3 @@ const builder = this.toBuilder();

removeKeys<UK>(keys: StreamSource<RelatedTo<K, UK>>): HashMap<K, V> {
if (StreamSource.isEmptyInstance(keys)) return this;
if (isEmptyStreamSourceInstance(keys)) return this;

@@ -167,0 +168,0 @@ const builder = this.toBuilder();

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

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

@@ -95,3 +96,3 @@ export class HashSetEmpty<T = any> extends EmptyBase implements HashSet<T> {

addAll(values: StreamSource<T>): HashSet.NonEmpty<T> {
if (StreamSource.isEmptyInstance(values)) return this;
if (isEmptyStreamSourceInstance(values)) return this;

@@ -104,3 +105,3 @@ const builder = this.toBuilder();

removeAll(values: StreamSource<T>): HashSet<T> {
if (StreamSource.isEmptyInstance(values)) return this;
if (isEmptyStreamSourceInstance(values)) return this;

@@ -126,3 +127,3 @@ const builder = this.toBuilder();

if (other === this) return this;
if (StreamSource.isEmptyInstance(other)) return this;
if (isEmptyStreamSourceInstance(other)) return this;

@@ -136,3 +137,3 @@ const builder = this.toBuilder();

if (other === this) return this.context.empty();
if (StreamSource.isEmptyInstance(other)) return this;
if (isEmptyStreamSourceInstance(other)) return this;

@@ -146,3 +147,3 @@ const builder = this.toBuilder();

if (other === this) return this;
if (StreamSource.isEmptyInstance(other)) return this.context.empty();
if (isEmptyStreamSourceInstance(other)) return this.context.empty();

@@ -166,3 +167,3 @@ const builder = this.context.builder();

if (other === this) return this.context.empty();
if (StreamSource.isEmptyInstance(other)) return this;
if (isEmptyStreamSourceInstance(other)) return this;

@@ -169,0 +170,0 @@ const builder = this.toBuilder();

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