MCPcopy
hub / github.com/zxlie/FeHelper / n

Function n

apps/crontab/index.js:940–998  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

938 }
939
940 function n(n) {
941 return n = n || {}, w.forEach(function (e) {
942 var r = e.namespace;
943 if (!m && e.state && !1 !== n.state) {
944 var t = e.state || {};
945 r ? (E[r] = E[r] || {}, N(r, t, E)) : x(E, t)
946 }
947 !l && e.reducers && !1 !== n.reducers && N(r, e.reducers, b, function (e) {
948 return j(e, a)
949 }), !d && e.effects && !1 !== n.effects && N(r, e.effects, g, function (e) {
950 return j(e, c)
951 }), !f && e.subscriptions && !1 !== n.subscriptions && N(r, e.subscriptions, y, function (e, t) {
952 var n = p("subscription: " + (r ? r + ":" + t : t));
953 return (e = j(e, o))(n, function (e) {
954 S(i, e, E, p)
955 }), e
956 })
957 }), m || !1 === n.state || (E = j(E, s)), n.noSubscriptions || (f = !0), n.noReducers || (l = !0), n.noEffects || (d = !0), n.noState || (m = !0), i.length || i.push(C(r)), p;
958
959 function p(o, a) {
960 return function (e, t, n) {
961 n || a || (n = t, t = null);
962 var r = a ? function (e) {
963 (e = e || null) && S(i, e, E, function (n) {
964 return function (e, t) {
965 u(e, t = void 0 === t ? null : t, n, r)
966 }
967 })
968 } : n;
969 u(e, t = void 0 === t ? null : t, o, r)
970 }
971 }
972
973 function u(l, d, m, f) {
974 setTimeout(function () {
975 var e = !1, t = !1, n = A(E);
976 v.length && S(v, d, E, l, m, p);
977 var r = l;
978 if (/:/.test(l)) {
979 var o = l.split(":"), a = o.shift();
980 r = o.join(":")
981 }
982 var u = a ? b[a] : b;
983 if (u && u[r]) {
984 if (a) {
985 var i = u[r](d, E[a]);
986 n[a] = A(E[a], i)
987 } else x(n, b[r](d, E));
988 e = !0, h.length && S(h, d, n, E, r, p), f(null, E = n)
989 }
990 var s = a ? g[a] : g;
991 if (!e && s && s[r]) {
992 var c = p("effect: " + l);
993 a ? s[r](d, E[a], c, f) : s[r](d, E, c, f), t = !0
994 }
995 if (!e && !t) throw new Error("Could not find action " + r)
996 }, 0)
997 }

Callers 4

cFunction · 0.70
rFunction · 0.70
crontabGuruStarterFunction · 0.70
fFunction · 0.70

Calls 6

NFunction · 0.70
jFunction · 0.70
pFunction · 0.70
SFunction · 0.70
CFunction · 0.70
xFunction · 0.50

Tested by

no test coverage detected