@keiii/k-stream
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -101,9 +101,6 @@ import { some, none, isSome } from './option'; | ||
if (observersMap.size === 0) { | ||
if (replay) { | ||
lastValue = none; | ||
} | ||
if (subscription !== null) { | ||
subscription.unsubscribe(); | ||
subscription = null; | ||
} | ||
isCompleted = false; | ||
lastValue = none; | ||
subscription === null || subscription === void 0 ? void 0 : subscription.unsubscribe(); | ||
subscription = null; | ||
} | ||
@@ -110,0 +107,0 @@ }; |
{ | ||
"name": "@keiii/k-stream", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"description": "K-Stream is a functional reactive stream library for TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -24,5 +24,5 @@ # Functional reactive stream library for TypeScript | ||
``` | ||
K-Steam provides helper function to create steam from your data source: | ||
Create steam from your data source: | ||
```typescript | ||
const stream = ksCreateStream<MouseEvent>(ksShare, observer => { | ||
const stream = ksShare<MouseEvent>(observer => { | ||
const handler = (e: MouseEvent) => observer.next(e); | ||
@@ -29,0 +29,0 @@ document.addEventListener('click', handler); |
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
62902
1052