@rimbu/collection-types
Advanced tools
Comparing version 0.9.1 to 0.9.2
@@ -7,2 +7,3 @@ "use strict"; | ||
var stream_1 = require("@rimbu/stream"); | ||
var custom_1 = require("@rimbu/stream/custom"); | ||
var RMapBase; | ||
@@ -26,3 +27,3 @@ (function (RMapBase) { | ||
var source = sources[i]; | ||
if (stream_1.StreamSource.isEmptyInstance(source)) | ||
if ((0, custom_1.isEmptyStreamSourceInstance)(source)) | ||
continue; | ||
@@ -114,3 +115,3 @@ if (builder.isEmpty && | ||
return function (mergeFun) { | ||
if (stream_1.Stream.from(sources).some(stream_1.StreamSource.isEmptyInstance)) { | ||
if (stream_1.Stream.from(sources).some(custom_1.isEmptyStreamSourceInstance)) { | ||
return _this.empty(); | ||
@@ -117,0 +118,0 @@ } |
@@ -5,3 +5,3 @@ "use strict"; | ||
var common_1 = require("@rimbu/common"); | ||
var stream_1 = require("@rimbu/stream"); | ||
var custom_1 = require("@rimbu/stream/custom"); | ||
var RSetBase; | ||
@@ -25,3 +25,3 @@ (function (RSetBase) { | ||
var source = sources[i]; | ||
if (stream_1.StreamSource.isEmptyInstance(source)) | ||
if ((0, custom_1.isEmptyStreamSourceInstance)(source)) | ||
continue; | ||
@@ -28,0 +28,0 @@ if (builder.isEmpty && |
import { Reducer } from '@rimbu/common'; | ||
import { Stream, StreamSource } from '@rimbu/stream'; | ||
import { Stream } from '@rimbu/stream'; | ||
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom'; | ||
export var RMapBase; | ||
@@ -16,3 +17,3 @@ (function (RMapBase) { | ||
const source = sources[i]; | ||
if (StreamSource.isEmptyInstance(source)) | ||
if (isEmptyStreamSourceInstance(source)) | ||
continue; | ||
@@ -75,3 +76,3 @@ if (builder.isEmpty && | ||
return (mergeFun) => { | ||
if (Stream.from(sources).some(StreamSource.isEmptyInstance)) { | ||
if (Stream.from(sources).some(isEmptyStreamSourceInstance)) { | ||
return this.empty(); | ||
@@ -78,0 +79,0 @@ } |
import { Reducer } from '@rimbu/common'; | ||
import { StreamSource } from '@rimbu/stream'; | ||
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom'; | ||
export var RSetBase; | ||
@@ -16,3 +16,3 @@ (function (RSetBase) { | ||
const source = sources[i]; | ||
if (StreamSource.isEmptyInstance(source)) | ||
if (isEmptyStreamSourceInstance(source)) | ||
continue; | ||
@@ -19,0 +19,0 @@ if (builder.isEmpty && |
import type { Elem, WithElem } from '@rimbu/collection-types/set-custom'; | ||
import type { ArrayNonEmpty, RelatedTo, ToJSON, TraverseState } from '@rimbu/common'; | ||
import { Reducer } from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
export interface VariantSetBase<T, Tp extends VariantSetBase.Types = VariantSetBase.Types> extends FastIterable<T> { | ||
@@ -6,0 +6,0 @@ /** |
{ | ||
"name": "@rimbu/collection-types", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"description": "Type definitions for the basic generic Rimbu collections", | ||
@@ -67,3 +67,3 @@ "keywords": [ | ||
"@rimbu/common": "^0.9.0", | ||
"@rimbu/stream": "^0.10.1", | ||
"@rimbu/stream": "^0.10.2", | ||
"tslib": "^2.3.1" | ||
@@ -78,3 +78,3 @@ }, | ||
}, | ||
"gitHead": "0474974142d1aa81cc6d9e746010bcd6dba60265" | ||
"gitHead": "7271174e99229284224cef3489d3e80bddb305d0" | ||
} |
@@ -16,2 +16,3 @@ import type { Token } from '@rimbu/base'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom'; | ||
@@ -992,3 +993,3 @@ export interface VariantMapBase< | ||
if (StreamSource.isEmptyInstance(source)) continue; | ||
if (isEmptyStreamSourceInstance(source)) continue; | ||
@@ -1097,3 +1098,3 @@ if ( | ||
return <R>(mergeFun: (key: K, ...values: I) => R): any => { | ||
if (Stream.from(sources).some(StreamSource.isEmptyInstance)) { | ||
if (Stream.from(sources).some(isEmptyStreamSourceInstance)) { | ||
return this.empty(); | ||
@@ -1100,0 +1101,0 @@ } |
@@ -9,3 +9,9 @@ import type { Elem, WithElem } from '@rimbu/collection-types/set-custom'; | ||
import { Reducer } from '@rimbu/common'; | ||
import { FastIterable, Stream, Streamable, StreamSource } from '@rimbu/stream'; | ||
import type { | ||
FastIterable, | ||
Stream, | ||
Streamable, | ||
StreamSource, | ||
} from '@rimbu/stream'; | ||
import { isEmptyStreamSourceInstance } from '@rimbu/stream/custom'; | ||
@@ -591,3 +597,3 @@ export interface VariantSetBase< | ||
if (StreamSource.isEmptyInstance(source)) continue; | ||
if (isEmptyStreamSourceInstance(source)) continue; | ||
@@ -594,0 +600,0 @@ if ( |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195314
4332
Updated@rimbu/stream@^0.10.2