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

cerebral-forms

Package Overview
Dependencies
Maintainers
2
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral-forms - npm Package Compare versions

Comparing version 1.0.0-b-alpha.b2be293f to 1.0.0-b-alpha.e5291296

.nyc_output/24f52ad220582e3696864c8f00069bba.json

12

coverage/coverage-final.json
{"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/form.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/form.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":2},"end":{"line":null,"column":-1}},"2":{"start":{"line":5,"column":4},"end":{"line":null,"column":-1}},"3":{"start":{"line":7,"column":4},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"form","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":40},"end":{"line":9,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":4,"column":38},"end":{"line":4,"column":38}},"loc":{"start":{"line":4,"column":53},"end":{"line":4,"column":9}}}},"branchMap":{},"s":{"0":1,"1":56,"2":87,"3":87},"f":{"0":56,"1":87},"b":{}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/index.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/index.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":2,"column":0},"end":{"line":null,"column":-1}},"2":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"3":{"start":{"line":19,"column":4},"end":{"line":null,"column":-1}},"4":{"start":{"line":22,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"isValidForm","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":7}},"loc":{"start":{"line":17,"column":35},"end":{"line":23,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},"type":"if","locations":[{"start":{"line":18,"column":2},"end":{"line":20,"column":3}},{"start":{"line":18,"column":2},"end":{"line":20,"column":3}}]},"1":{"loc":{"start":{"line":18,"column":6},"end":{"line":18,"column":5}},"type":"binary-expr","locations":[{"start":{"line":18,"column":6},"end":{"line":18,"column":5}},{"start":{"line":18,"column":34},"end":{"line":18,"column":2}}]}},"s":{"0":1,"1":1,"2":8,"3":5,"4":3},"f":{"0":8},"b":{"0":[5,3],"1":[8,4]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/index.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/index.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":2,"column":0},"end":{"line":null,"column":-1}},"2":{"start":{"line":3,"column":0},"end":{"line":null,"column":-1}},"3":{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},"4":{"start":{"line":20,"column":4},"end":{"line":null,"column":-1}},"5":{"start":{"line":23,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"isValidForm","decl":{"start":{"line":18,"column":16},"end":{"line":18,"column":7}},"loc":{"start":{"line":18,"column":35},"end":{"line":24,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},"type":"if","locations":[{"start":{"line":19,"column":2},"end":{"line":21,"column":3}},{"start":{"line":19,"column":2},"end":{"line":21,"column":3}}]},"1":{"loc":{"start":{"line":19,"column":6},"end":{"line":19,"column":5}},"type":"binary-expr","locations":[{"start":{"line":19,"column":6},"end":{"line":19,"column":5}},{"start":{"line":19,"column":34},"end":{"line":19,"column":2}}]}},"s":{"0":1,"1":1,"2":1,"3":8,"4":5,"5":3},"f":{"0":8},"b":{"0":[5,3],"1":[8,4]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/rules.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/rules.js","statementMap":{"0":{"start":{"line":2,"column":14},"end":{"line":2,"column":0}},"1":{"start":{"line":4,"column":4},"end":{"line":null,"column":-1}},"2":{"start":{"line":7,"column":4},"end":{"line":null,"column":-1}},"3":{"start":{"line":10,"column":4},"end":{"line":null,"column":-1}},"4":{"start":{"line":13,"column":4},"end":{"line":null,"column":-1}},"5":{"start":{"line":16,"column":4},"end":{"line":null,"column":-1}},"6":{"start":{"line":19,"column":4},"end":{"line":null,"column":-1}},"7":{"start":{"line":22,"column":4},"end":{"line":null,"column":-1}},"8":{"start":{"line":25,"column":4},"end":{"line":null,"column":-1}},"9":{"start":{"line":28,"column":4},"end":{"line":null,"column":-1}},"10":{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},"11":{"start":{"line":32,"column":6},"end":{"line":null,"column":-1}},"12":{"start":{"line":35,"column":4},"end":{"line":null,"column":-1}},"13":{"start":{"line":38,"column":4},"end":{"line":null,"column":-1}},"14":{"start":{"line":41,"column":4},"end":{"line":null,"column":-1}},"15":{"start":{"line":44,"column":4},"end":{"line":null,"column":-1}},"16":{"start":{"line":47,"column":4},"end":{"line":null,"column":-1}},"17":{"start":{"line":50,"column":4},"end":{"line":null,"column":-1}},"18":{"start":{"line":53,"column":4},"end":{"line":null,"column":-1}},"19":{"start":{"line":56,"column":4},"end":{"line":null,"column":-1}},"20":{"start":{"line":59,"column":4},"end":{"line":null,"column":-1}},"21":{"start":{"line":62,"column":4},"end":{"line":null,"column":-1}},"22":{"start":{"line":65,"column":4},"end":{"line":null,"column":-1}},"23":{"start":{"line":68,"column":4},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"isExisty","decl":{"start":{"line":2,"column":14},"end":{"line":3,"column":11}},"loc":{"start":{"line":3,"column":19},"end":{"line":2,"column":14}}},"1":{"name":"isEmpty","decl":{"start":{"line":2,"column":14},"end":{"line":6,"column":10}},"loc":{"start":{"line":6,"column":18},"end":{"line":2,"column":14}}},"2":{"name":"matchRegexp","decl":{"start":{"line":2,"column":14},"end":{"line":9,"column":14}},"loc":{"start":{"line":9,"column":33},"end":{"line":2,"column":14}}},"3":{"name":"isValue","decl":{"start":{"line":2,"column":14},"end":{"line":12,"column":10}},"loc":{"start":{"line":12,"column":18},"end":{"line":2,"column":14}}},"4":{"name":"isUndefined","decl":{"start":{"line":2,"column":14},"end":{"line":15,"column":14}},"loc":{"start":{"line":15,"column":22},"end":{"line":2,"column":14}}},"5":{"name":"isEmail","decl":{"start":{"line":2,"column":14},"end":{"line":18,"column":10}},"loc":{"start":{"line":18,"column":18},"end":{"line":2,"column":14}}},"6":{"name":"isUrl","decl":{"start":{"line":2,"column":14},"end":{"line":21,"column":8}},"loc":{"start":{"line":21,"column":16},"end":{"line":2,"column":14}}},"7":{"name":"isTrue","decl":{"start":{"line":2,"column":14},"end":{"line":24,"column":9}},"loc":{"start":{"line":24,"column":17},"end":{"line":2,"column":14}}},"8":{"name":"isFalse","decl":{"start":{"line":2,"column":14},"end":{"line":27,"column":10}},"loc":{"start":{"line":27,"column":18},"end":{"line":2,"column":14}}},"9":{"name":"isNumeric","decl":{"start":{"line":2,"column":14},"end":{"line":30,"column":12}},"loc":{"start":{"line":30,"column":20},"end":{"line":2,"column":14}}},"10":{"name":"isAlpha","decl":{"start":{"line":2,"column":14},"end":{"line":37,"column":10}},"loc":{"start":{"line":37,"column":18},"end":{"line":2,"column":14}}},"11":{"name":"isAlphanumeric","decl":{"start":{"line":2,"column":14},"end":{"line":40,"column":17}},"loc":{"start":{"line":40,"column":25},"end":{"line":2,"column":14}}},"12":{"name":"isInt","decl":{"start":{"line":2,"column":14},"end":{"line":43,"column":8}},"loc":{"start":{"line":43,"column":16},"end":{"line":2,"column":14}}},"13":{"name":"isFloat","decl":{"start":{"line":2,"column":14},"end":{"line":46,"column":10}},"loc":{"start":{"line":46,"column":18},"end":{"line":2,"column":14}}},"14":{"name":"isWords","decl":{"start":{"line":2,"column":14},"end":{"line":49,"column":10}},"loc":{"start":{"line":49,"column":18},"end":{"line":2,"column":14}}},"15":{"name":"isSpecialWords","decl":{"start":{"line":2,"column":14},"end":{"line":52,"column":17}},"loc":{"start":{"line":52,"column":25},"end":{"line":2,"column":14}}},"16":{"name":"isLength","decl":{"start":{"line":2,"column":14},"end":{"line":55,"column":11}},"loc":{"start":{"line":55,"column":33},"end":{"line":2,"column":14}}},"17":{"name":"equals","decl":{"start":{"line":2,"column":14},"end":{"line":58,"column":9}},"loc":{"start":{"line":58,"column":28},"end":{"line":2,"column":14}}},"18":{"name":"equalsField","decl":{"start":{"line":2,"column":14},"end":{"line":61,"column":14}},"loc":{"start":{"line":61,"column":35},"end":{"line":2,"column":14}}},"19":{"name":"maxLength","decl":{"start":{"line":2,"column":14},"end":{"line":64,"column":12}},"loc":{"start":{"line":64,"column":34},"end":{"line":2,"column":14}}},"20":{"name":"minLength","decl":{"start":{"line":2,"column":14},"end":{"line":67,"column":12}},"loc":{"start":{"line":67,"column":34},"end":{"line":69,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":10}},"type":"binary-expr","locations":[{"start":{"line":4,"column":11},"end":{"line":4,"column":10}},{"start":{"line":4,"column":29},"end":{"line":4,"column":4}}]},"1":{"loc":{"start":{"line":10,"column":11},"end":{"line":10,"column":10}},"type":"binary-expr","locations":[{"start":{"line":10,"column":11},"end":{"line":10,"column":10}},{"start":{"line":10,"column":37},"end":{"line":10,"column":11}},{"start":{"line":10,"column":61},"end":{"line":10,"column":4}}]},"2":{"loc":{"start":{"line":13,"column":11},"end":{"line":13,"column":10}},"type":"binary-expr","locations":[{"start":{"line":13,"column":11},"end":{"line":13,"column":10}},{"start":{"line":13,"column":34},"end":{"line":13,"column":11}},{"start":{"line":13,"column":50},"end":{"line":13,"column":11}},{"start":{"line":13,"column":68},"end":{"line":13,"column":11}},{"start":{"line":13,"column":88},"end":{"line":13,"column":87}},{"start":{"line":13,"column":113},"end":{"line":13,"column":11}}]},"3":{"loc":{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},"type":"if","locations":[{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},{"start":{"line":31,"column":4},"end":{"line":33,"column":5}}]},"4":{"loc":{"start":{"line":68,"column":11},"end":{"line":68,"column":10}},"type":"binary-expr","locations":[{"start":{"line":68,"column":11},"end":{"line":68,"column":10}},{"start":{"line":68,"column":37},"end":{"line":68,"column":11}},{"start":{"line":68,"column":61},"end":{"line":68,"column":4}}]}},"s":{"0":1,"1":101,"2":101,"3":46,"4":317,"5":2,"6":7,"7":4,"8":3,"9":3,"10":18,"11":8,"12":10,"13":6,"14":5,"15":4,"16":4,"17":3,"18":3,"19":2,"20":3,"21":15,"22":3,"23":53},"f":{"0":101,"1":101,"2":46,"3":317,"4":2,"5":7,"6":4,"7":3,"8":3,"9":18,"10":6,"11":5,"12":4,"13":4,"14":3,"15":3,"16":2,"17":3,"18":15,"19":3,"20":53},"b":{"0":[101,100],"1":[46,46,45],"2":[317,316,242,241,240,2],"3":[8,10],"4":[53,53,48]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/chains/changeField.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/chains/changeField.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":2,"column":0},"end":{"line":null,"column":-1}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1},"f":{},"b":{}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/isValidForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/isValidForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":5,"column":21},"end":{"line":5,"column":4}},"2":{"start":{"line":6,"column":17},"end":{"line":6,"column":4}},"3":{"start":{"line":8,"column":4},"end":{"line":10,"column":5}},"4":{"start":{"line":9,"column":6},"end":{"line":null,"column":-1}},"5":{"start":{"line":12,"column":4},"end":{"line":null,"column":-1}},"6":{"start":{"line":15,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"isValidFormFactory","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":0}},"loc":{"start":{"line":3,"column":47},"end":{"line":16,"column":1}}},"1":{"name":"isValidForm","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":33},"end":{"line":13,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":62},"end":{"line":5,"column":21}},"type":"cond-expr","locations":[{"start":{"line":5,"column":62},"end":{"line":5,"column":21}},{"start":{"line":5,"column":96},"end":{"line":5,"column":4}}]},"1":{"loc":{"start":{"line":8,"column":4},"end":{"line":10,"column":5}},"type":"if","locations":[{"start":{"line":8,"column":4},"end":{"line":10,"column":5}},{"start":{"line":8,"column":4},"end":{"line":10,"column":5}}]}},"s":{"0":1,"1":7,"2":7,"3":7,"4":4,"5":3,"6":5},"f":{"0":5,"1":7},"b":{"0":[2,5],"1":[4,3]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/resetForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/resetForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":2},"end":{"line":null,"column":-1}},"2":{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},"4":{"start":{"line":7,"column":8},"end":{"line":null,"column":-1}},"5":{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},"6":{"start":{"line":9,"column":25},"end":{"line":9,"column":8}},"7":{"start":{"line":10,"column":10},"end":{"line":null,"column":-1}},"8":{"start":{"line":11,"column":10},"end":{"line":null,"column":-1}},"9":{"start":{"line":13,"column":8},"end":{"line":null,"column":-1}},"10":{"start":{"line":14,"column":8},"end":{"line":null,"column":-1}},"11":{"start":{"line":16,"column":8},"end":{"line":null,"column":-1}},"12":{"start":{"line":20,"column":4},"end":{"line":null,"column":-1}},"13":{"start":{"line":25,"column":2},"end":{"line":null,"column":-1}},"14":{"start":{"line":26,"column":4},"end":{"line":null,"column":-1}},"15":{"start":{"line":27,"column":4},"end":{"line":null,"column":-1}},"16":{"start":{"line":33,"column":21},"end":{"line":33,"column":4}},"17":{"start":{"line":34,"column":17},"end":{"line":34,"column":4}},"18":{"start":{"line":36,"column":4},"end":{"line":null,"column":-1}},"19":{"start":{"line":39,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"resetObject","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":0}},"loc":{"start":{"line":3,"column":28},"end":{"line":22,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":4,"column":34},"end":{"line":4,"column":43}},"loc":{"start":{"line":4,"column":58},"end":{"line":4,"column":9}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":9,"column":55},"end":{"line":9,"column":55}},"loc":{"start":{"line":9,"column":75},"end":{"line":9,"column":25}}},"3":{"name":"resetArray","decl":{"start":{"line":24,"column":9},"end":{"line":24,"column":0}},"loc":{"start":{"line":24,"column":32},"end":{"line":29,"column":1}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":25,"column":26},"end":{"line":25,"column":26}},"loc":{"start":{"line":25,"column":57},"end":{"line":25,"column":9}}},"5":{"name":"resetFormFactory","decl":{"start":{"line":31,"column":24},"end":{"line":31,"column":15}},"loc":{"start":{"line":31,"column":60},"end":{"line":40,"column":1}}},"6":{"name":"resetForm","decl":{"start":{"line":32,"column":11},"end":{"line":32,"column":2}},"loc":{"start":{"line":32,"column":31},"end":{"line":37,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},{"start":{"line":5,"column":4},"end":{"line":18,"column":5}}]},"1":{"loc":{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},"type":"if","locations":[{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},{"start":{"line":6,"column":6},"end":{"line":17,"column":7}}]},"2":{"loc":{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},"type":"if","locations":[{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},{"start":{"line":8,"column":13},"end":{"line":17,"column":7}}]},"3":{"loc":{"start":{"line":33,"column":62},"end":{"line":33,"column":21}},"type":"cond-expr","locations":[{"start":{"line":33,"column":62},"end":{"line":33,"column":21}},{"start":{"line":33,"column":96},"end":{"line":33,"column":4}}]}},"s":{"0":1,"1":7,"2":9,"3":9,"4":1,"5":8,"6":7,"7":77,"8":77,"9":7,"10":7,"11":1,"12":9,"13":1,"14":2,"15":2,"16":4,"17":4,"18":4,"19":4},"f":{"0":7,"1":9,"2":77,"3":1,"4":2,"5":4,"6":4},"b":{"0":[9,0],"1":[1,8],"2":[7,1],"3":[3,1]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateField.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateField.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":5,"column":17},"end":{"line":5,"column":4}},"2":{"start":{"line":6,"column":22},"end":{"line":6,"column":4}},"3":{"start":{"line":7,"column":21},"end":{"line":7,"column":4}},"4":{"start":{"line":8,"column":18},"end":{"line":8,"column":4}},"5":{"start":{"line":9,"column":17},"end":{"line":9,"column":4}},"6":{"start":{"line":10,"column":29},"end":{"line":10,"column":4}},"7":{"start":{"line":12,"column":26},"end":{"line":12,"column":4}},"8":{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},"9":{"start":{"line":14,"column":6},"end":{"line":null,"column":-1}},"10":{"start":{"line":15,"column":11},"end":{"line":17,"column":5}},"11":{"start":{"line":16,"column":6},"end":{"line":null,"column":-1}},"12":{"start":{"line":19,"column":40},"end":{"line":19,"column":4}},"13":{"start":{"line":20,"column":33},"end":{"line":20,"column":6}},"14":{"start":{"line":21,"column":32},"end":{"line":21,"column":6}},"15":{"start":{"line":22,"column":29},"end":{"line":22,"column":6}},"16":{"start":{"line":23,"column":28},"end":{"line":23,"column":6}},"17":{"start":{"line":24,"column":6},"end":{"line":26,"column":7}},"18":{"start":{"line":25,"column":8},"end":{"line":null,"column":-1}},"19":{"start":{"line":28,"column":40},"end":{"line":28,"column":6}},"20":{"start":{"line":29,"column":6},"end":{"line":null,"column":-1}},"21":{"start":{"line":31,"column":6},"end":{"line":33,"column":7}},"22":{"start":{"line":32,"column":8},"end":{"line":null,"column":-1}},"23":{"start":{"line":35,"column":6},"end":{"line":null,"column":-1}},"24":{"start":{"line":38,"column":4},"end":{"line":null,"column":-1}},"25":{"start":{"line":41,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"validateFieldFactory","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":60},"end":{"line":42,"column":1}}},"1":{"name":"validateField","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":35},"end":{"line":39,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":63},"end":{"line":19,"column":63}},"loc":{"start":{"line":19,"column":104},"end":{"line":19,"column":40}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":54},"end":{"line":5,"column":17}},"type":"cond-expr","locations":[{"start":{"line":5,"column":54},"end":{"line":5,"column":17}},{"start":{"line":5,"column":84},"end":{"line":5,"column":4}}]},"1":{"loc":{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},"type":"if","locations":[{"start":{"line":13,"column":4},"end":{"line":17,"column":5}},{"start":{"line":13,"column":4},"end":{"line":17,"column":5}}]},"2":{"loc":{"start":{"line":15,"column":11},"end":{"line":17,"column":5}},"type":"if","locations":[{"start":{"line":15,"column":11},"end":{"line":17,"column":5}},{"start":{"line":15,"column":11},"end":{"line":17,"column":5}}]},"3":{"loc":{"start":{"line":24,"column":6},"end":{"line":26,"column":7}},"type":"if","locations":[{"start":{"line":24,"column":6},"end":{"line":26,"column":7}},{"start":{"line":24,"column":6},"end":{"line":26,"column":7}}]},"4":{"loc":{"start":{"line":24,"column":10},"end":{"line":24,"column":9}},"type":"binary-expr","locations":[{"start":{"line":24,"column":10},"end":{"line":24,"column":9}},{"start":{"line":24,"column":28},"end":{"line":24,"column":6}}]},"5":{"loc":{"start":{"line":31,"column":6},"end":{"line":33,"column":7}},"type":"if","locations":[{"start":{"line":31,"column":6},"end":{"line":33,"column":7}},{"start":{"line":31,"column":6},"end":{"line":33,"column":7}}]},"6":{"loc":{"start":{"line":31,"column":10},"end":{"line":31,"column":9}},"type":"binary-expr","locations":[{"start":{"line":31,"column":10},"end":{"line":31,"column":9}},{"start":{"line":31,"column":45},"end":{"line":31,"column":6}}]}},"s":{"0":1,"1":44,"2":44,"3":44,"4":44,"5":44,"6":44,"7":44,"8":44,"9":4,"10":40,"11":9,"12":44,"13":17,"14":17,"15":17,"16":17,"17":17,"18":1,"19":16,"20":16,"21":16,"22":6,"23":10,"24":43,"25":11},"f":{"0":11,"1":44,"2":17},"b":{"0":[20,24],"1":[4,40],"2":[9,31],"3":[1,16],"4":[17,17],"5":[6,10],"6":[16,11]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":5,"column":27},"end":{"line":5,"column":4}},"2":{"start":{"line":6,"column":21},"end":{"line":6,"column":4}},"3":{"start":{"line":7,"column":29},"end":{"line":7,"column":4}},"4":{"start":{"line":10,"column":6},"end":{"line":null,"column":-1}},"5":{"start":{"line":11,"column":8},"end":{"line":19,"column":9}},"6":{"start":{"line":12,"column":10},"end":{"line":18,"column":11}},"7":{"start":{"line":13,"column":12},"end":{"line":null,"column":-1}},"8":{"start":{"line":14,"column":17},"end":{"line":18,"column":11}},"9":{"start":{"line":15,"column":12},"end":{"line":null,"column":-1}},"10":{"start":{"line":17,"column":12},"end":{"line":null,"column":-1}},"11":{"start":{"line":24,"column":6},"end":{"line":null,"column":-1}},"12":{"start":{"line":25,"column":8},"end":{"line":null,"column":-1}},"13":{"start":{"line":29,"column":4},"end":{"line":null,"column":-1}},"14":{"start":{"line":32,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"validateFormFactory","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":69},"end":{"line":33,"column":1}}},"1":{"name":"validateForm","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":34},"end":{"line":30,"column":3}}},"2":{"name":"validateForm","decl":{"start":{"line":9,"column":13},"end":{"line":9,"column":4}},"loc":{"start":{"line":9,"column":39},"end":{"line":21,"column":5}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":10,"column":32},"end":{"line":10,"column":41}},"loc":{"start":{"line":10,"column":47},"end":{"line":10,"column":6}}},"4":{"name":"validateArray","decl":{"start":{"line":23,"column":13},"end":{"line":23,"column":4}},"loc":{"start":{"line":23,"column":45},"end":{"line":27,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":24,"column":24},"end":{"line":24,"column":24}},"loc":{"start":{"line":24,"column":41},"end":{"line":24,"column":6}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":74},"end":{"line":5,"column":27}},"type":"cond-expr","locations":[{"start":{"line":5,"column":74},"end":{"line":5,"column":27}},{"start":{"line":5,"column":114},"end":{"line":5,"column":4}}]},"1":{"loc":{"start":{"line":11,"column":8},"end":{"line":19,"column":9}},"type":"if","locations":[{"start":{"line":11,"column":8},"end":{"line":19,"column":9}},{"start":{"line":11,"column":8},"end":{"line":19,"column":9}}]},"2":{"loc":{"start":{"line":12,"column":10},"end":{"line":18,"column":11}},"type":"if","locations":[{"start":{"line":12,"column":10},"end":{"line":18,"column":11}},{"start":{"line":12,"column":10},"end":{"line":18,"column":11}}]},"3":{"loc":{"start":{"line":14,"column":17},"end":{"line":18,"column":11}},"type":"if","locations":[{"start":{"line":14,"column":17},"end":{"line":18,"column":11}},{"start":{"line":14,"column":17},"end":{"line":18,"column":11}}]}},"s":{"0":1,"1":6,"2":6,"3":6,"4":9,"5":13,"6":13,"7":1,"8":12,"9":11,"10":1,"11":1,"12":2,"13":6,"14":6},"f":{"0":6,"1":6,"2":9,"3":13,"4":1,"5":2},"b":{"0":[3,3],"1":[13,0],"2":[1,12],"3":[11,1]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/chains/changeField.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/chains/changeField.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":2,"column":0},"end":{"line":null,"column":-1}},"2":{"start":{"line":3,"column":0},"end":{"line":null,"column":-1}}},"fnMap":{},"branchMap":{},"s":{"0":1,"1":1,"2":1},"f":{},"b":{}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/isValidForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/isValidForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":51},"end":{"line":4,"column":50}},"2":{"start":{"line":5,"column":4},"end":{"line":27,"column":5}},"3":{"start":{"line":6,"column":6},"end":{"line":null,"column":-1}},"4":{"start":{"line":8,"column":19},"end":{"line":8,"column":6}},"5":{"start":{"line":10,"column":6},"end":{"line":12,"column":7}},"6":{"start":{"line":11,"column":8},"end":{"line":null,"column":-1}},"7":{"start":{"line":14,"column":6},"end":{"line":null,"column":-1}},"8":{"start":{"line":16,"column":6},"end":{"line":18,"column":7}},"9":{"start":{"line":17,"column":8},"end":{"line":null,"column":-1}},"10":{"start":{"line":20,"column":19},"end":{"line":20,"column":6}},"11":{"start":{"line":22,"column":6},"end":{"line":24,"column":7}},"12":{"start":{"line":23,"column":8},"end":{"line":null,"column":-1}},"13":{"start":{"line":26,"column":6},"end":{"line":null,"column":-1}},"14":{"start":{"line":30,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"isValidFormFactory","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":0}},"loc":{"start":{"line":3,"column":39},"end":{"line":31,"column":1}}},"1":{"name":"isValidForm","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":51},"end":{"line":28,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":4},"end":{"line":27,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":27,"column":5}},{"start":{"line":5,"column":4},"end":{"line":27,"column":5}}]},"1":{"loc":{"start":{"line":10,"column":6},"end":{"line":12,"column":7}},"type":"if","locations":[{"start":{"line":10,"column":6},"end":{"line":12,"column":7}},{"start":{"line":10,"column":6},"end":{"line":12,"column":7}}]},"2":{"loc":{"start":{"line":16,"column":6},"end":{"line":18,"column":7}},"type":"if","locations":[{"start":{"line":16,"column":6},"end":{"line":18,"column":7}},{"start":{"line":16,"column":6},"end":{"line":18,"column":7}}]},"3":{"loc":{"start":{"line":22,"column":6},"end":{"line":24,"column":7}},"type":"if","locations":[{"start":{"line":22,"column":6},"end":{"line":24,"column":7}},{"start":{"line":22,"column":6},"end":{"line":24,"column":7}}]}},"s":{"0":1,"1":21,"2":7,"3":5,"4":5,"5":5,"6":3,"7":2,"8":2,"9":0,"10":2,"11":2,"12":1,"13":1,"14":5},"f":{"0":5,"1":7},"b":{"0":[5,2],"1":[3,2],"2":[0,2],"3":[1,1]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/resetForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/resetForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":2},"end":{"line":null,"column":-1}},"2":{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},"3":{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},"4":{"start":{"line":7,"column":8},"end":{"line":null,"column":-1}},"5":{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},"6":{"start":{"line":9,"column":25},"end":{"line":9,"column":8}},"7":{"start":{"line":10,"column":10},"end":{"line":null,"column":-1}},"8":{"start":{"line":11,"column":10},"end":{"line":null,"column":-1}},"9":{"start":{"line":13,"column":8},"end":{"line":null,"column":-1}},"10":{"start":{"line":14,"column":8},"end":{"line":null,"column":-1}},"11":{"start":{"line":16,"column":8},"end":{"line":null,"column":-1}},"12":{"start":{"line":20,"column":4},"end":{"line":null,"column":-1}},"13":{"start":{"line":25,"column":2},"end":{"line":null,"column":-1}},"14":{"start":{"line":26,"column":4},"end":{"line":null,"column":-1}},"15":{"start":{"line":27,"column":4},"end":{"line":null,"column":-1}},"16":{"start":{"line":32,"column":43},"end":{"line":32,"column":42}},"17":{"start":{"line":33,"column":4},"end":{"line":47,"column":5}},"18":{"start":{"line":34,"column":6},"end":{"line":null,"column":-1}},"19":{"start":{"line":36,"column":19},"end":{"line":36,"column":6}},"20":{"start":{"line":38,"column":6},"end":{"line":null,"column":-1}},"21":{"start":{"line":40,"column":6},"end":{"line":42,"column":7}},"22":{"start":{"line":41,"column":8},"end":{"line":null,"column":-1}},"23":{"start":{"line":44,"column":19},"end":{"line":44,"column":6}},"24":{"start":{"line":46,"column":6},"end":{"line":null,"column":-1}},"25":{"start":{"line":50,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"resetObject","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":0}},"loc":{"start":{"line":3,"column":28},"end":{"line":22,"column":1}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":4,"column":34},"end":{"line":4,"column":43}},"loc":{"start":{"line":4,"column":58},"end":{"line":4,"column":9}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":9,"column":55},"end":{"line":9,"column":55}},"loc":{"start":{"line":9,"column":75},"end":{"line":9,"column":25}}},"3":{"name":"resetArray","decl":{"start":{"line":24,"column":9},"end":{"line":24,"column":0}},"loc":{"start":{"line":24,"column":32},"end":{"line":29,"column":1}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":25,"column":26},"end":{"line":25,"column":26}},"loc":{"start":{"line":25,"column":57},"end":{"line":25,"column":9}}},"5":{"name":"resetFormFactory","decl":{"start":{"line":31,"column":24},"end":{"line":31,"column":15}},"loc":{"start":{"line":31,"column":52},"end":{"line":51,"column":1}}},"6":{"name":"resetForm","decl":{"start":{"line":32,"column":11},"end":{"line":32,"column":2}},"loc":{"start":{"line":32,"column":43},"end":{"line":48,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":18,"column":5}},{"start":{"line":5,"column":4},"end":{"line":18,"column":5}}]},"1":{"loc":{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},"type":"if","locations":[{"start":{"line":6,"column":6},"end":{"line":17,"column":7}},{"start":{"line":6,"column":6},"end":{"line":17,"column":7}}]},"2":{"loc":{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},"type":"if","locations":[{"start":{"line":8,"column":13},"end":{"line":17,"column":7}},{"start":{"line":8,"column":13},"end":{"line":17,"column":7}}]},"3":{"loc":{"start":{"line":33,"column":4},"end":{"line":47,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":47,"column":5}},{"start":{"line":33,"column":4},"end":{"line":47,"column":5}}]},"4":{"loc":{"start":{"line":40,"column":6},"end":{"line":42,"column":7}},"type":"if","locations":[{"start":{"line":40,"column":6},"end":{"line":42,"column":7}},{"start":{"line":40,"column":6},"end":{"line":42,"column":7}}]}},"s":{"0":1,"1":7,"2":9,"3":9,"4":1,"5":8,"6":7,"7":77,"8":77,"9":7,"10":7,"11":1,"12":9,"13":1,"14":2,"15":2,"16":8,"17":4,"18":1,"19":1,"20":1,"21":3,"22":0,"23":3,"24":3,"25":4},"f":{"0":7,"1":9,"2":77,"3":1,"4":2,"5":4,"6":4},"b":{"0":[9,0],"1":[1,8],"2":[7,1],"3":[1,3],"4":[0,3]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateField.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateField.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":47},"end":{"line":4,"column":46}},"2":{"start":{"line":5,"column":8},"end":{"line":5,"column":4}},"3":{"start":{"line":7,"column":4},"end":{"line":16,"column":5}},"4":{"start":{"line":8,"column":6},"end":{"line":null,"column":-1}},"5":{"start":{"line":9,"column":6},"end":{"line":null,"column":-1}},"6":{"start":{"line":11,"column":6},"end":{"line":13,"column":7}},"7":{"start":{"line":12,"column":8},"end":{"line":null,"column":-1}},"8":{"start":{"line":15,"column":6},"end":{"line":null,"column":-1}},"9":{"start":{"line":18,"column":29},"end":{"line":18,"column":4}},"10":{"start":{"line":19,"column":21},"end":{"line":19,"column":4}},"11":{"start":{"line":20,"column":18},"end":{"line":20,"column":4}},"12":{"start":{"line":21,"column":17},"end":{"line":21,"column":4}},"13":{"start":{"line":22,"column":29},"end":{"line":22,"column":4}},"14":{"start":{"line":24,"column":26},"end":{"line":24,"column":4}},"15":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"16":{"start":{"line":26,"column":6},"end":{"line":null,"column":-1}},"17":{"start":{"line":27,"column":11},"end":{"line":29,"column":5}},"18":{"start":{"line":28,"column":6},"end":{"line":null,"column":-1}},"19":{"start":{"line":31,"column":40},"end":{"line":31,"column":4}},"20":{"start":{"line":32,"column":33},"end":{"line":32,"column":6}},"21":{"start":{"line":33,"column":32},"end":{"line":33,"column":6}},"22":{"start":{"line":34,"column":29},"end":{"line":34,"column":6}},"23":{"start":{"line":35,"column":28},"end":{"line":35,"column":6}},"24":{"start":{"line":36,"column":6},"end":{"line":38,"column":7}},"25":{"start":{"line":37,"column":8},"end":{"line":null,"column":-1}},"26":{"start":{"line":40,"column":40},"end":{"line":40,"column":6}},"27":{"start":{"line":41,"column":6},"end":{"line":null,"column":-1}},"28":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"29":{"start":{"line":44,"column":8},"end":{"line":null,"column":-1}},"30":{"start":{"line":47,"column":6},"end":{"line":null,"column":-1}},"31":{"start":{"line":50,"column":4},"end":{"line":null,"column":-1}},"32":{"start":{"line":53,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"validateFieldFactory","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":57},"end":{"line":54,"column":1}}},"1":{"name":"validateField","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":47},"end":{"line":51,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":31,"column":63},"end":{"line":31,"column":63}},"loc":{"start":{"line":31,"column":104},"end":{"line":31,"column":40}}}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":4},"end":{"line":16,"column":5}},"type":"if","locations":[{"start":{"line":7,"column":4},"end":{"line":16,"column":5}},{"start":{"line":7,"column":4},"end":{"line":16,"column":5}}]},"1":{"loc":{"start":{"line":11,"column":6},"end":{"line":13,"column":7}},"type":"if","locations":[{"start":{"line":11,"column":6},"end":{"line":13,"column":7}},{"start":{"line":11,"column":6},"end":{"line":13,"column":7}}]},"2":{"loc":{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":25,"column":4},"end":{"line":29,"column":5}},{"start":{"line":25,"column":4},"end":{"line":29,"column":5}}]},"3":{"loc":{"start":{"line":27,"column":11},"end":{"line":29,"column":5}},"type":"if","locations":[{"start":{"line":27,"column":11},"end":{"line":29,"column":5}},{"start":{"line":27,"column":11},"end":{"line":29,"column":5}}]},"4":{"loc":{"start":{"line":36,"column":6},"end":{"line":38,"column":7}},"type":"if","locations":[{"start":{"line":36,"column":6},"end":{"line":38,"column":7}},{"start":{"line":36,"column":6},"end":{"line":38,"column":7}}]},"5":{"loc":{"start":{"line":36,"column":10},"end":{"line":36,"column":9}},"type":"binary-expr","locations":[{"start":{"line":36,"column":10},"end":{"line":36,"column":9}},{"start":{"line":36,"column":28},"end":{"line":36,"column":6}}]},"6":{"loc":{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},"type":"if","locations":[{"start":{"line":43,"column":6},"end":{"line":45,"column":7}},{"start":{"line":43,"column":6},"end":{"line":45,"column":7}}]},"7":{"loc":{"start":{"line":43,"column":10},"end":{"line":43,"column":9}},"type":"binary-expr","locations":[{"start":{"line":43,"column":10},"end":{"line":43,"column":9}},{"start":{"line":43,"column":45},"end":{"line":43,"column":6}}]}},"s":{"0":1,"1":88,"2":44,"3":44,"4":24,"5":24,"6":20,"7":0,"8":20,"9":44,"10":44,"11":44,"12":44,"13":44,"14":44,"15":44,"16":4,"17":40,"18":9,"19":44,"20":17,"21":17,"22":17,"23":17,"24":17,"25":1,"26":16,"27":16,"28":16,"29":6,"30":10,"31":43,"32":11},"f":{"0":11,"1":44,"2":17},"b":{"0":[24,20],"1":[0,20],"2":[4,40],"3":[9,31],"4":[1,16],"5":[17,17],"6":[6,10],"7":[16,11]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateForm.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/factories/validateForm.js","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":null,"column":-1}},"1":{"start":{"line":4,"column":53},"end":{"line":4,"column":52}},"2":{"start":{"line":6,"column":6},"end":{"line":null,"column":-1}},"3":{"start":{"line":7,"column":8},"end":{"line":15,"column":9}},"4":{"start":{"line":8,"column":10},"end":{"line":14,"column":11}},"5":{"start":{"line":9,"column":12},"end":{"line":null,"column":-1}},"6":{"start":{"line":10,"column":17},"end":{"line":14,"column":11}},"7":{"start":{"line":11,"column":12},"end":{"line":null,"column":-1}},"8":{"start":{"line":13,"column":12},"end":{"line":null,"column":-1}},"9":{"start":{"line":20,"column":6},"end":{"line":null,"column":-1}},"10":{"start":{"line":21,"column":8},"end":{"line":null,"column":-1}},"11":{"start":{"line":24,"column":4},"end":{"line":33,"column":5}},"12":{"start":{"line":25,"column":6},"end":{"line":null,"column":-1}},"13":{"start":{"line":26,"column":6},"end":{"line":null,"column":-1}},"14":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"15":{"start":{"line":29,"column":8},"end":{"line":null,"column":-1}},"16":{"start":{"line":32,"column":6},"end":{"line":null,"column":-1}},"17":{"start":{"line":36,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"validateFormFactory","decl":{"start":{"line":3,"column":24},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":55},"end":{"line":37,"column":1}}},"1":{"name":"validateForm","decl":{"start":{"line":4,"column":11},"end":{"line":4,"column":2}},"loc":{"start":{"line":4,"column":53},"end":{"line":34,"column":3}}},"2":{"name":"validate","decl":{"start":{"line":5,"column":13},"end":{"line":5,"column":4}},"loc":{"start":{"line":5,"column":35},"end":{"line":17,"column":5}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":6,"column":32},"end":{"line":6,"column":41}},"loc":{"start":{"line":6,"column":47},"end":{"line":6,"column":6}}},"4":{"name":"validateArray","decl":{"start":{"line":19,"column":13},"end":{"line":19,"column":4}},"loc":{"start":{"line":19,"column":45},"end":{"line":23,"column":5}}},"5":{"name":"(anonymous_6)","decl":{"start":{"line":20,"column":24},"end":{"line":20,"column":24}},"loc":{"start":{"line":20,"column":41},"end":{"line":20,"column":6}}}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":8},"end":{"line":15,"column":9}},"type":"if","locations":[{"start":{"line":7,"column":8},"end":{"line":15,"column":9}},{"start":{"line":7,"column":8},"end":{"line":15,"column":9}}]},"1":{"loc":{"start":{"line":8,"column":10},"end":{"line":14,"column":11}},"type":"if","locations":[{"start":{"line":8,"column":10},"end":{"line":14,"column":11}},{"start":{"line":8,"column":10},"end":{"line":14,"column":11}}]},"2":{"loc":{"start":{"line":10,"column":17},"end":{"line":14,"column":11}},"type":"if","locations":[{"start":{"line":10,"column":17},"end":{"line":14,"column":11}},{"start":{"line":10,"column":17},"end":{"line":14,"column":11}}]},"3":{"loc":{"start":{"line":24,"column":4},"end":{"line":33,"column":5}},"type":"if","locations":[{"start":{"line":24,"column":4},"end":{"line":33,"column":5}},{"start":{"line":24,"column":4},"end":{"line":33,"column":5}}]},"4":{"loc":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"type":"if","locations":[{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},{"start":{"line":28,"column":6},"end":{"line":30,"column":7}}]}},"s":{"0":1,"1":18,"2":9,"3":13,"4":13,"5":1,"6":12,"7":11,"8":1,"9":1,"10":2,"11":6,"12":3,"13":3,"14":3,"15":0,"16":3,"17":6},"f":{"0":6,"1":6,"2":9,"3":13,"4":1,"5":2},"b":{"0":[13,0],"1":[1,12],"2":[11,1],"3":[3,3],"4":[0,3]}}
,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/helpers/formToJSON.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/helpers/formToJSON.js","statementMap":{"0":{"start":{"line":2,"column":2},"end":{"line":null,"column":-1}},"1":{"start":{"line":3,"column":4},"end":{"line":11,"column":5}},"2":{"start":{"line":4,"column":6},"end":{"line":10,"column":7}},"3":{"start":{"line":5,"column":8},"end":{"line":null,"column":-1}},"4":{"start":{"line":6,"column":13},"end":{"line":10,"column":7}},"5":{"start":{"line":7,"column":8},"end":{"line":null,"column":-1}},"6":{"start":{"line":9,"column":8},"end":{"line":null,"column":-1}},"7":{"start":{"line":13,"column":4},"end":{"line":null,"column":-1}},"8":{"start":{"line":18,"column":2},"end":{"line":null,"column":-1}},"9":{"start":{"line":19,"column":4},"end":{"line":null,"column":-1}},"10":{"start":{"line":24,"column":2},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"extractObject","decl":{"start":{"line":1,"column":9},"end":{"line":1,"column":0}},"loc":{"start":{"line":1,"column":32},"end":{"line":15,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":36},"end":{"line":2,"column":36}},"loc":{"start":{"line":2,"column":56},"end":{"line":2,"column":9}}},"2":{"name":"extractArray","decl":{"start":{"line":17,"column":9},"end":{"line":17,"column":0}},"loc":{"start":{"line":17,"column":30},"end":{"line":21,"column":1}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":18,"column":19},"end":{"line":18,"column":19}},"loc":{"start":{"line":18,"column":31},"end":{"line":18,"column":9}}},"4":{"name":"formToJSON","decl":{"start":{"line":23,"column":24},"end":{"line":23,"column":15}},"loc":{"start":{"line":23,"column":42},"end":{"line":25,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":4},"end":{"line":11,"column":5}},"type":"if","locations":[{"start":{"line":3,"column":4},"end":{"line":11,"column":5}},{"start":{"line":3,"column":4},"end":{"line":11,"column":5}}]},"1":{"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":22}},"type":"binary-expr","locations":[{"start":{"line":3,"column":8},"end":{"line":3,"column":22}},{"start":{"line":3,"column":23},"end":{"line":3,"column":4}}]},"2":{"loc":{"start":{"line":4,"column":6},"end":{"line":10,"column":7}},"type":"if","locations":[{"start":{"line":4,"column":6},"end":{"line":10,"column":7}},{"start":{"line":4,"column":6},"end":{"line":10,"column":7}}]},"3":{"loc":{"start":{"line":6,"column":13},"end":{"line":10,"column":7}},"type":"if","locations":[{"start":{"line":6,"column":13},"end":{"line":10,"column":7}},{"start":{"line":6,"column":13},"end":{"line":10,"column":7}}]}},"s":{"0":8,"1":11,"2":10,"3":1,"4":9,"5":6,"6":3,"7":11,"8":1,"9":2,"10":3},"f":{"0":8,"1":11,"2":1,"3":2,"4":3},"b":{"0":[10,1],"1":[11,11],"2":[1,9],"3":[6,3]}}

@@ -10,0 +10,0 @@ ,"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/helpers/getFormFields.js": {"path":"/home/travis/build/cerebral/cerebral/packages/cerebral-forms/src/helpers/getFormFields.js","statementMap":{"0":{"start":{"line":1,"column":81},"end":{"line":1,"column":80}},"1":{"start":{"line":2,"column":2},"end":{"line":null,"column":-1}},"2":{"start":{"line":3,"column":4},"end":{"line":null,"column":-1}},"3":{"start":{"line":4,"column":4},"end":{"line":18,"column":5}},"4":{"start":{"line":5,"column":6},"end":{"line":null,"column":-1}},"5":{"start":{"line":6,"column":8},"end":{"line":null,"column":-1}},"6":{"start":{"line":7,"column":8},"end":{"line":null,"column":-1}},"7":{"start":{"line":8,"column":8},"end":{"line":null,"column":-1}},"8":{"start":{"line":10,"column":6},"end":{"line":null,"column":-1}},"9":{"start":{"line":12,"column":6},"end":{"line":null,"column":-1}},"10":{"start":{"line":13,"column":11},"end":{"line":18,"column":5}},"11":{"start":{"line":14,"column":6},"end":{"line":null,"column":-1}},"12":{"start":{"line":15,"column":6},"end":{"line":null,"column":-1}},"13":{"start":{"line":17,"column":6},"end":{"line":null,"column":-1}},"14":{"start":{"line":19,"column":4},"end":{"line":null,"column":-1}},"15":{"start":{"line":20,"column":4},"end":{"line":null,"column":-1}},"16":{"start":{"line":22,"column":4},"end":{"line":null,"column":-1}}},"fnMap":{"0":{"name":"getFormFields","decl":{"start":{"line":1,"column":24},"end":{"line":1,"column":15}},"loc":{"start":{"line":1,"column":81},"end":{"line":24,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":2,"column":36},"end":{"line":2,"column":36}},"loc":{"start":{"line":2,"column":56},"end":{"line":2,"column":9}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":5,"column":26},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":47},"end":{"line":5,"column":6}}}},"branchMap":{"0":{"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":60}},"type":"cond-expr","locations":[{"start":{"line":1,"column":81},"end":{"line":1,"column":60}},{"start":{"line":1,"column":61},"end":{"line":1,"column":81}}]},"1":{"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":60}},"type":"binary-expr","locations":[{"start":{"line":1,"column":81},"end":{"line":1,"column":60}},{"start":{"line":1,"column":81},"end":{"line":1,"column":60}}]},"2":{"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":76}},"type":"cond-expr","locations":[{"start":{"line":1,"column":81},"end":{"line":1,"column":76}},{"start":{"line":1,"column":77},"end":{"line":1,"column":81}}]},"3":{"loc":{"start":{"line":1,"column":81},"end":{"line":1,"column":76}},"type":"binary-expr","locations":[{"start":{"line":1,"column":81},"end":{"line":1,"column":76}},{"start":{"line":1,"column":81},"end":{"line":1,"column":76}}]},"4":{"loc":{"start":{"line":4,"column":4},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":4,"column":4},"end":{"line":18,"column":5}},{"start":{"line":4,"column":4},"end":{"line":18,"column":5}}]},"5":{"loc":{"start":{"line":13,"column":11},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":13,"column":11},"end":{"line":18,"column":5}},{"start":{"line":13,"column":11},"end":{"line":18,"column":5}}]},"6":{"loc":{"start":{"line":13,"column":15},"end":{"line":13,"column":14}},"type":"binary-expr","locations":[{"start":{"line":13,"column":15},"end":{"line":13,"column":14}},{"start":{"line":13,"column":54},"end":{"line":13,"column":11}}]}},"s":{"0":46,"1":23,"2":40,"3":40,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":39,"11":32,"12":32,"13":32,"14":7,"15":7,"16":7},"f":{"0":23,"1":40,"2":1},"b":{"0":[8,15],"1":[23,8],"2":[8,15],"3":[23,8],"4":[1,39],"5":[32,7],"6":[39,39]}}

@@ -9,6 +9,9 @@ 'use strict';

_templateObject2 = _taggedTemplateLiteral(['field'], ['field']),
_templateObject3 = _taggedTemplateLiteral(['value'], ['value']);
_templateObject3 = _taggedTemplateLiteral(['value'], ['value']),
_templateObject4 = _taggedTemplateLiteral(['', ''], ['', '']);
var _operators = require('cerebral/operators');
var _tags = require('cerebral/tags');
var _validateField = require('../factories/validateField');

@@ -22,3 +25,3 @@

exports.default = [(0, _operators.set)((0, _operators.state)(_templateObject, (0, _operators.input)(_templateObject2)), (0, _operators.input)(_templateObject3)), (0, _validateField2.default)((0, _operators.input)(_templateObject2))];
exports.default = [(0, _operators.set)((0, _tags.state)(_templateObject, (0, _tags.input)(_templateObject2)), (0, _tags.input)(_templateObject3)), (0, _validateField2.default)((0, _tags.state)(_templateObject4, (0, _tags.input)(_templateObject2)))];
//# sourceMappingURL=changeField.js.map

@@ -13,12 +13,31 @@ 'use strict';

function isValidFormFactory(formPathTemplate) {
function isValidForm(context) {
var formPath = typeof formPathTemplate === 'function' ? formPathTemplate(context).value : formPathTemplate;
var form = context.state.get(formPath);
function isValidFormFactory(formPath) {
function isValidForm(_ref) {
var state = _ref.state,
path = _ref.path,
resolveArg = _ref.resolveArg;
if ((0, _isValidForm2.default)(form)) {
return context.path.true();
if (typeof formPath === 'string') {
console.warn('DEPRECATION: Cerebral Forms now requires STATE TAG to be passed into isValidForm factory');
var form = state.get(formPath);
if ((0, _isValidForm2.default)(form)) {
return path.true();
}
return path.false();
} else {
if (!resolveArg.isTag(formPath, 'state')) {
throw new Error('Cerebral Forms - isValidForm factory requires a STATE TAG');
}
var _form = resolveArg.value(formPath);
if ((0, _isValidForm2.default)(_form)) {
return path.true();
}
return path.false();
}
return context.path.false();
}

@@ -25,0 +44,0 @@

@@ -42,8 +42,22 @@ 'use strict';

function resetFormFactory(formPathTemplate) {
function resetForm(context) {
var formPath = typeof formPathTemplate === 'function' ? formPathTemplate(context).value : formPathTemplate;
var form = context.state.get(formPath);
function resetFormFactory(formPath) {
function resetForm(_ref) {
var state = _ref.state,
resolveArg = _ref.resolveArg;
context.state.merge(formPath, resetObject(form));
if (typeof formPath === 'string') {
console.warn('DEPRECATION: Cerebral Forms now requires STATE TAG to be passed into resetForm factory');
var form = state.get(formPath);
state.merge(formPath, resetObject(form));
} else {
if (!resolveArg.isTag(formPath, 'state')) {
throw new Error('Cerebral Forms - isValidForm factory requires a STATE TAG');
}
var _form = resolveArg.value(formPath);
state.merge(resolveArg.path(formPath), resetObject(_form));
}
}

@@ -50,0 +64,0 @@

@@ -14,9 +14,24 @@ 'use strict';

function validateFieldFactory(pathTemplate) {
function validateField(context) {
var path = typeof pathTemplate === 'function' ? pathTemplate(context).value : pathTemplate;
var fieldPath = path.split('.');
var formPath = fieldPath.slice().splice(0, fieldPath.length - 1);
var field = context.state.get(fieldPath);
var form = context.state.get(formPath);
function validateFieldFactory(fieldPath) {
function validateField(_ref) {
var state = _ref.state,
resolveArg = _ref.resolveArg;
var path = void 0;
if (typeof fieldPath === 'string') {
console.warn('DEPRECATION: Cerebral Forms now requires STATE TAG to be passed into validateField factory');
path = fieldPath;
} else {
if (!resolveArg.isTag(fieldPath, 'state')) {
throw new Error('Cerebral Forms - validateField factory requires a STATE TAG');
}
path = resolveArg.path(fieldPath);
}
var fieldPathAsArray = path.split('.');
var formPath = fieldPathAsArray.slice().splice(0, fieldPathAsArray.length - 1);
var field = state.get(path);
var form = state.get(formPath);
var validationResult = (0, _runValidation2.default)(field, form);

@@ -34,4 +49,4 @@

var dependentFormPath = dependentFieldPath.slice().splice(0, dependentFieldPath.length - 1);
var dependentField = context.state.get(dependentFieldPath);
var dependentForm = context.state.get(dependentFormPath);
var dependentField = state.get(dependentFieldPath);
var dependentForm = state.get(dependentFormPath);
if (!dependentForm || !dependentField) {

@@ -42,3 +57,3 @@ throw new Error('The path ' + stringPath + ' used with "dependsOn" on field ' + fieldPath.join('.') + ' is not correct, please check it');

var dependentValidationResult = (0, _runValidation2.default)(dependentField, dependentForm);
context.state.merge(dependentFieldPath, dependentValidationResult);
state.merge(dependentFieldPath, dependentValidationResult);

@@ -52,3 +67,3 @@ if (currentValidationResult.isValid && !dependentValidationResult.isValid) {

context.state.merge(fieldPath, dependentOfValidationResult);
state.merge(path, dependentOfValidationResult);
}

@@ -55,0 +70,0 @@

@@ -14,9 +14,9 @@ 'use strict';

function validateFormFactory(passedFormPathTemplate) {
function validateForm(context) {
var passedFormPath = typeof passedFormPathTemplate === 'function' ? passedFormPathTemplate(context).value : passedFormPathTemplate;
var formPath = passedFormPath.split('.');
var currentPathValue = context.state.get(formPath);
function validateFormFactory(formPath) {
function validateForm(_ref) {
var state = _ref.state,
input = _ref.input,
resolveArg = _ref.resolveArg;
function validateForm(path, form) {
function validate(path, form) {
Object.keys(form).forEach(function (key) {

@@ -27,5 +27,5 @@ if (form[key] === Object(form[key])) {

} else if ('value' in form[key]) {
context.state.merge(path.concat(key), (0, _runValidation2.default)(form[key], form));
state.merge(path.concat(key), (0, _runValidation2.default)(form[key], form));
} else {
validateForm(path.concat(key), form[key]);
validate(path.concat(key), form[key]);
}

@@ -38,7 +38,15 @@ }

formArray.forEach(function (form, index) {
validateForm(path.concat(index), form);
validate(path.concat(index), form);
});
}
if (typeof formPath === 'string') {
console.warn('DEPRECATION: Cerebral Forms now requires STATE TAG to be passed into validateForm factory');
validate(formPath.split('.'), state.get(formPath));
} else {
if (!resolveArg.isTag(formPath, 'state')) {
throw new Error('Cerebral Forms - validateField factory requires a STATE TAG');
}
validateForm(formPath, currentPathValue);
validate(resolveArg.path(formPath).split('.'), resolveArg.value(formPath));
}
}

@@ -45,0 +53,0 @@

@@ -90,2 +90,4 @@ 'use strict';

var _tags = require('cerebral/tags');
var _isValidForm = require('./helpers/isValidForm');

@@ -102,3 +104,3 @@

function isValidForm(form) {
if (typeof form === 'string' || typeof form === 'function') {
if (typeof form === 'string' || form instanceof _tags.Tag) {
return (0, _isValidForm4.default)(form);

@@ -105,0 +107,0 @@ }

{
"name": "cerebral-forms",
"version": "1.0.0-b-alpha.b2be293f",
"version": "1.0.0-b-alpha.e5291296",
"description": "Signals, actions and state factories to create forms",

@@ -29,6 +29,6 @@ "main": "lib/index.js",

"peerDependencies": {
"cerebral": "^2.0.0-b-alpha.b2be293f"
"cerebral": "^2.0.0-b-alpha.e5291296"
},
"devDependencies": {
"cerebral": "^2.0.0-b-alpha.b2be293f"
"cerebral": "^2.0.0-b-alpha.e5291296"
},

@@ -35,0 +35,0 @@ "nyc": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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