easy-soft-dva 3.6.1 → 3.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +1 -1
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as t}from"./regeneratorRuntime.js";import{displayTextMessage as e,isNumber as a,logWarn as o,toNumber as r,logError as n,isUndefined as c,isString as i,setCache as l,logDebug as s}from"easy-soft-utility";import{create as
|
|
1
|
+
import{_ as t}from"./regeneratorRuntime.js";import{displayTextMessage as e,isNumber as a,logWarn as o,toNumber as r,logError as n,isUndefined as c,isString as i,setCache as l,logDebug as s}from"easy-soft-utility";import{create as u}from"./dva-core/index.js";export{Provider,connect}from"./dva-core/index.js";import{createLoading as d}from"./dva-loading/index.js";import"invariant";import"react-redux";import"redux";import"redux-saga";import"is-plain-object";import"flatten";import"@reduxjs/toolkit";import"warning";function f(t){return"".concat("easy-soft-dva","::").concat(t,"::")}var m="stateAssist";function p(){if(!y.defaultCodeSetComplete&&!y.defaultCodePromptSetInformationComplete){var t="".concat(f(m),"logData -> logger display switch default is false, if want to display log, please set it before first log, use setLoggerDisplaySwitch to set it, this message only show once.");try{throw new Error("please set use setStateDefaultCode")}catch(t){console.error(t)}e({text:t,color:"#08BBEE",dataDescription:"hint",ancillaryInformation:""}),y.defaultCodePromptSetInformationComplete=!0}return y.defaultCode}var h,g,v,C,y={defaultCodePromptSetInformationComplete:!1,defaultCodeSetComplete:!1,defaultCode:200};function S(t){a(t)||o("".concat(f(m),"setStateDefaultCode -> code must be number")),y.defaultCode=r(t)}function x(t){return(h=u(t)).use(d({})),C||t.models.forEach((function(t){return h.model(t)})),C=!0,h.start(),g=h._store,h.getStore=function(){return g},h.use({onError:function(t){n(t)}}),v=g.dispatch,h.dispatch=v,h}var D={reducerData:"reducerData"};function w(e,a,o){var r=t(t({},{callback:null,pretreatment:null,alias:null,cacheData:!1}),a),n=r.payload,u=r.alias,d=r.cacheData,f=null;if(c(u)||!i(u)?f=t(t({},e),{},{data:n,fromRemote:!0}):(f=t(t({},e),{},{fromRemote:!0}))[u]=n,d){var m="".concat(o,"_").concat(u||"data"),p=l({key:m,value:n});s("modal ".concat(o," cache data, key is ").concat(o,"_").concat(u||"data",", ").concat(p?"cache success":"cache fail","."))}return f}var b={reducerData:function(t,e,a){return w(t,e,a)}};function j(t){return x({initialState:{},models:t}).getStore()}var k={data:{code:p(),message:"success",dataSuccess:!0,data:{},list:[],extra:{}}},E={cacheData:!1},I={callback:null,pretreatment:null};function P(){return h.dispatch}export{x as createApp,p as getDefaultCode,P as getDispatchWrapper,j as getStore,I as handleDefaultParams,b as reducerCollection,w as reducerDataAssist,E as reducerDefaultParams,D as reducerNameCollection,S as setStateDefaultCode,y as stateConfigure,k as tacitlyState};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-dva",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.3",
|
|
4
4
|
"description": "The core lightweight library for dva, based on redux and redux-saga.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.20.7",
|
|
36
36
|
"@reduxjs/toolkit": "^1.9.1",
|
|
37
|
-
"easy-soft-utility": "^2.3.
|
|
37
|
+
"easy-soft-utility": "^2.3.2",
|
|
38
38
|
"flatten": "^1.0.3",
|
|
39
39
|
"global": "^4.4.0",
|
|
40
40
|
"invariant": "^2.2.4",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"peerDependencies": {
|
|
92
92
|
"redux": "4.x"
|
|
93
93
|
},
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "95d5b6dc8fffad2dd2cecc8c104d19b21001a2e7"
|
|
95
95
|
}
|