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

to
3.1.0

.eslintrc.js

34

index.js

@@ -14,3 +14,5 @@ 'use strict';

});
return function() { subscription.dispose(); };
return function() {
subscription.dispose();
};
});

@@ -21,17 +23,20 @@ } else if (input && input.onAny && input.offAny) { // Kefir

switch (event.type) {
case 'value':
emitter.emit(event.value);
break;
case 'error':
emitter.error(event.value);
break;
case 'end':
emitter.end();
break;
default:
console.error("Unknown type of Kefir event", event);
case 'value':
emitter.emit(event.value);
break;
case 'error':
emitter.error(event.value);
break;
case 'end':
emitter.end();
break;
default:
// eslint-disable-next-line no-console
console.error('Unknown type of Kefir event', event);
}
}
input.onAny(listener);
return function() { input.offAny(listener); };
return function() {
input.offAny(listener);
};
});

@@ -48,3 +53,4 @@ } else if (input && input.subscribe && input.onValue) { // Bacon

} else {
console.error("Unknown type of Bacon event", event);
// eslint-disable-next-line no-console
console.error('Unknown type of Bacon event', event);
}

@@ -51,0 +57,0 @@ });

{
"name": "kefir-cast",
"version": "3.0.1",
"version": "3.1.0",
"description": "Convert various types of streams to Kefir streams.",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "npm run lint && npm run flow_check && mocha",
"flow_check": "flow check",
"lint": "eslint .",
"lint-fix": "eslint . --fix"
},

@@ -34,7 +37,10 @@ "repository": {

"devDependencies": {
"babel-eslint": "^6.1.2",
"baconjs": "^0.7.41",
"eslint": "^3.4.0",
"flow-bin": "^0.31.1",
"kefir": "^3.0.0",
"kefir-bus": "^2.0.0",
"lodash": "^3.3.1",
"mocha": "^2.1.0",
"lodash": "^4.15.0",
"mocha": "^3.0.2",
"rx": "^4.0.8"

@@ -41,0 +47,0 @@ },

@@ -57,1 +57,6 @@ # KefirCast

will be returned.
## Types
[Flow](https://flowtype.org/) type declarations for this module are included!
If you are using Flow, they won't require any configuration to use.