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

redux-saga-model

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-saga-model - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

13

lib/index.js

@@ -108,3 +108,4 @@ "use strict";

initialMiddleware: [],
initialModels: []
initialModels: [],
preff: ""
}, createOpts);

@@ -148,2 +149,8 @@

value: function checkModel(m, baseModels, hot) {
var privateProps = installPrivateProperties[this.__sagaModelKey];
// 预置前缀
if (privateProps.preff) {
m.namespace = "" + privateProps.preff + SEP + m.namespace;
}
// Clone model to avoid prefixing namespace multiple times

@@ -193,2 +200,4 @@ var model = (0, _extends3.default)({}, m);

console.log(model);
return model;

@@ -266,3 +275,3 @@ }

// Cancel sagas
m && (0, _keys2.default)(m.sagas).forEach(function (key) {
m[0] && (0, _keys2.default)(m[0].sagas).forEach(function (key) {
store.dispatch({

@@ -269,0 +278,0 @@ type: key + "/@@CANCEL_EFFECTS"

2

package.json
{
"name": "redux-saga-model",
"version": "0.2.8",
"version": "0.2.9",
"dependencies": {

@@ -5,0 +5,0 @@ "flatten": "^1.0.2",

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