You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
3.2 KiB

{"ast":null,"code":"export default function createTransform( // @NOTE inbound: transform state coming from redux on its way to being serialized and stored\ninbound, // @NOTE outbound: transform state coming from storage, on its way to be rehydrated into redux\noutbound) {\n var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var whitelist = config.whitelist || null;\n var blacklist = config.blacklist || null;\n\n function whitelistBlacklistCheck(key) {\n if (whitelist && whitelist.indexOf(key) === -1) return true;\n if (blacklist && blacklist.indexOf(key) !== -1) return true;\n return false;\n }\n\n return {\n in: function _in(state, key, fullState) {\n return !whitelistBlacklistCheck(key) && inbound ? inbound(state, key, fullState) : state;\n },\n out: function out(state, key, fullState) {\n return !whitelistBlacklistCheck(key) && outbound ? outbound(state, key, fullState) : state;\n }\n };\n}","map":{"version":3,"names":["createTransform","inbound","outbound","config","arguments","length","undefined","whitelist","blacklist","whitelistBlacklistCheck","key","indexOf","in","_in","state","fullState","out"],"sources":["/Users/mahdi/Documents/work/programming/barnameNegar/arbaeenWebApp/node_modules/redux-persist/es/createTransform.js"],"sourcesContent":["export default function createTransform( // @NOTE inbound: transform state coming from redux on its way to being serialized and stored\ninbound, // @NOTE outbound: transform state coming from storage, on its way to be rehydrated into redux\noutbound) {\n var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var whitelist = config.whitelist || null;\n var blacklist = config.blacklist || null;\n\n function whitelistBlacklistCheck(key) {\n if (whitelist && whitelist.indexOf(key) === -1) return true;\n if (blacklist && blacklist.indexOf(key) !== -1) return true;\n return false;\n }\n\n return {\n in: function _in(state, key, fullState) {\n return !whitelistBlacklistCheck(key) && inbound ? inbound(state, key, fullState) : state;\n },\n out: function out(state, key, fullState) {\n return !whitelistBlacklistCheck(key) && outbound ? outbound(state, key, fullState) : state;\n }\n };\n}"],"mappings":"AAAA,eAAe,SAASA,eAAT,EAA0B;AACzCC,OADe,EACN;AACTC,QAFe,EAEL;EACR,IAAIC,MAAM,GAAGC,SAAS,CAACC,MAAV,GAAmB,CAAnB,IAAwBD,SAAS,CAAC,CAAD,CAAT,KAAiBE,SAAzC,GAAqDF,SAAS,CAAC,CAAD,CAA9D,GAAoE,EAAjF;EACA,IAAIG,SAAS,GAAGJ,MAAM,CAACI,SAAP,IAAoB,IAApC;EACA,IAAIC,SAAS,GAAGL,MAAM,CAACK,SAAP,IAAoB,IAApC;;EAEA,SAASC,uBAAT,CAAiCC,GAAjC,EAAsC;IACpC,IAAIH,SAAS,IAAIA,SAAS,CAACI,OAAV,CAAkBD,GAAlB,MAA2B,CAAC,CAA7C,EAAgD,OAAO,IAAP;IAChD,IAAIF,SAAS,IAAIA,SAAS,CAACG,OAAV,CAAkBD,GAAlB,MAA2B,CAAC,CAA7C,EAAgD,OAAO,IAAP;IAChD,OAAO,KAAP;EACD;;EAED,OAAO;IACLE,EAAE,EAAE,SAASC,GAAT,CAAaC,KAAb,EAAoBJ,GAApB,EAAyBK,SAAzB,EAAoC;MACtC,OAAO,CAACN,uBAAuB,CAACC,GAAD,CAAxB,IAAiCT,OAAjC,GAA2CA,OAAO,CAACa,KAAD,EAAQJ,GAAR,EAAaK,SAAb,CAAlD,GAA4ED,KAAnF;IACD,CAHI;IAILE,GAAG,EAAE,SAASA,GAAT,CAAaF,KAAb,EAAoBJ,GAApB,EAAyBK,SAAzB,EAAoC;MACvC,OAAO,CAACN,uBAAuB,CAACC,GAAD,CAAxB,IAAiCR,QAAjC,GAA4CA,QAAQ,CAACY,KAAD,EAAQJ,GAAR,EAAaK,SAAb,CAApD,GAA8ED,KAArF;IACD;EANI,CAAP;AAQD"},"metadata":{},"sourceType":"module"}