Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

firebase-saga

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

firebase-saga - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

22

modules/index.js

@@ -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

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