easy-soft-dva 3.9.21 → 3.9.23

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.
@@ -1 +1 @@
1
- import{d as e,_ as t,b as n}from"../index2.js";function r(e,t,n,r,a,o,c){try{var s=e[o](c),i=s.value}catch(e){return void n(e)}s.done?t(i):Promise.resolve(i).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var c=e.apply(t,n);function s(e){r(c,a,o,s,i,"next",e)}function i(e){r(c,a,o,s,i,"throw",e)}s(void 0)}))}}var o,c="@@DVA_LOADING/SHOW",s="@@DVA_LOADING/HIDE",i="loading";function u(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.namespace||i,o=r.only,u=void 0===o?[]:o,l=r.except,f=void 0===l?[]:l;if(u.length>0&&f.length>0)throw new Error("It is ambiguous to configure `only` and `except` items at the same time.");var p={global:!1,models:{},effects:{}},d=e({},a,(function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,a=arguments.length>1?arguments[1]:void 0,o=a.type,i=a.payload,u=i||{},l=u.namespace,f=u.actionType;switch(o){case c:n=t(t({},r),{},{global:!0,models:t(t({},r.models),{},e({},l,!0)),effects:t(t({},r.effects),{},e({},f,!0))});break;case s:var d=t(t({},r.effects),{},e({},f,!1)),m=t(t({},r.models),{},e({},l,Object.keys(d).some((function(e){return e.split("/")[0]===l&&d[e]})))),v=Object.keys(m).some((function(e){return m[e]}));n=t(t({},r),{},{global:v,models:m,effects:d});break;default:n=r}return n}));function m(e,t,r,a){var o=t.put,i=r.namespace;return 0===u.length&&0===f.length||u.length>0&&u.includes(a)||f.length>0&&!f.includes(a)?n.mark((function t(){var r=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o({type:c,payload:{namespace:i,actionType:a}});case 2:return t.next=4,e.apply(void 0,r);case 4:return t.next=6,o({type:s,payload:{namespace:i,actionType:a}});case 6:case"end":return t.stop()}}),t)})):e}return{extraReducers:d,onEffect:m}}function l(){return(o=o||a(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{u as createLoading,l as empty};
1
+ import{d as e,_ as t,b as n}from"../index2.js";function r(e,t,n,r,a,o,c){try{var s=e[o](c),i=s.value}catch(e){return void n(e)}s.done?t(i):Promise.resolve(i).then(r,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var c=e.apply(t,n);function s(e){r(c,a,o,s,i,"next",e)}function i(e){r(c,a,o,s,i,"throw",e)}s(void 0)}))}}var o="@@DVA_LOADING/SHOW",c="@@DVA_LOADING/HIDE",s="loading";function i(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=r.namespace||s,i=r.only,u=void 0===i?[]:i,l=r.except,f=void 0===l?[]:l;if(u.length>0&&f.length>0)throw new Error("It is ambiguous to configure `only` and `except` items at the same time.");var p={global:!1,models:{},effects:{}},d=e({},a,(function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,a=arguments.length>1?arguments[1]:void 0,s=a.type,i=a.payload,u=i||{},l=u.namespace,f=u.actionType;switch(s){case o:n=t(t({},r),{},{global:!0,models:t(t({},r.models),{},e({},l,!0)),effects:t(t({},r.effects),{},e({},f,!0))});break;case c:var d=t(t({},r.effects),{},e({},f,!1)),m=t(t({},r.models),{},e({},l,Object.keys(d).some((function(e){return e.split("/")[0]===l&&d[e]})))),v=Object.keys(m).some((function(e){return m[e]}));n=t(t({},r),{},{global:v,models:m,effects:d});break;default:n=r}return n}));function m(e,t,r,a){var s=t.put,i=r.namespace;return 0===u.length&&0===f.length||u.length>0&&u.includes(a)||f.length>0&&!f.includes(a)?n.mark((function t(){var r=arguments;return n.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s({type:o,payload:{namespace:i,actionType:a}});case 2:return t.next=4,e.apply(void 0,r);case 4:return t.next=6,s({type:c,payload:{namespace:i,actionType:a}});case 6:case"end":return t.stop()}}),t)})):e}return{extraReducers:d,onEffect:m}}function u(){return l.apply(this,arguments)}function l(){return(l=a(n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{});case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}export{i as createLoading,u as empty};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-soft-dva",
3
- "version": "3.9.21",
3
+ "version": "3.9.23",
4
4
  "description": "The core lightweight library for dva, based on redux and redux-saga.",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
@@ -47,9 +47,9 @@
47
47
  "z:tsc:build": "echo show tsc version and create declaration file && tsc -v && tsc -p ./tsconfig.types.json && echo declaration file generate complete"
48
48
  },
49
49
  "dependencies": {
50
- "@babel/runtime": "^7.23.2",
50
+ "@babel/runtime": "^7.23.4",
51
51
  "@reduxjs/toolkit": "^1.9.7",
52
- "easy-soft-utility": "^2.7.23",
52
+ "easy-soft-utility": "^2.7.25",
53
53
  "flatten": "^1.0.3",
54
54
  "global": "^4.4.0",
55
55
  "invariant": "^2.2.4",
@@ -62,22 +62,22 @@
62
62
  "warning": "^4.0.3"
63
63
  },
64
64
  "devDependencies": {
65
- "@babel/core": "^7.23.2",
66
- "@babel/eslint-parser": "^7.22.15",
67
- "@babel/plugin-external-helpers": "^7.22.5",
68
- "@babel/plugin-proposal-decorators": "^7.23.2",
69
- "@babel/plugin-transform-class-properties": "^7.22.5",
70
- "@babel/plugin-transform-runtime": "^7.23.2",
71
- "@babel/preset-env": "^7.23.2",
72
- "@babel/preset-react": "^7.22.15",
73
- "@babel/runtime": "^7.23.2",
65
+ "@babel/core": "^7.23.3",
66
+ "@babel/eslint-parser": "^7.23.3",
67
+ "@babel/plugin-external-helpers": "^7.23.3",
68
+ "@babel/plugin-proposal-decorators": "^7.23.3",
69
+ "@babel/plugin-transform-class-properties": "^7.23.3",
70
+ "@babel/plugin-transform-runtime": "^7.23.4",
71
+ "@babel/preset-env": "^7.23.3",
72
+ "@babel/preset-react": "^7.23.3",
73
+ "@babel/runtime": "^7.23.4",
74
74
  "@changesets/cli": "^2.26.2",
75
- "@commitlint/cli": "^18.2.0",
76
- "@commitlint/config-conventional": "^18.1.0",
77
- "@commitlint/config-pnpm-scopes": "^18.1.0",
78
- "@commitlint/cz-commitlint": "^18.2.0",
75
+ "@commitlint/cli": "^18.4.3",
76
+ "@commitlint/config-conventional": "^18.4.3",
77
+ "@commitlint/config-pnpm-scopes": "^18.4.3",
78
+ "@commitlint/cz-commitlint": "^18.4.3",
79
79
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
80
- "@rollup/plugin-alias": "^5.0.1",
80
+ "@rollup/plugin-alias": "^5.1.0",
81
81
  "@rollup/plugin-babel": "6.0.4",
82
82
  "@rollup/plugin-buble": "^1.0.3",
83
83
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -86,13 +86,13 @@
86
86
  "@rollup/plugin-replace": "^5.0.5",
87
87
  "@rollup/plugin-url": "^8.0.2",
88
88
  "@svgr/rollup": "^8.1.0",
89
- "@types/fs-extra": "^11.0.3",
90
- "@types/jest": "^29.5.7",
91
- "@types/node": "^20.8.10",
92
- "@types/react": "^18.2.36",
93
- "@types/react-dom": "^18.2.14",
94
- "@types/shelljs": "^0.8.14",
95
- "@typescript-eslint/parser": "^6.10.0",
89
+ "@types/fs-extra": "^11.0.4",
90
+ "@types/jest": "^29.5.10",
91
+ "@types/node": "^20.10.0",
92
+ "@types/react": "^18.2.37",
93
+ "@types/react-dom": "^18.2.15",
94
+ "@types/shelljs": "^0.8.15",
95
+ "@typescript-eslint/parser": "^6.12.0",
96
96
  "autoprefixer": "^10.4.16",
97
97
  "babel-jest": "^29.7.0",
98
98
  "commitizen": "^4.3.0",
@@ -100,8 +100,8 @@
100
100
  "cross-env": "^7.0.3",
101
101
  "cssnano": "^6.0.1",
102
102
  "documentation": "^14.0.2",
103
- "easy-soft-develop": "^2.1.46",
104
- "eslint": "^8.53.0",
103
+ "easy-soft-develop": "^2.1.48",
104
+ "eslint": "^8.54.0",
105
105
  "eslint-config-airbnb": "^19.0.4",
106
106
  "eslint-config-airbnb-typescript": "^17.1.0",
107
107
  "eslint-config-prettier": "^9.0.0",
@@ -119,13 +119,13 @@
119
119
  "eslint-plugin-unicorn": "^49.0.0",
120
120
  "husky": "^8.0.3",
121
121
  "jest": "^29.7.0",
122
- "lint-staged": "^15.0.2",
122
+ "lint-staged": "^15.1.0",
123
123
  "mm": "^3.3.0",
124
- "prettier": "^3.0.3",
125
- "prettier-plugin-organize-imports": "^3.2.3",
124
+ "prettier": "^3.1.0",
125
+ "prettier-plugin-organize-imports": "^3.2.4",
126
126
  "prettier-plugin-packagejson": "^2.4.6",
127
127
  "rimraf": "^5.0.5",
128
- "rollup": "^4.3.0",
128
+ "rollup": "^4.6.0",
129
129
  "rollup-plugin-copy": "^3.5.0",
130
130
  "rollup-plugin-livereload": "^2.0.5",
131
131
  "rollup-plugin-postcss": "^4.0.2",