New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kefir-cast

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kefir-cast - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

28

index.js

@@ -18,16 +18,2 @@ 'use strict';

});
} else if (input && input.subscribe && input.onErrorResumeNext) { // RxJS 5
return Kefir.stream(function(emitter) {
var subscription = input.subscribe(function onNext(value) {
emitter.emit(value);
}, function onError(err) {
emitter.error(err);
emitter.end();
}, function onCompleted() {
emitter.end();
});
return function() {
subscription.unsubscribe();
};
});
} else if (input && input.onAny && input.offAny) { // Kefir

@@ -71,2 +57,16 @@ return Kefir.stream(function(emitter) {

});
} else if (input && input.subscribe && input.pipe && input.lift) { // RxJS 5
return Kefir.stream(function(emitter) {
var subscription = input.subscribe(function onNext(value) {
emitter.emit(value);
}, function onError(err) {
emitter.error(err);
emitter.end();
}, function onCompleted() {
emitter.end();
});
return function() {
subscription.unsubscribe();
};
});
} else {

@@ -73,0 +73,0 @@ return Kefir.constant(input);

{
"name": "kefir-cast",
"version": "3.2.0",
"version": "3.2.1",
"description": "Convert various types of streams to Kefir streams.",

@@ -5,0 +5,0 @@ "main": "index.js",

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