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

@polaritybit/use-form

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polaritybit/use-form - npm Package Compare versions

Comparing version 1.3.1 to 1.4.0

2

coverage/coverage-final.json

@@ -1,3 +0,3 @@

{"/home/gianmarcotoso/Developer/projects/use-form/src/use-form.hook.ts": {"path":"/home/gianmarcotoso/Developer/projects/use-form/src/use-form.hook.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":68}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":86}},"3":{"start":{"line":41,"column":21},"end":{"line":41,"column":35}},"4":{"start":{"line":42,"column":18},"end":{"line":42,"column":39}},"5":{"start":{"line":44,"column":16},"end":{"line":44,"column":40}},"6":{"start":{"line":46,"column":1},"end":{"line":46,"column":null}},"7":{"start":{"line":50,"column":16},"end":{"line":50,"column":48}},"8":{"start":{"line":51,"column":15},"end":{"line":51,"column":73}},"9":{"start":{"line":53,"column":1},"end":{"line":53,"column":null}},"10":{"start":{"line":62,"column":15},"end":{"line":62,"column":48}},"11":{"start":{"line":63,"column":1},"end":{"line":67,"column":null}},"12":{"start":{"line":64,"column":2},"end":{"line":64,"column":null}},"13":{"start":{"line":66,"column":2},"end":{"line":66,"column":8}},"14":{"start":{"line":69,"column":1},"end":{"line":73,"column":null}},"15":{"start":{"line":70,"column":2},"end":{"line":70,"column":null}},"16":{"start":{"line":72,"column":2},"end":{"line":72,"column":8}},"17":{"start":{"line":75,"column":1},"end":{"line":75,"column":null}},"18":{"start":{"line":79,"column":21},"end":{"line":79,"column":37}},"19":{"start":{"line":81,"column":1},"end":{"line":83,"column":null}},"20":{"start":{"line":82,"column":2},"end":{"line":82,"column":null}},"21":{"start":{"line":85,"column":1},"end":{"line":85,"column":null}},"22":{"start":{"line":89,"column":25},"end":{"line":89,"column":84}},"23":{"start":{"line":91,"column":22},"end":{"line":107,"column":7}},"24":{"start":{"line":92,"column":2},"end":{"line":95,"column":null}},"25":{"start":{"line":93,"column":3},"end":{"line":93,"column":null}},"26":{"start":{"line":94,"column":3},"end":{"line":94,"column":9}},"27":{"start":{"line":97,"column":2},"end":{"line":106,"column":null}},"28":{"start":{"line":98,"column":3},"end":{"line":100,"column":null}},"29":{"start":{"line":99,"column":4},"end":{"line":99,"column":null}},"30":{"start":{"line":102,"column":18},"end":{"line":102,"column":63}},"31":{"start":{"line":103,"column":3},"end":{"line":103,"column":null}},"32":{"start":{"line":105,"column":3},"end":{"line":105,"column":null}},"33":{"start":{"line":109,"column":22},"end":{"line":115,"column":3}},"34":{"start":{"line":114,"column":2},"end":{"line":114,"column":null}},"35":{"start":{"line":117,"column":1},"end":{"line":117,"column":null}},"36":{"start":{"line":88,"column":0},"end":{"line":88,"column":16}},"37":{"start":{"line":124,"column":38},"end":{"line":126,"column":11}},"38":{"start":{"line":125,"column":2},"end":{"line":125,"column":null}},"39":{"start":{"line":128,"column":22},"end":{"line":132,"column":null}},"40":{"start":{"line":130,"column":3},"end":{"line":130,"column":null}},"41":{"start":{"line":135,"column":22},"end":{"line":141,"column":3}},"42":{"start":{"line":140,"column":2},"end":{"line":140,"column":null}},"43":{"start":{"line":143,"column":1},"end":{"line":143,"column":null}},"44":{"start":{"line":120,"column":0},"end":{"line":120,"column":16}},"45":{"start":{"line":164,"column":26},"end":{"line":164,"column":30}},"46":{"start":{"line":165,"column":27},"end":{"line":167,"column":16}},"47":{"start":{"line":166,"column":2},"end":{"line":166,"column":null}},"48":{"start":{"line":170,"column":23},"end":{"line":172,"column":4}},"49":{"start":{"line":171,"column":3},"end":{"line":171,"column":null}},"50":{"start":{"line":174,"column":2},"end":{"line":174,"column":null}},"51":{"start":{"line":178,"column":23},"end":{"line":185,"column":4}},"52":{"start":{"line":179,"column":17},"end":{"line":179,"column":80}},"53":{"start":{"line":179,"column":40},"end":{"line":179,"column":79}},"54":{"start":{"line":180,"column":3},"end":{"line":182,"column":null}},"55":{"start":{"line":181,"column":4},"end":{"line":181,"column":10}},"56":{"start":{"line":184,"column":3},"end":{"line":184,"column":null}},"57":{"start":{"line":187,"column":2},"end":{"line":187,"column":null}},"58":{"start":{"line":191,"column":23},"end":{"line":210,"column":4}},"59":{"start":{"line":192,"column":17},"end":{"line":192,"column":80}},"60":{"start":{"line":192,"column":40},"end":{"line":192,"column":79}},"61":{"start":{"line":194,"column":3},"end":{"line":196,"column":null}},"62":{"start":{"line":195,"column":4},"end":{"line":195,"column":10}},"63":{"start":{"line":198,"column":3},"end":{"line":201,"column":null}},"64":{"start":{"line":199,"column":4},"end":{"line":199,"column":null}},"65":{"start":{"line":200,"column":4},"end":{"line":200,"column":10}},"66":{"start":{"line":203,"column":3},"end":{"line":206,"column":null}},"67":{"start":{"line":204,"column":4},"end":{"line":204,"column":null}},"68":{"start":{"line":205,"column":4},"end":{"line":205,"column":10}},"69":{"start":{"line":209,"column":3},"end":{"line":209,"column":null}},"70":{"start":{"line":212,"column":2},"end":{"line":212,"column":null}},"71":{"start":{"line":216,"column":2},"end":{"line":216,"column":null}},"72":{"start":{"line":219,"column":1},"end":{"line":219,"column":null}},"73":{"start":{"line":159,"column":0},"end":{"line":159,"column":16}}},"fnMap":{"0":{"name":"UpdateOnPathAndValue","decl":{"start":{"line":40,"column":9},"end":{"line":40,"column":29}},"loc":{"start":{"line":40,"column":114},"end":{"line":47,"column":1}}},"1":{"name":"UpdateOnEvent","decl":{"start":{"line":49,"column":9},"end":{"line":49,"column":22}},"loc":{"start":{"line":49,"column":83},"end":{"line":54,"column":1}}},"2":{"name":"Update","decl":{"start":{"line":56,"column":9},"end":{"line":56,"column":15}},"loc":{"start":{"line":60,"column":18},"end":{"line":76,"column":1}}},"3":{"name":"useStableCallback","decl":{"start":{"line":78,"column":9},"end":{"line":78,"column":26}},"loc":{"start":{"line":78,"column":61},"end":{"line":86,"column":1}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":81,"column":11},"end":{"line":81,"column":14}},"loc":{"start":{"line":81,"column":16},"end":{"line":83,"column":2}}},"5":{"name":"useForm","decl":{"start":{"line":88,"column":16},"end":{"line":88,"column":23}},"loc":{"start":{"line":88,"column":108},"end":{"line":118,"column":1}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":91,"column":34},"end":{"line":91,"column":35}},"loc":{"start":{"line":91,"column":79},"end":{"line":107,"column":2}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":97,"column":10},"end":{"line":97,"column":11}},"loc":{"start":{"line":97,"column":19},"end":{"line":106,"column":3}}},"8":{"name":"handleChange","decl":{"start":{"line":109,"column":49},"end":{"line":109,"column":61}},"loc":{"start":{"line":112,"column":19},"end":{"line":115,"column":2}}},"9":{"name":"useNestedForm","decl":{"start":{"line":120,"column":16},"end":{"line":120,"column":29}},"loc":{"start":{"line":122,"column":7},"end":{"line":144,"column":1}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":124,"column":46},"end":{"line":124,"column":49}},"loc":{"start":{"line":124,"column":51},"end":{"line":126,"column":2}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":129,"column":2},"end":{"line":129,"column":3}},"loc":{"start":{"line":129,"column":28},"end":{"line":131,"column":3}}},"12":{"name":"handleChange","decl":{"start":{"line":135,"column":49},"end":{"line":135,"column":61}},"loc":{"start":{"line":138,"column":19},"end":{"line":141,"column":2}}},"13":{"name":"useFormList","decl":{"start":{"line":159,"column":16},"end":{"line":159,"column":27}},"loc":{"start":{"line":162,"column":29},"end":{"line":220,"column":1}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":165,"column":35},"end":{"line":165,"column":38}},"loc":{"start":{"line":165,"column":40},"end":{"line":167,"column":2}}},"15":{"name":"handleAddItem","decl":{"start":{"line":169,"column":10},"end":{"line":169,"column":23}},"loc":{"start":{"line":169,"column":44},"end":{"line":175,"column":2}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":170,"column":50},"end":{"line":170,"column":51}},"loc":{"start":{"line":170,"column":60},"end":{"line":172,"column":3}}},"17":{"name":"handleRemoveItem","decl":{"start":{"line":177,"column":10},"end":{"line":177,"column":26}},"loc":{"start":{"line":177,"column":34},"end":{"line":188,"column":2}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":178,"column":50},"end":{"line":178,"column":51}},"loc":{"start":{"line":178,"column":60},"end":{"line":185,"column":3}}},"19":{"name":"(anonymous_20)","decl":{"start":{"line":179,"column":33},"end":{"line":179,"column":34}},"loc":{"start":{"line":179,"column":40},"end":{"line":179,"column":79}}},"20":{"name":"handleUpdateItem","decl":{"start":{"line":190,"column":10},"end":{"line":190,"column":26}},"loc":{"start":{"line":190,"column":76},"end":{"line":213,"column":2}}},"21":{"name":"(anonymous_22)","decl":{"start":{"line":191,"column":50},"end":{"line":191,"column":51}},"loc":{"start":{"line":191,"column":60},"end":{"line":210,"column":3}}},"22":{"name":"(anonymous_23)","decl":{"start":{"line":192,"column":33},"end":{"line":192,"column":34}},"loc":{"start":{"line":192,"column":40},"end":{"line":192,"column":79}}},"23":{"name":"handleChange","decl":{"start":{"line":215,"column":10},"end":{"line":215,"column":22}},"loc":{"start":{"line":215,"column":96},"end":{"line":217,"column":2}}}},"branchMap":{"0":{"loc":{"start":{"line":51,"column":15},"end":{"line":51,"column":73}},"type":"cond-expr","locations":[{"start":{"line":51,"column":44},"end":{"line":51,"column":58}},{"start":{"line":51,"column":61},"end":{"line":51,"column":73}}]},"1":{"loc":{"start":{"line":63,"column":1},"end":{"line":67,"column":null}},"type":"if","locations":[{"start":{"line":63,"column":1},"end":{"line":67,"column":null}},{"start":{"line":63,"column":1},"end":{"line":67,"column":null}}]},"2":{"loc":{"start":{"line":63,"column":5},"end":{"line":63,"column":23}},"type":"cond-expr","locations":[{"start":{"line":63,"column":10},"end":{"line":63,"column":12}},{"start":{"line":63,"column":5},"end":{"line":63,"column":23}}]},"3":{"loc":{"start":{"line":63,"column":5},"end":{"line":63,"column":12}},"type":"binary-expr","locations":[{"start":{"line":63,"column":5},"end":{"line":63,"column":12}},{"start":{"line":63,"column":5},"end":{"line":63,"column":12}}]},"4":{"loc":{"start":{"line":69,"column":1},"end":{"line":73,"column":null}},"type":"if","locations":[{"start":{"line":69,"column":1},"end":{"line":73,"column":null}},{"start":{"line":69,"column":1},"end":{"line":73,"column":null}}]},"5":{"loc":{"start":{"line":69,"column":5},"end":{"line":69,"column":84}},"type":"binary-expr","locations":[{"start":{"line":69,"column":5},"end":{"line":69,"column":43}},{"start":{"line":69,"column":47},"end":{"line":69,"column":84}}]},"6":{"loc":{"start":{"line":88,"column":27},"end":{"line":88,"column":60}},"type":"default-arg","locations":[{"start":{"line":88,"column":58},"end":{"line":88,"column":60}}]},"7":{"loc":{"start":{"line":88,"column":62},"end":{"line":88,"column":108}},"type":"default-arg","locations":[{"start":{"line":88,"column":100},"end":{"line":88,"column":108}}]},"8":{"loc":{"start":{"line":92,"column":2},"end":{"line":95,"column":null}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":95,"column":null}},{"start":{"line":92,"column":2},"end":{"line":95,"column":null}}]},"9":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":31}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":20}},{"start":{"line":92,"column":24},"end":{"line":92,"column":31}}]},"10":{"loc":{"start":{"line":98,"column":3},"end":{"line":100,"column":null}},"type":"if","locations":[{"start":{"line":98,"column":3},"end":{"line":100,"column":null}},{"start":{"line":98,"column":3},"end":{"line":100,"column":null}}]},"11":{"loc":{"start":{"line":125,"column":9},"end":{"line":125,"column":53}},"type":"cond-expr","locations":[{"start":{"line":125,"column":47},"end":{"line":125,"column":51}},{"start":{"line":125,"column":51},"end":{"line":125,"column":53}}]},"12":{"loc":{"start":{"line":125,"column":9},"end":{"line":125,"column":51}},"type":"binary-expr","locations":[{"start":{"line":125,"column":9},"end":{"line":125,"column":51}},{"start":{"line":125,"column":47},"end":{"line":125,"column":51}}]},"13":{"loc":{"start":{"line":166,"column":9},"end":{"line":166,"column":53}},"type":"cond-expr","locations":[{"start":{"line":166,"column":47},"end":{"line":166,"column":51}},{"start":{"line":166,"column":51},"end":{"line":166,"column":53}}]},"14":{"loc":{"start":{"line":166,"column":9},"end":{"line":166,"column":51}},"type":"binary-expr","locations":[{"start":{"line":166,"column":9},"end":{"line":166,"column":51}},{"start":{"line":166,"column":47},"end":{"line":166,"column":51}}]},"15":{"loc":{"start":{"line":180,"column":3},"end":{"line":182,"column":null}},"type":"if","locations":[{"start":{"line":180,"column":3},"end":{"line":182,"column":null}},{"start":{"line":180,"column":3},"end":{"line":182,"column":null}}]},"16":{"loc":{"start":{"line":194,"column":3},"end":{"line":196,"column":null}},"type":"if","locations":[{"start":{"line":194,"column":3},"end":{"line":196,"column":null}},{"start":{"line":194,"column":3},"end":{"line":196,"column":null}}]},"17":{"loc":{"start":{"line":198,"column":3},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":198,"column":3},"end":{"line":201,"column":null}},{"start":{"line":198,"column":3},"end":{"line":201,"column":null}}]},"18":{"loc":{"start":{"line":203,"column":3},"end":{"line":206,"column":null}},"type":"if","locations":[{"start":{"line":203,"column":3},"end":{"line":206,"column":null}},{"start":{"line":203,"column":3},"end":{"line":206,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":22,"4":22,"5":22,"6":22,"7":2,"8":2,"9":2,"10":35,"11":35,"12":2,"13":2,"14":33,"15":20,"16":20,"17":13,"18":63,"19":63,"20":63,"21":63,"22":56,"23":56,"24":27,"25":1,"26":1,"27":26,"28":26,"29":2,"30":24,"31":24,"32":24,"33":56,"34":27,"35":56,"36":1,"37":7,"38":7,"39":7,"40":3,"41":7,"42":3,"43":7,"44":1,"45":25,"46":25,"47":25,"48":2,"49":2,"50":2,"51":4,"52":4,"53":4,"54":4,"55":1,"56":3,"57":4,"58":5,"59":5,"60":5,"61":5,"62":1,"63":4,"64":1,"65":1,"66":3,"67":1,"68":1,"69":2,"70":5,"71":5,"72":25,"73":1},"f":{"0":22,"1":2,"2":35,"3":63,"4":63,"5":56,"6":27,"7":26,"8":27,"9":7,"10":7,"11":3,"12":3,"13":25,"14":25,"15":2,"16":2,"17":4,"18":4,"19":4,"20":5,"21":5,"22":5,"23":5},"b":{"0":[1,1],"1":[2,33],"2":[2,33],"3":[35,33],"4":[20,13],"5":[33,21],"6":[3],"7":[53],"8":[1,26],"9":[27,2],"10":[2,24],"11":[6,1],"12":[7,7],"13":[24,1],"14":[25,25],"15":[1,3],"16":[1,4],"17":[1,3],"18":[1,2]}}
{"/home/gianmarcotoso/Developer/projects/use-form/src/use-form.hook.ts": {"path":"/home/gianmarcotoso/Developer/projects/use-form/src/use-form.hook.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":38}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":68}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":86}},"3":{"start":{"line":41,"column":21},"end":{"line":41,"column":35}},"4":{"start":{"line":42,"column":18},"end":{"line":42,"column":39}},"5":{"start":{"line":44,"column":18},"end":{"line":44,"column":42}},"6":{"start":{"line":46,"column":1},"end":{"line":46,"column":null}},"7":{"start":{"line":50,"column":16},"end":{"line":50,"column":48}},"8":{"start":{"line":51,"column":15},"end":{"line":51,"column":73}},"9":{"start":{"line":53,"column":1},"end":{"line":53,"column":null}},"10":{"start":{"line":62,"column":15},"end":{"line":62,"column":48}},"11":{"start":{"line":63,"column":1},"end":{"line":67,"column":null}},"12":{"start":{"line":64,"column":2},"end":{"line":64,"column":null}},"13":{"start":{"line":66,"column":2},"end":{"line":66,"column":8}},"14":{"start":{"line":69,"column":1},"end":{"line":73,"column":null}},"15":{"start":{"line":70,"column":2},"end":{"line":70,"column":null}},"16":{"start":{"line":72,"column":2},"end":{"line":72,"column":8}},"17":{"start":{"line":75,"column":1},"end":{"line":75,"column":null}},"18":{"start":{"line":79,"column":21},"end":{"line":79,"column":37}},"19":{"start":{"line":81,"column":1},"end":{"line":83,"column":null}},"20":{"start":{"line":82,"column":2},"end":{"line":82,"column":null}},"21":{"start":{"line":85,"column":1},"end":{"line":85,"column":null}},"22":{"start":{"line":89,"column":25},"end":{"line":89,"column":84}},"23":{"start":{"line":91,"column":22},"end":{"line":107,"column":7}},"24":{"start":{"line":92,"column":2},"end":{"line":95,"column":null}},"25":{"start":{"line":93,"column":3},"end":{"line":93,"column":null}},"26":{"start":{"line":94,"column":3},"end":{"line":94,"column":9}},"27":{"start":{"line":97,"column":2},"end":{"line":106,"column":null}},"28":{"start":{"line":98,"column":3},"end":{"line":100,"column":null}},"29":{"start":{"line":99,"column":4},"end":{"line":99,"column":null}},"30":{"start":{"line":102,"column":18},"end":{"line":102,"column":63}},"31":{"start":{"line":103,"column":3},"end":{"line":103,"column":null}},"32":{"start":{"line":105,"column":3},"end":{"line":105,"column":null}},"33":{"start":{"line":109,"column":22},"end":{"line":115,"column":3}},"34":{"start":{"line":114,"column":2},"end":{"line":114,"column":null}},"35":{"start":{"line":117,"column":1},"end":{"line":117,"column":null}},"36":{"start":{"line":88,"column":0},"end":{"line":88,"column":16}},"37":{"start":{"line":124,"column":38},"end":{"line":126,"column":11}},"38":{"start":{"line":125,"column":2},"end":{"line":125,"column":null}},"39":{"start":{"line":128,"column":22},"end":{"line":132,"column":null}},"40":{"start":{"line":130,"column":3},"end":{"line":130,"column":null}},"41":{"start":{"line":135,"column":22},"end":{"line":141,"column":3}},"42":{"start":{"line":140,"column":2},"end":{"line":140,"column":null}},"43":{"start":{"line":143,"column":1},"end":{"line":143,"column":null}},"44":{"start":{"line":120,"column":0},"end":{"line":120,"column":16}},"45":{"start":{"line":164,"column":26},"end":{"line":164,"column":30}},"46":{"start":{"line":165,"column":27},"end":{"line":167,"column":16}},"47":{"start":{"line":166,"column":2},"end":{"line":166,"column":null}},"48":{"start":{"line":170,"column":23},"end":{"line":172,"column":4}},"49":{"start":{"line":171,"column":3},"end":{"line":171,"column":null}},"50":{"start":{"line":174,"column":2},"end":{"line":174,"column":null}},"51":{"start":{"line":178,"column":23},"end":{"line":185,"column":4}},"52":{"start":{"line":179,"column":17},"end":{"line":179,"column":80}},"53":{"start":{"line":179,"column":40},"end":{"line":179,"column":79}},"54":{"start":{"line":180,"column":3},"end":{"line":182,"column":null}},"55":{"start":{"line":181,"column":4},"end":{"line":181,"column":10}},"56":{"start":{"line":184,"column":3},"end":{"line":184,"column":null}},"57":{"start":{"line":187,"column":2},"end":{"line":187,"column":null}},"58":{"start":{"line":191,"column":23},"end":{"line":210,"column":4}},"59":{"start":{"line":192,"column":17},"end":{"line":192,"column":80}},"60":{"start":{"line":192,"column":40},"end":{"line":192,"column":79}},"61":{"start":{"line":194,"column":3},"end":{"line":196,"column":null}},"62":{"start":{"line":195,"column":4},"end":{"line":195,"column":10}},"63":{"start":{"line":198,"column":3},"end":{"line":201,"column":null}},"64":{"start":{"line":199,"column":4},"end":{"line":199,"column":null}},"65":{"start":{"line":200,"column":4},"end":{"line":200,"column":10}},"66":{"start":{"line":203,"column":3},"end":{"line":206,"column":null}},"67":{"start":{"line":204,"column":4},"end":{"line":204,"column":null}},"68":{"start":{"line":205,"column":4},"end":{"line":205,"column":10}},"69":{"start":{"line":209,"column":3},"end":{"line":209,"column":null}},"70":{"start":{"line":212,"column":2},"end":{"line":212,"column":null}},"71":{"start":{"line":216,"column":2},"end":{"line":216,"column":null}},"72":{"start":{"line":219,"column":1},"end":{"line":219,"column":null}},"73":{"start":{"line":159,"column":0},"end":{"line":159,"column":16}}},"fnMap":{"0":{"name":"UpdateOnPathAndValue","decl":{"start":{"line":40,"column":9},"end":{"line":40,"column":29}},"loc":{"start":{"line":40,"column":114},"end":{"line":47,"column":1}}},"1":{"name":"UpdateOnEvent","decl":{"start":{"line":49,"column":9},"end":{"line":49,"column":22}},"loc":{"start":{"line":49,"column":83},"end":{"line":54,"column":1}}},"2":{"name":"Update","decl":{"start":{"line":56,"column":9},"end":{"line":56,"column":15}},"loc":{"start":{"line":60,"column":18},"end":{"line":76,"column":1}}},"3":{"name":"useStableCallback","decl":{"start":{"line":78,"column":9},"end":{"line":78,"column":26}},"loc":{"start":{"line":78,"column":61},"end":{"line":86,"column":1}}},"4":{"name":"(anonymous_5)","decl":{"start":{"line":81,"column":11},"end":{"line":81,"column":14}},"loc":{"start":{"line":81,"column":16},"end":{"line":83,"column":2}}},"5":{"name":"useForm","decl":{"start":{"line":88,"column":16},"end":{"line":88,"column":23}},"loc":{"start":{"line":88,"column":108},"end":{"line":118,"column":1}}},"6":{"name":"(anonymous_7)","decl":{"start":{"line":91,"column":34},"end":{"line":91,"column":35}},"loc":{"start":{"line":91,"column":79},"end":{"line":107,"column":2}}},"7":{"name":"(anonymous_8)","decl":{"start":{"line":97,"column":10},"end":{"line":97,"column":11}},"loc":{"start":{"line":97,"column":19},"end":{"line":106,"column":3}}},"8":{"name":"handleChange","decl":{"start":{"line":109,"column":49},"end":{"line":109,"column":61}},"loc":{"start":{"line":112,"column":19},"end":{"line":115,"column":2}}},"9":{"name":"useNestedForm","decl":{"start":{"line":120,"column":16},"end":{"line":120,"column":29}},"loc":{"start":{"line":122,"column":7},"end":{"line":144,"column":1}}},"10":{"name":"(anonymous_11)","decl":{"start":{"line":124,"column":46},"end":{"line":124,"column":49}},"loc":{"start":{"line":124,"column":51},"end":{"line":126,"column":2}}},"11":{"name":"(anonymous_12)","decl":{"start":{"line":129,"column":2},"end":{"line":129,"column":3}},"loc":{"start":{"line":129,"column":28},"end":{"line":131,"column":3}}},"12":{"name":"handleChange","decl":{"start":{"line":135,"column":49},"end":{"line":135,"column":61}},"loc":{"start":{"line":138,"column":19},"end":{"line":141,"column":2}}},"13":{"name":"useFormList","decl":{"start":{"line":159,"column":16},"end":{"line":159,"column":27}},"loc":{"start":{"line":162,"column":29},"end":{"line":220,"column":1}}},"14":{"name":"(anonymous_15)","decl":{"start":{"line":165,"column":35},"end":{"line":165,"column":38}},"loc":{"start":{"line":165,"column":40},"end":{"line":167,"column":2}}},"15":{"name":"handleAddItem","decl":{"start":{"line":169,"column":10},"end":{"line":169,"column":23}},"loc":{"start":{"line":169,"column":44},"end":{"line":175,"column":2}}},"16":{"name":"(anonymous_17)","decl":{"start":{"line":170,"column":50},"end":{"line":170,"column":51}},"loc":{"start":{"line":170,"column":60},"end":{"line":172,"column":3}}},"17":{"name":"handleRemoveItem","decl":{"start":{"line":177,"column":10},"end":{"line":177,"column":26}},"loc":{"start":{"line":177,"column":34},"end":{"line":188,"column":2}}},"18":{"name":"(anonymous_19)","decl":{"start":{"line":178,"column":50},"end":{"line":178,"column":51}},"loc":{"start":{"line":178,"column":60},"end":{"line":185,"column":3}}},"19":{"name":"(anonymous_20)","decl":{"start":{"line":179,"column":33},"end":{"line":179,"column":34}},"loc":{"start":{"line":179,"column":40},"end":{"line":179,"column":79}}},"20":{"name":"handleUpdateItem","decl":{"start":{"line":190,"column":10},"end":{"line":190,"column":26}},"loc":{"start":{"line":190,"column":76},"end":{"line":213,"column":2}}},"21":{"name":"(anonymous_22)","decl":{"start":{"line":191,"column":50},"end":{"line":191,"column":51}},"loc":{"start":{"line":191,"column":60},"end":{"line":210,"column":3}}},"22":{"name":"(anonymous_23)","decl":{"start":{"line":192,"column":33},"end":{"line":192,"column":34}},"loc":{"start":{"line":192,"column":40},"end":{"line":192,"column":79}}},"23":{"name":"handleChange","decl":{"start":{"line":215,"column":10},"end":{"line":215,"column":22}},"loc":{"start":{"line":215,"column":96},"end":{"line":217,"column":2}}}},"branchMap":{"0":{"loc":{"start":{"line":51,"column":15},"end":{"line":51,"column":73}},"type":"cond-expr","locations":[{"start":{"line":51,"column":44},"end":{"line":51,"column":58}},{"start":{"line":51,"column":61},"end":{"line":51,"column":73}}]},"1":{"loc":{"start":{"line":63,"column":1},"end":{"line":67,"column":null}},"type":"if","locations":[{"start":{"line":63,"column":1},"end":{"line":67,"column":null}}]},"2":{"loc":{"start":{"line":63,"column":5},"end":{"line":63,"column":23}},"type":"cond-expr","locations":[{"start":{"line":63,"column":10},"end":{"line":63,"column":12}},{"start":{"line":63,"column":5},"end":{"line":63,"column":23}}]},"3":{"loc":{"start":{"line":63,"column":5},"end":{"line":63,"column":12}},"type":"binary-expr","locations":[{"start":{"line":63,"column":5},"end":{"line":63,"column":12}},{"start":{"line":63,"column":5},"end":{"line":63,"column":12}}]},"4":{"loc":{"start":{"line":69,"column":1},"end":{"line":73,"column":null}},"type":"if","locations":[{"start":{"line":69,"column":1},"end":{"line":73,"column":null}}]},"5":{"loc":{"start":{"line":69,"column":5},"end":{"line":69,"column":84}},"type":"binary-expr","locations":[{"start":{"line":69,"column":5},"end":{"line":69,"column":43}},{"start":{"line":69,"column":47},"end":{"line":69,"column":84}}]},"6":{"loc":{"start":{"line":88,"column":27},"end":{"line":88,"column":60}},"type":"default-arg","locations":[{"start":{"line":88,"column":58},"end":{"line":88,"column":60}}]},"7":{"loc":{"start":{"line":88,"column":62},"end":{"line":88,"column":108}},"type":"default-arg","locations":[{"start":{"line":88,"column":100},"end":{"line":88,"column":108}}]},"8":{"loc":{"start":{"line":92,"column":2},"end":{"line":95,"column":null}},"type":"if","locations":[{"start":{"line":92,"column":2},"end":{"line":95,"column":null}}]},"9":{"loc":{"start":{"line":92,"column":6},"end":{"line":92,"column":31}},"type":"binary-expr","locations":[{"start":{"line":92,"column":6},"end":{"line":92,"column":20}},{"start":{"line":92,"column":24},"end":{"line":92,"column":31}}]},"10":{"loc":{"start":{"line":98,"column":3},"end":{"line":100,"column":null}},"type":"if","locations":[{"start":{"line":98,"column":3},"end":{"line":100,"column":null}}]},"11":{"loc":{"start":{"line":125,"column":9},"end":{"line":125,"column":53}},"type":"cond-expr","locations":[{"start":{"line":125,"column":47},"end":{"line":125,"column":51}},{"start":{"line":125,"column":51},"end":{"line":125,"column":53}}]},"12":{"loc":{"start":{"line":125,"column":9},"end":{"line":125,"column":51}},"type":"binary-expr","locations":[{"start":{"line":125,"column":9},"end":{"line":125,"column":51}},{"start":{"line":125,"column":47},"end":{"line":125,"column":51}}]},"13":{"loc":{"start":{"line":166,"column":9},"end":{"line":166,"column":53}},"type":"cond-expr","locations":[{"start":{"line":166,"column":47},"end":{"line":166,"column":51}},{"start":{"line":166,"column":51},"end":{"line":166,"column":53}}]},"14":{"loc":{"start":{"line":166,"column":9},"end":{"line":166,"column":51}},"type":"binary-expr","locations":[{"start":{"line":166,"column":9},"end":{"line":166,"column":51}},{"start":{"line":166,"column":47},"end":{"line":166,"column":51}}]},"15":{"loc":{"start":{"line":180,"column":3},"end":{"line":182,"column":null}},"type":"if","locations":[{"start":{"line":180,"column":3},"end":{"line":182,"column":null}}]},"16":{"loc":{"start":{"line":194,"column":3},"end":{"line":196,"column":null}},"type":"if","locations":[{"start":{"line":194,"column":3},"end":{"line":196,"column":null}}]},"17":{"loc":{"start":{"line":198,"column":3},"end":{"line":201,"column":null}},"type":"if","locations":[{"start":{"line":198,"column":3},"end":{"line":201,"column":null}}]},"18":{"loc":{"start":{"line":203,"column":3},"end":{"line":206,"column":null}},"type":"if","locations":[{"start":{"line":203,"column":3},"end":{"line":206,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":22,"4":22,"5":22,"6":22,"7":2,"8":2,"9":2,"10":35,"11":35,"12":2,"13":2,"14":33,"15":20,"16":20,"17":13,"18":63,"19":63,"20":63,"21":63,"22":56,"23":56,"24":27,"25":1,"26":1,"27":26,"28":26,"29":2,"30":24,"31":24,"32":24,"33":56,"34":27,"35":56,"36":1,"37":7,"38":7,"39":7,"40":3,"41":7,"42":3,"43":7,"44":1,"45":25,"46":25,"47":25,"48":2,"49":2,"50":2,"51":4,"52":4,"53":4,"54":4,"55":1,"56":3,"57":4,"58":5,"59":5,"60":5,"61":5,"62":1,"63":4,"64":1,"65":1,"66":3,"67":1,"68":1,"69":2,"70":5,"71":5,"72":25,"73":1},"f":{"0":22,"1":2,"2":35,"3":63,"4":63,"5":56,"6":27,"7":26,"8":27,"9":7,"10":7,"11":3,"12":3,"13":25,"14":25,"15":2,"16":2,"17":4,"18":4,"19":4,"20":5,"21":5,"22":5,"23":5},"b":{"0":[1,1],"1":[2],"2":[2,33],"3":[35,33],"4":[20],"5":[33,21],"6":[3],"7":[53],"8":[1],"9":[27,2],"10":[2],"11":[6,1],"12":[7,7],"13":[24,1],"14":[25,25],"15":[1],"16":[1],"17":[1],"18":[1]}}
,"/home/gianmarcotoso/Developer/projects/use-form/src/value.function.ts": {"path":"/home/gianmarcotoso/Developer/projects/use-form/src/value.function.ts","statementMap":{"0":{"start":{"line":2,"column":1},"end":{"line":2,"column":null}},"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}},"fnMap":{"0":{"name":"value","decl":{"start":{"line":1,"column":16},"end":{"line":1,"column":21}},"loc":{"start":{"line":1,"column":32},"end":{"line":3,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":19}},"type":"cond-expr","locations":[{"start":{"line":2,"column":8},"end":{"line":2,"column":13}},{"start":{"line":2,"column":17},"end":{"line":2,"column":19}}]},"1":{"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":17}},"type":"binary-expr","locations":[{"start":{"line":2,"column":8},"end":{"line":2,"column":17}},{"start":{"line":2,"column":8},"end":{"line":2,"column":17}}]}},"s":{"0":2,"1":1},"f":{"0":2},"b":{"0":[1,1],"1":[2,2]}}
}
import produce from 'immer';
import { identity, mergeDeepLeft, path, lensPath, set } from 'ramda';
import { mergeDeepLeft, identity, path, lensPath, set } from 'ramda';
import { useState, useCallback, useMemo, useRef, useEffect } from 'react';

@@ -4,0 +4,0 @@

{
"name": "@polaritybit/use-form",
"version": "1.3.1",
"version": "1.4.0",
"private": false,

@@ -18,22 +18,27 @@ "repository": {

"devDependencies": {
"@rollup/plugin-typescript": "^8.3.0",
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.0.3",
"@types/ramda": "^0.27.60",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"jest": "^27.4.5",
"@rollup/plugin-typescript": "^8.3.2",
"@testing-library/react": "^13.2.0",
"@types/jest": "^27.5.1",
"@types/ramda": "^0.28.13",
"@types/react": "^18.0.9",
"@types/react-dom": "^18.0.5",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.1.0",
"react": "^18.1.0",
"react-dom": "^18.1.0",
"rimraf": "^3.0.2",
"rollup": "^2.61.1",
"rollup": "^2.74.1",
"rollup-plugin-multi-input": "^1.3.1",
"ts-jest": "^27.1.2",
"tslib": "^2.3.1",
"typescript": "^4.5.4"
"ts-jest": "^28.0.3",
"tslib": "^2.4.0",
"typescript": "^4.6.4"
},
"dependencies": {
"immer": "^9.0.7",
"ramda": "^0.27.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
"immer": "^9.0.14",
"ramda": "^0.28.0"
},
"peerDependencies": {
"react": "^18.1.0",
"react-dom": "^18.1.0"
},
"publishConfig": {

@@ -40,0 +45,0 @@ "access": "public",

@@ -1,2 +0,2 @@

import { act, renderHook } from '@testing-library/react-hooks'
import { act, renderHook } from '@testing-library/react'
import { ChangeEvent } from 'react'

@@ -3,0 +3,0 @@

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