@cycle-robot-drivers/screen
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -19,3 +19,3 @@ "use strict"; | ||
function FacialExpressionAction(sources) { | ||
var goal$ = xstream_1.default.fromObservable(sources.goal).map(function (goal) { | ||
var goal$ = xstream_1.default.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -39,3 +39,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}).debug(); | ||
var action$ = xstream_1.default.merge(goal$, sources.TabletFace.animationFinish.mapTo({ | ||
@@ -42,0 +42,0 @@ type: 'END', |
@@ -26,3 +26,3 @@ "use strict"; | ||
function SpeechbubbleAction(sources) { | ||
var goal$ = xstream_1.default.fromObservable(sources.goal).map(function (goal) { | ||
var goal$ = xstream_1.default.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -49,3 +49,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}); | ||
// IMPORTANT!! force creating the click stream | ||
@@ -52,0 +52,0 @@ var click$ = sources.DOM.select('.choice').elements() |
@@ -51,3 +51,3 @@ "use strict"; | ||
second.DOM.addListener({ next: function (d) { } }); | ||
var goal$ = sources.goal.map(function (goal) { | ||
var goal$ = xstream_1.default.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -74,3 +74,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}); | ||
var action$ = xstream_1.default.merge(goal$, first.result.map(function (result) { return ({ type: 'FIRST_RESULT', value: result }); }), second.result.map(function (result) { return ({ type: 'SECOND_RESULT', value: result }); })); | ||
@@ -77,0 +77,0 @@ var initialState = { |
@@ -14,3 +14,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
export function FacialExpressionAction(sources) { | ||
var goal$ = xs.fromObservable(sources.goal).map(function (goal) { | ||
var goal$ = xs.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -34,3 +34,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}).debug(); | ||
var action$ = xs.merge(goal$, sources.TabletFace.animationFinish.mapTo({ | ||
@@ -37,0 +37,0 @@ type: 'END', |
@@ -21,3 +21,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
export function SpeechbubbleAction(sources) { | ||
var goal$ = xs.fromObservable(sources.goal).map(function (goal) { | ||
var goal$ = xs.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -44,3 +44,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}); | ||
// IMPORTANT!! force creating the click stream | ||
@@ -47,0 +47,0 @@ var click$ = sources.DOM.select('.choice').elements() |
@@ -46,3 +46,3 @@ var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
second.DOM.addListener({ next: function (d) { } }); | ||
var goal$ = sources.goal.map(function (goal) { | ||
var goal$ = xs.fromObservable(sources.goal).filter(function (goal) { return typeof goal !== 'undefined'; }).map(function (goal) { | ||
if (goal === null) { | ||
@@ -69,3 +69,3 @@ return { | ||
} | ||
}).filter(function (goal) { return typeof goal !== 'undefined'; }); | ||
}); | ||
var action$ = xs.merge(goal$, first.result.map(function (result) { return ({ type: 'FIRST_RESULT', value: result }); }), second.result.map(function (result) { return ({ type: 'SECOND_RESULT', value: result }); })); | ||
@@ -72,0 +72,0 @@ var initialState = { |
{ | ||
"name": "@cycle-robot-drivers/screen", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "Michael Jae-Yoon Chung", |
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
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
160912
2759