firebase-saga
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -16,4 +16,2 @@ 'use strict'; | ||
var _effects = require('redux-saga/effects'); | ||
var _marked = [get, create, update, runSync, sync].map(regeneratorRuntime.mark); | ||
@@ -50,3 +48,3 @@ | ||
_context.next = 4; | ||
return (0, _effects.call)([ref, ref.once], 'value'); | ||
return (0, _reduxSaga.call)([ref, ref.once], 'value'); | ||
@@ -73,3 +71,3 @@ case 4: | ||
_context2.next = 2; | ||
return (0, _effects.call)(newKey, path); | ||
return (0, _reduxSaga.call)(newKey, path); | ||
@@ -79,3 +77,3 @@ case 2: | ||
_context2.next = 5; | ||
return (0, _effects.call)(fn, key); | ||
return (0, _reduxSaga.call)(fn, key); | ||
@@ -87,3 +85,3 @@ case 5: | ||
_context2.next = 10; | ||
return [(0, _effects.call)([ref, ref.update], payload, ops.handler), (0, _effects.take)(ops)]; | ||
return [(0, _reduxSaga.call)([ref, ref.update], payload, ops.handler), (0, _reduxSaga.take)(ops)]; | ||
@@ -118,3 +116,3 @@ case 10: | ||
_context3.next = 3; | ||
return (0, _effects.call)(payload); | ||
return (0, _reduxSaga.call)(payload); | ||
@@ -128,3 +126,3 @@ case 3: | ||
_context3.next = 8; | ||
return [(0, _effects.call)([ref, ref.update], payload, ops.handler), (0, _effects.take)(ops)]; | ||
return [(0, _reduxSaga.call)([ref, ref.update], payload, ops.handler), (0, _reduxSaga.take)(ops)]; | ||
@@ -155,3 +153,3 @@ case 8: | ||
_context4.next = 3; | ||
return (0, _effects.call)([ref, ref.on], eventType, ops.handler); | ||
return (0, _reduxSaga.call)([ref, ref.on], eventType, ops.handler); | ||
@@ -165,3 +163,3 @@ case 3: | ||
_context4.next = 6; | ||
return (0, _effects.take)(ops); | ||
return (0, _reduxSaga.take)(ops); | ||
@@ -172,3 +170,3 @@ case 6: | ||
_context4.next = 10; | ||
return (0, _effects.put)(creator({ data: data })); | ||
return (0, _reduxSaga.put)(creator({ data: data })); | ||
@@ -219,3 +217,3 @@ case 10: | ||
_context5.next = 12; | ||
return (0, _effects.fork)(runSync, ref, type, action); | ||
return (0, _reduxSaga.fork)(runSync, ref, type, action); | ||
@@ -222,0 +220,0 @@ case 12: |
{ | ||
"name": "firebase-saga", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A library for connecting Redux saga middleware to Firebase.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,3 +0,2 @@ | ||
import { eventChannel } from 'redux-saga'; | ||
import { put, fork, call, take } from 'redux-saga/effects'; | ||
import { put, fork, call, take, eventChannel } from 'redux-saga'; | ||
@@ -24,2 +23,3 @@ function newOps(name = 'data') { | ||
const data = yield call([ref, ref.once], 'value'); | ||
return data.val(); | ||
@@ -26,0 +26,0 @@ } |
Sorry, the diff of this file is too big to display
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
81284
2303