@accounts/password
Advanced tools
Comparing version 0.16.0 to 0.17.0
@@ -309,2 +309,3 @@ import { set } from 'lodash'; | ||
password.server = { | ||
...server, | ||
prepareMail, | ||
@@ -335,2 +336,3 @@ options: { sendMail }, | ||
password.server = { | ||
...server, | ||
isTokenExpired, | ||
@@ -375,2 +377,3 @@ loginWithUser: jest.fn(), | ||
tmpAccountsPassword.server = { | ||
...server, | ||
isTokenExpired, | ||
@@ -410,2 +413,11 @@ loginWithUser, | ||
it('throws when new password is invalid', async () => { | ||
try { | ||
await password.changePassword('userId', 'old-password', null as any); | ||
throw new Error(); | ||
} catch (err) { | ||
expect(err.message).toMatchSnapshot(); | ||
} | ||
}); | ||
it('call passwordAuthenticator and this.db.setPassword', async () => { | ||
@@ -420,2 +432,3 @@ const userId = 'id'; | ||
password.server = { | ||
...server, | ||
prepareMail, | ||
@@ -428,3 +441,3 @@ options: { sendMail }, | ||
.spyOn(password, 'passwordAuthenticator' as any) | ||
.mockImplementation(() => Promise.resolve({})); | ||
.mockImplementation(() => Promise.resolve(validUser)); | ||
await password.changePassword(userId, 'old-password', 'new-password'); | ||
@@ -431,0 +444,0 @@ expect(passwordAuthenticator.mock.calls[0][0]).toEqual({ id: userId }); |
@@ -1,8 +0,8 @@ | ||
{"/Users/leo/dev/accounts-js/accounts/packages/password/src/accounts-password.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/accounts-password.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":92}},"1":{"start":{"line":13,"column":0},"end":{"line":13,"column":99}},"2":{"start":{"line":14,"column":0},"end":{"line":14,"column":83}},"3":{"start":{"line":15,"column":0},"end":{"line":22,"column":16}},"4":{"start":{"line":24,"column":0},"end":{"line":24,"column":33}},"5":{"start":{"line":61,"column":23},"end":{"line":83,"column":1}},"6":{"start":{"line":72,"column":4},"end":{"line":72,"column":51}},"7":{"start":{"line":75,"column":4},"end":{"line":75,"column":30}},"8":{"start":{"line":78,"column":26},"end":{"line":78,"column":50}},"9":{"start":{"line":79,"column":20},"end":{"line":79,"column":88}},"10":{"start":{"line":80,"column":4},"end":{"line":80,"column":28}},"11":{"start":{"line":85,"column":0},"end":{"line":560,"column":0}},"12":{"start":{"line":92,"column":14},"end":{"line":92,"column":51}},"13":{"start":{"line":86,"column":9},"end":{"line":86,"column":34}},"14":{"start":{"line":93,"column":4},"end":{"line":93,"column":53}},"15":{"start":{"line":94,"column":4},"end":{"line":94,"column":54}},"16":{"start":{"line":97,"column":9},"end":{"line":100,"column":3}},"17":{"start":{"line":98,"column":4},"end":{"line":98,"column":20}},"18":{"start":{"line":99,"column":4},"end":{"line":99,"column":35}},"19":{"start":{"line":102,"column":15},"end":{"line":119,"column":3}},"20":{"start":{"line":103,"column":12},"end":{"line":103,"column":44}},"21":{"start":{"line":104,"column":4},"end":{"line":106,"column":5}},"22":{"start":{"line":105,"column":6},"end":{"line":105,"column":71}},"23":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"24":{"start":{"line":108,"column":6},"end":{"line":108,"column":55}},"25":{"start":{"line":111,"column":22},"end":{"line":111,"column":70}},"26":{"start":{"line":111,"column":10},"end":{"line":111,"column":70}},"27":{"start":{"line":114,"column":8},"end":{"line":114,"column":42}},"28":{"start":{"line":115,"column":6},"end":{"line":115,"column":57}},"29":{"start":{"line":115,"column":6},"end":{"line":115,"column":58}},"30":{"start":{"line":118,"column":4},"end":{"line":118,"column":21}},"31":{"start":{"line":126,"column":9},"end":{"line":128,"column":3}},"32":{"start":{"line":127,"column":4},"end":{"line":127,"column":42}},"33":{"start":{"line":135,"column":9},"end":{"line":137,"column":3}},"34":{"start":{"line":136,"column":4},"end":{"line":136,"column":48}},"35":{"start":{"line":149,"column":9},"end":{"line":154,"column":3}},"36":{"start":{"line":150,"column":4},"end":{"line":152,"column":5}},"37":{"start":{"line":151,"column":6},"end":{"line":151,"column":56}},"38":{"start":{"line":153,"column":4},"end":{"line":153,"column":56}},"39":{"start":{"line":163,"column":9},"end":{"line":165,"column":3}},"40":{"start":{"line":164,"column":4},"end":{"line":164,"column":46}},"41":{"start":{"line":172,"column":15},"end":{"line":193,"column":3}},"42":{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},"43":{"start":{"line":174,"column":6},"end":{"line":174,"column":56}},"44":{"start":{"line":177,"column":17},"end":{"line":177,"column":70}},"45":{"start":{"line":177,"column":10},"end":{"line":177,"column":70}},"46":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"47":{"start":{"line":179,"column":6},"end":{"line":179,"column":66}},"48":{"start":{"line":182,"column":10},"end":{"line":182,"column":63}},"49":{"start":{"line":183,"column":10},"end":{"line":183,"column":88}},"50":{"start":{"line":183,"column":69},"end":{"line":183,"column":86}},"51":{"start":{"line":184,"column":4},"end":{"line":186,"column":5}},"52":{"start":{"line":185,"column":6},"end":{"line":185,"column":66}},"53":{"start":{"line":188,"column":10},"end":{"line":188,"column":97}},"54":{"start":{"line":188,"column":62},"end":{"line":188,"column":95}},"55":{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},"56":{"start":{"line":190,"column":6},"end":{"line":190,"column":73}},"57":{"start":{"line":192,"column":4},"end":{"line":192,"column":59}},"58":{"start":{"line":192,"column":4},"end":{"line":192,"column":60}},"59":{"start":{"line":201,"column":15},"end":{"line":271,"column":3}},"60":{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},"61":{"start":{"line":207,"column":6},"end":{"line":207,"column":56}},"62":{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},"63":{"start":{"line":210,"column":6},"end":{"line":210,"column":62}},"64":{"start":{"line":213,"column":17},"end":{"line":213,"column":66}},"65":{"start":{"line":213,"column":10},"end":{"line":213,"column":66}},"66":{"start":{"line":214,"column":4},"end":{"line":216,"column":5}},"67":{"start":{"line":215,"column":6},"end":{"line":215,"column":68}},"68":{"start":{"line":218,"column":10},"end":{"line":218,"column":49}},"69":{"start":{"line":219,"column":10},"end":{"line":219,"column":71}},"70":{"start":{"line":219,"column":52},"end":{"line":219,"column":69}},"71":{"start":{"line":221,"column":4},"end":{"line":231,"column":5}},"72":{"start":{"line":230,"column":6},"end":{"line":230,"column":68}},"73":{"start":{"line":233,"column":10},"end":{"line":233,"column":37}},"74":{"start":{"line":234,"column":4},"end":{"line":236,"column":5}},"75":{"start":{"line":234,"column":53},"end":{"line":234,"column":66}},"76":{"start":{"line":235,"column":6},"end":{"line":235,"column":75}},"77":{"start":{"line":238,"column":21},"end":{"line":238,"column":66}},"78":{"start":{"line":238,"column":10},"end":{"line":238,"column":66}},"79":{"start":{"line":240,"column":4},"end":{"line":240,"column":86}},"80":{"start":{"line":240,"column":4},"end":{"line":240,"column":87}},"81":{"start":{"line":243,"column":8},"end":{"line":243,"column":44}},"82":{"start":{"line":244,"column":6},"end":{"line":244,"column":66}},"83":{"start":{"line":244,"column":6},"end":{"line":244,"column":67}},"84":{"start":{"line":248,"column":4},"end":{"line":248,"column":48}},"85":{"start":{"line":248,"column":4},"end":{"line":248,"column":49}},"86":{"start":{"line":250,"column":8},"end":{"line":250,"column":51}},"87":{"start":{"line":251,"column":12},"end":{"line":251,"column":60}},"88":{"start":{"line":252,"column":6},"end":{"line":254,"column":7}},"89":{"start":{"line":253,"column":8},"end":{"line":253,"column":56}},"90":{"start":{"line":256,"column":12},"end":{"line":263,"column":8}},"91":{"start":{"line":264,"column":6},"end":{"line":264,"column":61}},"92":{"start":{"line":264,"column":6},"end":{"line":264,"column":62}},"93":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"94":{"start":{"line":268,"column":6},"end":{"line":268,"column":52}},"95":{"start":{"line":270,"column":4},"end":{"line":270,"column":16}},"96":{"start":{"line":279,"column":15},"end":{"line":282,"column":3}},"97":{"start":{"line":280,"column":21},"end":{"line":280,"column":54}},"98":{"start":{"line":280,"column":10},"end":{"line":280,"column":54}},"99":{"start":{"line":281,"column":4},"end":{"line":281,"column":49}},"100":{"start":{"line":291,"column":15},"end":{"line":322,"column":3}},"101":{"start":{"line":296,"column":4},"end":{"line":296,"column":65}},"102":{"start":{"line":296,"column":4},"end":{"line":296,"column":66}},"103":{"start":{"line":298,"column":21},"end":{"line":298,"column":54}},"104":{"start":{"line":298,"column":10},"end":{"line":298,"column":54}},"105":{"start":{"line":299,"column":4},"end":{"line":299,"column":47}},"106":{"start":{"line":299,"column":4},"end":{"line":299,"column":48}},"107":{"start":{"line":301,"column":8},"end":{"line":301,"column":51}},"108":{"start":{"line":302,"column":19},"end":{"line":302,"column":53}},"109":{"start":{"line":302,"column":12},"end":{"line":302,"column":53}},"110":{"start":{"line":303,"column":6},"end":{"line":305,"column":7}},"111":{"start":{"line":304,"column":8},"end":{"line":304,"column":58}},"112":{"start":{"line":307,"column":12},"end":{"line":307,"column":60}},"113":{"start":{"line":308,"column":6},"end":{"line":310,"column":7}},"114":{"start":{"line":309,"column":8},"end":{"line":309,"column":56}},"115":{"start":{"line":312,"column":12},"end":{"line":319,"column":8}},"116":{"start":{"line":320,"column":6},"end":{"line":320,"column":61}},"117":{"start":{"line":320,"column":6},"end":{"line":320,"column":62}},"118":{"start":{"line":332,"column":15},"end":{"line":368,"column":3}},"119":{"start":{"line":333,"column":4},"end":{"line":335,"column":5}},"120":{"start":{"line":334,"column":6},"end":{"line":334,"column":56}},"121":{"start":{"line":337,"column":17},"end":{"line":337,"column":55}},"122":{"start":{"line":337,"column":10},"end":{"line":337,"column":55}},"123":{"start":{"line":338,"column":4},"end":{"line":344,"column":5}},"124":{"start":{"line":340,"column":6},"end":{"line":342,"column":7}},"125":{"start":{"line":341,"column":8},"end":{"line":341,"column":15}},"126":{"start":{"line":343,"column":6},"end":{"line":343,"column":56}},"127":{"start":{"line":347,"column":10},"end":{"line":350,"column":6}},"128":{"start":{"line":349,"column":30},"end":{"line":349,"column":89}},"129":{"start":{"line":351,"column":4},"end":{"line":353,"column":5}},"130":{"start":{"line":352,"column":6},"end":{"line":352,"column":13}},"131":{"start":{"line":355,"column":10},"end":{"line":355,"column":40}},"132":{"start":{"line":356,"column":4},"end":{"line":356,"column":68}},"133":{"start":{"line":356,"column":4},"end":{"line":356,"column":69}},"134":{"start":{"line":358,"column":10},"end":{"line":365,"column":6}},"135":{"start":{"line":367,"column":4},"end":{"line":367,"column":57}},"136":{"start":{"line":367,"column":4},"end":{"line":367,"column":58}},"137":{"start":{"line":377,"column":15},"end":{"line":403,"column":3}},"138":{"start":{"line":378,"column":4},"end":{"line":380,"column":5}},"139":{"start":{"line":379,"column":6},"end":{"line":379,"column":56}},"140":{"start":{"line":382,"column":17},"end":{"line":382,"column":55}},"141":{"start":{"line":382,"column":10},"end":{"line":382,"column":55}},"142":{"start":{"line":383,"column":4},"end":{"line":389,"column":5}},"143":{"start":{"line":385,"column":6},"end":{"line":387,"column":7}},"144":{"start":{"line":386,"column":8},"end":{"line":386,"column":15}},"145":{"start":{"line":388,"column":6},"end":{"line":388,"column":56}},"146":{"start":{"line":390,"column":10},"end":{"line":390,"column":40}},"147":{"start":{"line":391,"column":4},"end":{"line":391,"column":73}},"148":{"start":{"line":391,"column":4},"end":{"line":391,"column":74}},"149":{"start":{"line":393,"column":10},"end":{"line":400,"column":6}},"150":{"start":{"line":402,"column":4},"end":{"line":402,"column":57}},"151":{"start":{"line":402,"column":4},"end":{"line":402,"column":58}},"152":{"start":{"line":413,"column":15},"end":{"line":435,"column":3}},"153":{"start":{"line":414,"column":4},"end":{"line":416,"column":5}},"154":{"start":{"line":415,"column":6},"end":{"line":415,"column":56}},"155":{"start":{"line":418,"column":17},"end":{"line":418,"column":55}},"156":{"start":{"line":418,"column":10},"end":{"line":418,"column":55}},"157":{"start":{"line":419,"column":4},"end":{"line":421,"column":5}},"158":{"start":{"line":420,"column":6},"end":{"line":420,"column":56}},"159":{"start":{"line":422,"column":10},"end":{"line":422,"column":40}},"160":{"start":{"line":423,"column":4},"end":{"line":423,"column":74}},"161":{"start":{"line":423,"column":4},"end":{"line":423,"column":75}},"162":{"start":{"line":425,"column":10},"end":{"line":432,"column":6}},"163":{"start":{"line":434,"column":4},"end":{"line":434,"column":54}},"164":{"start":{"line":434,"column":4},"end":{"line":434,"column":55}},"165":{"start":{"line":442,"column":15},"end":{"line":480,"column":3}},"166":{"start":{"line":443,"column":4},"end":{"line":445,"column":5}},"167":{"start":{"line":444,"column":6},"end":{"line":444,"column":67}},"168":{"start":{"line":447,"column":8},"end":{"line":447,"column":21}},"169":{"start":{"line":447,"column":26},"end":{"line":447,"column":73}},"170":{"start":{"line":447,"column":25},"end":{"line":447,"column":74}},"171":{"start":{"line":447,"column":4},"end":{"line":449,"column":5}},"172":{"start":{"line":448,"column":6},"end":{"line":448,"column":65}},"173":{"start":{"line":451,"column":8},"end":{"line":451,"column":18}},"174":{"start":{"line":451,"column":23},"end":{"line":451,"column":64}},"175":{"start":{"line":451,"column":22},"end":{"line":451,"column":65}},"176":{"start":{"line":451,"column":4},"end":{"line":453,"column":5}},"177":{"start":{"line":452,"column":6},"end":{"line":452,"column":62}},"178":{"start":{"line":455,"column":8},"end":{"line":455,"column":21}},"179":{"start":{"line":456,"column":6},"end":{"line":458,"column":7}},"180":{"start":{"line":457,"column":8},"end":{"line":457,"column":61}},"181":{"start":{"line":459,"column":6},"end":{"line":459,"column":10}},"182":{"start":{"line":459,"column":22},"end":{"line":459,"column":69}},"183":{"start":{"line":459,"column":6},"end":{"line":459,"column":70}},"184":{"start":{"line":463,"column":11},"end":{"line":463,"column":39}},"185":{"start":{"line":464,"column":8},"end":{"line":464,"column":48}},"186":{"start":{"line":465,"column":8},"end":{"line":465,"column":53}},"187":{"start":{"line":463,"column":4},"end":{"line":465,"column":54}},"188":{"start":{"line":468,"column":21},"end":{"line":468,"column":51}},"189":{"start":{"line":468,"column":12},"end":{"line":468,"column":51}},"190":{"start":{"line":470,"column":6},"end":{"line":473,"column":9}},"191":{"start":{"line":471,"column":28},"end":{"line":471,"column":62}},"192":{"start":{"line":471,"column":14},"end":{"line":471,"column":71}},"193":{"start":{"line":472,"column":8},"end":{"line":472,"column":79}},"194":{"start":{"line":475,"column":6},"end":{"line":475,"column":20}},"195":{"start":{"line":477,"column":6},"end":{"line":477,"column":74}},"196":{"start":{"line":477,"column":6},"end":{"line":477,"column":75}},"197":{"start":{"line":478,"column":6},"end":{"line":478,"column":14}},"198":{"start":{"line":482,"column":9},"end":{"line":484,"column":3}},"199":{"start":{"line":483,"column":4},"end":{"line":483,"column":62}},"200":{"start":{"line":486,"column":16},"end":{"line":534,"column":3}},"201":{"start":{"line":490,"column":10},"end":{"line":492,"column":45}},"202":{"start":{"line":496,"column":8},"end":{"line":496,"column":10}},"203":{"start":{"line":498,"column":18},"end":{"line":498,"column":48}},"204":{"start":{"line":498,"column":6},"end":{"line":498,"column":49}},"205":{"start":{"line":499,"column":15},"end":{"line":499,"column":23}},"206":{"start":{"line":501,"column":18},"end":{"line":501,"column":60}},"207":{"start":{"line":501,"column":6},"end":{"line":501,"column":61}},"208":{"start":{"line":502,"column":15},"end":{"line":502,"column":20}},"209":{"start":{"line":504,"column":18},"end":{"line":504,"column":54}},"210":{"start":{"line":504,"column":6},"end":{"line":504,"column":55}},"211":{"start":{"line":508,"column":4},"end":{"line":514,"column":5}},"212":{"start":{"line":509,"column":6},"end":{"line":513,"column":8}},"213":{"start":{"line":516,"column":17},"end":{"line":516,"column":61}},"214":{"start":{"line":516,"column":10},"end":{"line":516,"column":61}},"215":{"start":{"line":517,"column":4},"end":{"line":519,"column":5}},"216":{"start":{"line":518,"column":6},"end":{"line":518,"column":57}},"217":{"start":{"line":521,"column":10},"end":{"line":521,"column":61}},"218":{"start":{"line":522,"column":10},"end":{"line":522,"column":87}},"219":{"start":{"line":523,"column":28},"end":{"line":523,"column":60}},"220":{"start":{"line":523,"column":10},"end":{"line":523,"column":60}},"221":{"start":{"line":525,"column":4},"end":{"line":531,"column":5}},"222":{"start":{"line":526,"column":6},"end":{"line":530,"column":8}},"223":{"start":{"line":533,"column":4},"end":{"line":533,"column":21}},"224":{"start":{"line":536,"column":16},"end":{"line":540,"column":3}},"225":{"start":{"line":537,"column":10},"end":{"line":537,"column":61}},"226":{"start":{"line":538,"column":10},"end":{"line":538,"column":97}},"227":{"start":{"line":539,"column":4},"end":{"line":539,"column":42}},"228":{"start":{"line":548,"column":10},"end":{"line":559,"column":3}},"229":{"start":{"line":548,"column":31},"end":{"line":548,"column":35}},"230":{"start":{"line":548,"column":37},"end":{"line":548,"column":45}},"231":{"start":{"line":548,"column":47},"end":{"line":548,"column":52}},"232":{"start":{"line":548,"column":54},"end":{"line":548,"column":56}},"233":{"start":{"line":549,"column":4},"end":{"line":557,"column":5}},"234":{"start":{"line":550,"column":6},"end":{"line":556,"column":7}},"235":{"start":{"line":551,"column":8},"end":{"line":551,"column":21}},"236":{"start":{"line":552,"column":8},"end":{"line":552,"column":24}},"237":{"start":{"line":554,"column":8},"end":{"line":554,"column":24}},"238":{"start":{"line":555,"column":8},"end":{"line":555,"column":21}},"239":{"start":{"line":558,"column":4},"end":{"line":558,"column":35}},"240":{"start":{"line":560,"column":0},"end":{"line":560,"column":1}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":71,"column":2},"end":{"line":71,"column":15}},"loc":{"start":{"line":71,"column":30},"end":{"line":73,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":74,"column":2},"end":{"line":74,"column":18}},"loc":{"start":{"line":74,"column":42},"end":{"line":76,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":77,"column":2},"end":{"line":77,"column":18}},"loc":{"start":{"line":77,"column":36},"end":{"line":81,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":85,"column":0},"end":{"line":null,"column":-1}},"loc":{"start":{"line":85,"column":0},"end":{"line":85,"column":-1}}},"4":{"name":"AccountsPassword","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":13}},"loc":{"start":{"line":92,"column":51},"end":{"line":95,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":97,"column":2},"end":{"line":97,"column":17}},"loc":{"start":{"line":97,"column":42},"end":{"line":100,"column":3}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":102,"column":2},"end":{"line":102,"column":27}},"loc":{"start":{"line":102,"column":53},"end":{"line":119,"column":3}}},"7":{"name":"(anonymous_9)","decl":{"start":{"line":126,"column":2},"end":{"line":126,"column":24}},"loc":{"start":{"line":126,"column":38},"end":{"line":128,"column":3}}},"8":{"name":"(anonymous_10)","decl":{"start":{"line":135,"column":2},"end":{"line":135,"column":27}},"loc":{"start":{"line":135,"column":44},"end":{"line":137,"column":3}}},"9":{"name":"(anonymous_11)","decl":{"start":{"line":149,"column":2},"end":{"line":149,"column":17}},"loc":{"start":{"line":149,"column":69},"end":{"line":154,"column":3}}},"10":{"name":"(anonymous_12)","decl":{"start":{"line":163,"column":2},"end":{"line":163,"column":20}},"loc":{"start":{"line":163,"column":50},"end":{"line":165,"column":3}}},"11":{"name":"(anonymous_13)","decl":{"start":{"line":172,"column":2},"end":{"line":172,"column":26}},"loc":{"start":{"line":172,"column":40},"end":{"line":193,"column":3}}},"12":{"name":"(anonymous_16)","decl":{"start":{"line":183,"column":49},"end":{"line":183,"column":49}},"loc":{"start":{"line":183,"column":64},"end":{"line":183,"column":86}}},"13":{"name":"(anonymous_17)","decl":{"start":{"line":188,"column":42},"end":{"line":188,"column":42}},"loc":{"start":{"line":188,"column":57},"end":{"line":188,"column":95}}},"14":{"name":"(anonymous_18)","decl":{"start":{"line":201,"column":2},"end":{"line":202,"column":3}},"loc":{"start":{"line":204,"column":33},"end":{"line":271,"column":3}}},"15":{"name":"(anonymous_21)","decl":{"start":{"line":219,"column":47},"end":{"line":219,"column":46}},"loc":{"start":{"line":219,"column":48},"end":{"line":219,"column":69}}},"16":{"name":"(anonymous_22)","decl":{"start":{"line":234,"column":29},"end":{"line":234,"column":29}},"loc":{"start":{"line":234,"column":48},"end":{"line":234,"column":66}}},"17":{"name":"(anonymous_23)","decl":{"start":{"line":279,"column":2},"end":{"line":279,"column":26}},"loc":{"start":{"line":279,"column":62},"end":{"line":282,"column":3}}},"18":{"name":"(anonymous_26)","decl":{"start":{"line":291,"column":2},"end":{"line":292,"column":3}},"loc":{"start":{"line":294,"column":23},"end":{"line":322,"column":3}}},"19":{"name":"(anonymous_29)","decl":{"start":{"line":332,"column":2},"end":{"line":332,"column":36}},"loc":{"start":{"line":332,"column":52},"end":{"line":368,"column":3}}},"20":{"name":"(anonymous_32)","decl":{"start":{"line":349,"column":6},"end":{"line":349,"column":6}},"loc":{"start":{"line":349,"column":25},"end":{"line":349,"column":89}}},"21":{"name":"(anonymous_33)","decl":{"start":{"line":377,"column":2},"end":{"line":377,"column":37}},"loc":{"start":{"line":377,"column":53},"end":{"line":403,"column":3}}},"22":{"name":"(anonymous_36)","decl":{"start":{"line":413,"column":2},"end":{"line":413,"column":34}},"loc":{"start":{"line":413,"column":50},"end":{"line":435,"column":3}}},"23":{"name":"(anonymous_39)","decl":{"start":{"line":442,"column":2},"end":{"line":442,"column":25}},"loc":{"start":{"line":442,"column":54},"end":{"line":480,"column":3}}},"24":{"name":"(anonymous_42)","decl":{"start":{"line":470,"column":12},"end":{"line":null,"column":-1}},"loc":{"start":{"line":470,"column":12},"end":{"line":473,"column":7}}},"25":{"name":"(anonymous_45)","decl":{"start":{"line":482,"column":2},"end":{"line":482,"column":23}},"loc":{"start":{"line":482,"column":68},"end":{"line":484,"column":3}}},"26":{"name":"(anonymous_46)","decl":{"start":{"line":486,"column":2},"end":{"line":487,"column":3}},"loc":{"start":{"line":488,"column":26},"end":{"line":534,"column":3}}},"27":{"name":"(anonymous_49)","decl":{"start":{"line":536,"column":2},"end":{"line":536,"column":37}},"loc":{"start":{"line":536,"column":60},"end":{"line":540,"column":3}}},"28":{"name":"(anonymous_52)","decl":{"start":{"line":548,"column":2},"end":{"line":548,"column":28}},"loc":{"start":{"line":548,"column":63},"end":{"line":559,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":72,"column":11},"end":{"line":72,"column":32}},"type":"binary-expr","locations":[{"start":{"line":72,"column":11},"end":{"line":72,"column":32}},{"start":{"line":72,"column":36},"end":{"line":72,"column":50}}]},"1":{"loc":{"start":{"line":79,"column":20},"end":{"line":79,"column":28}},"type":"binary-expr","locations":[{"start":{"line":79,"column":20},"end":{"line":79,"column":28}},{"start":{"line":79,"column":32},"end":{"line":79,"column":56}},{"start":{"line":79,"column":60},"end":{"line":79,"column":88}}]},"2":{"loc":{"start":{"line":92,"column":14},"end":{"line":92,"column":51}},"type":"if","locations":[{"start":{"line":92,"column":14},"end":{"line":92,"column":51}},{"start":{"line":92,"column":14},"end":{"line":92,"column":51}}]},"3":{"loc":{"start":{"line":104,"column":4},"end":{"line":106,"column":5}},"type":"if","locations":[{"start":{"line":104,"column":4},"end":{"line":106,"column":5}},{"start":{"line":104,"column":4},"end":{"line":106,"column":5}}]},"4":{"loc":{"start":{"line":104,"column":8},"end":{"line":104,"column":13}},"type":"binary-expr","locations":[{"start":{"line":104,"column":8},"end":{"line":104,"column":13}},{"start":{"line":104,"column":17},"end":{"line":104,"column":26}}]},"5":{"loc":{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},"type":"if","locations":[{"start":{"line":107,"column":4},"end":{"line":109,"column":5}},{"start":{"line":107,"column":4},"end":{"line":109,"column":5}}]},"6":{"loc":{"start":{"line":107,"column":9},"end":{"line":107,"column":24}},"type":"binary-expr","locations":[{"start":{"line":107,"column":9},"end":{"line":107,"column":24}},{"start":{"line":107,"column":28},"end":{"line":107,"column":48}},{"start":{"line":107,"column":53},"end":{"line":107,"column":72}}]},"7":{"loc":{"start":{"line":150,"column":4},"end":{"line":152,"column":5}},"type":"if","locations":[{"start":{"line":150,"column":4},"end":{"line":152,"column":5}},{"start":{"line":150,"column":4},"end":{"line":152,"column":5}}]},"8":{"loc":{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},"type":"if","locations":[{"start":{"line":173,"column":4},"end":{"line":175,"column":5}},{"start":{"line":173,"column":4},"end":{"line":175,"column":5}}]},"9":{"loc":{"start":{"line":173,"column":8},"end":{"line":173,"column":14}},"type":"binary-expr","locations":[{"start":{"line":173,"column":8},"end":{"line":173,"column":14}},{"start":{"line":173,"column":18},"end":{"line":173,"column":34}}]},"10":{"loc":{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},"type":"if","locations":[{"start":{"line":178,"column":4},"end":{"line":180,"column":5}},{"start":{"line":178,"column":4},"end":{"line":180,"column":5}}]},"11":{"loc":{"start":{"line":184,"column":4},"end":{"line":186,"column":5}},"type":"if","locations":[{"start":{"line":184,"column":4},"end":{"line":186,"column":5}},{"start":{"line":184,"column":4},"end":{"line":186,"column":5}}]},"12":{"loc":{"start":{"line":184,"column":8},"end":{"line":184,"column":20}},"type":"binary-expr","locations":[{"start":{"line":184,"column":8},"end":{"line":184,"column":20}},{"start":{"line":184,"column":24},"end":{"line":184,"column":97}}]},"13":{"loc":{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":191,"column":5}},{"start":{"line":189,"column":4},"end":{"line":191,"column":5}}]},"14":{"loc":{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},"type":"if","locations":[{"start":{"line":206,"column":4},"end":{"line":208,"column":5}},{"start":{"line":206,"column":4},"end":{"line":208,"column":5}}]},"15":{"loc":{"start":{"line":206,"column":8},"end":{"line":206,"column":14}},"type":"binary-expr","locations":[{"start":{"line":206,"column":8},"end":{"line":206,"column":14}},{"start":{"line":206,"column":18},"end":{"line":206,"column":34}}]},"16":{"loc":{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},"type":"if","locations":[{"start":{"line":209,"column":4},"end":{"line":211,"column":5}},{"start":{"line":209,"column":4},"end":{"line":211,"column":5}}]},"17":{"loc":{"start":{"line":209,"column":8},"end":{"line":209,"column":20}},"type":"binary-expr","locations":[{"start":{"line":209,"column":8},"end":{"line":209,"column":20}},{"start":{"line":209,"column":24},"end":{"line":209,"column":46}}]},"18":{"loc":{"start":{"line":214,"column":4},"end":{"line":216,"column":5}},"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":216,"column":5}},{"start":{"line":214,"column":4},"end":{"line":216,"column":5}}]},"19":{"loc":{"start":{"line":221,"column":4},"end":{"line":231,"column":5}},"type":"if","locations":[{"start":{"line":221,"column":4},"end":{"line":231,"column":5}},{"start":{"line":221,"column":4},"end":{"line":231,"column":5}}]},"20":{"loc":{"start":{"line":222,"column":6},"end":{"line":222,"column":23}},"type":"binary-expr","locations":[{"start":{"line":222,"column":6},"end":{"line":222,"column":23}},{"start":{"line":223,"column":6},"end":{"line":228,"column":7}}]},"21":{"loc":{"start":{"line":226,"column":12},"end":{"line":226,"column":54}},"type":"cond-expr","locations":[{"start":{"line":226,"column":12},"end":{"line":226,"column":54}},{"start":{"line":227,"column":12},"end":{"line":227,"column":53}}]},"22":{"loc":{"start":{"line":233,"column":19},"end":{"line":233,"column":30}},"type":"binary-expr","locations":[{"start":{"line":233,"column":19},"end":{"line":233,"column":30}},{"start":{"line":233,"column":34},"end":{"line":233,"column":36}}]},"23":{"loc":{"start":{"line":234,"column":4},"end":{"line":236,"column":5}},"type":"if","locations":[{"start":{"line":234,"column":4},"end":{"line":236,"column":5}},{"start":{"line":234,"column":4},"end":{"line":236,"column":5}}]},"24":{"loc":{"start":{"line":251,"column":22},"end":{"line":251,"column":33}},"type":"binary-expr","locations":[{"start":{"line":251,"column":22},"end":{"line":251,"column":33}},{"start":{"line":251,"column":37},"end":{"line":251,"column":59}}]},"25":{"loc":{"start":{"line":252,"column":6},"end":{"line":254,"column":7}},"type":"if","locations":[{"start":{"line":252,"column":6},"end":{"line":254,"column":7}},{"start":{"line":252,"column":6},"end":{"line":254,"column":7}}]},"26":{"loc":{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},"type":"if","locations":[{"start":{"line":267,"column":4},"end":{"line":269,"column":5}},{"start":{"line":267,"column":4},"end":{"line":269,"column":5}}]},"27":{"loc":{"start":{"line":303,"column":6},"end":{"line":305,"column":7}},"type":"if","locations":[{"start":{"line":303,"column":6},"end":{"line":305,"column":7}},{"start":{"line":303,"column":6},"end":{"line":305,"column":7}}]},"28":{"loc":{"start":{"line":307,"column":22},"end":{"line":307,"column":33}},"type":"binary-expr","locations":[{"start":{"line":307,"column":22},"end":{"line":307,"column":33}},{"start":{"line":307,"column":37},"end":{"line":307,"column":59}}]},"29":{"loc":{"start":{"line":308,"column":6},"end":{"line":310,"column":7}},"type":"if","locations":[{"start":{"line":308,"column":6},"end":{"line":310,"column":7}},{"start":{"line":308,"column":6},"end":{"line":310,"column":7}}]},"30":{"loc":{"start":{"line":333,"column":4},"end":{"line":335,"column":5}},"type":"if","locations":[{"start":{"line":333,"column":4},"end":{"line":335,"column":5}},{"start":{"line":333,"column":4},"end":{"line":335,"column":5}}]},"31":{"loc":{"start":{"line":333,"column":8},"end":{"line":333,"column":16}},"type":"binary-expr","locations":[{"start":{"line":333,"column":8},"end":{"line":333,"column":16}},{"start":{"line":333,"column":20},"end":{"line":333,"column":38}}]},"32":{"loc":{"start":{"line":338,"column":4},"end":{"line":344,"column":5}},"type":"if","locations":[{"start":{"line":338,"column":4},"end":{"line":344,"column":5}},{"start":{"line":338,"column":4},"end":{"line":344,"column":5}}]},"33":{"loc":{"start":{"line":340,"column":6},"end":{"line":342,"column":7}},"type":"if","locations":[{"start":{"line":340,"column":6},"end":{"line":342,"column":7}},{"start":{"line":340,"column":6},"end":{"line":342,"column":7}}]},"34":{"loc":{"start":{"line":351,"column":4},"end":{"line":353,"column":5}},"type":"if","locations":[{"start":{"line":351,"column":4},"end":{"line":353,"column":5}},{"start":{"line":351,"column":4},"end":{"line":353,"column":5}}]},"35":{"loc":{"start":{"line":351,"column":8},"end":{"line":351,"column":20}},"type":"binary-expr","locations":[{"start":{"line":351,"column":8},"end":{"line":351,"column":20}},{"start":{"line":351,"column":24},"end":{"line":351,"column":44}}]},"36":{"loc":{"start":{"line":378,"column":4},"end":{"line":380,"column":5}},"type":"if","locations":[{"start":{"line":378,"column":4},"end":{"line":380,"column":5}},{"start":{"line":378,"column":4},"end":{"line":380,"column":5}}]},"37":{"loc":{"start":{"line":378,"column":8},"end":{"line":378,"column":16}},"type":"binary-expr","locations":[{"start":{"line":378,"column":8},"end":{"line":378,"column":16}},{"start":{"line":378,"column":20},"end":{"line":378,"column":38}}]},"38":{"loc":{"start":{"line":383,"column":4},"end":{"line":389,"column":5}},"type":"if","locations":[{"start":{"line":383,"column":4},"end":{"line":389,"column":5}},{"start":{"line":383,"column":4},"end":{"line":389,"column":5}}]},"39":{"loc":{"start":{"line":385,"column":6},"end":{"line":387,"column":7}},"type":"if","locations":[{"start":{"line":385,"column":6},"end":{"line":387,"column":7}},{"start":{"line":385,"column":6},"end":{"line":387,"column":7}}]},"40":{"loc":{"start":{"line":414,"column":4},"end":{"line":416,"column":5}},"type":"if","locations":[{"start":{"line":414,"column":4},"end":{"line":416,"column":5}},{"start":{"line":414,"column":4},"end":{"line":416,"column":5}}]},"41":{"loc":{"start":{"line":414,"column":8},"end":{"line":414,"column":16}},"type":"binary-expr","locations":[{"start":{"line":414,"column":8},"end":{"line":414,"column":16}},{"start":{"line":414,"column":20},"end":{"line":414,"column":38}}]},"42":{"loc":{"start":{"line":419,"column":4},"end":{"line":421,"column":5}},"type":"if","locations":[{"start":{"line":419,"column":4},"end":{"line":421,"column":5}},{"start":{"line":419,"column":4},"end":{"line":421,"column":5}}]},"43":{"loc":{"start":{"line":443,"column":4},"end":{"line":445,"column":5}},"type":"if","locations":[{"start":{"line":443,"column":4},"end":{"line":445,"column":5}},{"start":{"line":443,"column":4},"end":{"line":445,"column":5}}]},"44":{"loc":{"start":{"line":443,"column":8},"end":{"line":443,"column":53}},"type":"binary-expr","locations":[{"start":{"line":443,"column":8},"end":{"line":443,"column":53}},{"start":{"line":443,"column":57},"end":{"line":443,"column":96}}]},"45":{"loc":{"start":{"line":447,"column":4},"end":{"line":449,"column":5}},"type":"if","locations":[{"start":{"line":447,"column":4},"end":{"line":449,"column":5}},{"start":{"line":447,"column":4},"end":{"line":449,"column":5}}]},"46":{"loc":{"start":{"line":451,"column":4},"end":{"line":453,"column":5}},"type":"if","locations":[{"start":{"line":451,"column":4},"end":{"line":453,"column":5}},{"start":{"line":451,"column":4},"end":{"line":453,"column":5}}]},"47":{"loc":{"start":{"line":456,"column":6},"end":{"line":458,"column":7}},"type":"if","locations":[{"start":{"line":456,"column":6},"end":{"line":458,"column":7}},{"start":{"line":456,"column":6},"end":{"line":458,"column":7}}]},"48":{"loc":{"start":{"line":491,"column":8},"end":{"line":491,"column":41}},"type":"cond-expr","locations":[{"start":{"line":491,"column":8},"end":{"line":491,"column":41}},{"start":{"line":492,"column":8},"end":{"line":492,"column":44}}]},"49":{"loc":{"start":{"line":508,"column":4},"end":{"line":514,"column":5}},"type":"if","locations":[{"start":{"line":508,"column":4},"end":{"line":514,"column":5}},{"start":{"line":508,"column":4},"end":{"line":514,"column":5}}]},"50":{"loc":{"start":{"line":511,"column":12},"end":{"line":511,"column":50}},"type":"cond-expr","locations":[{"start":{"line":511,"column":12},"end":{"line":511,"column":50}},{"start":{"line":512,"column":12},"end":{"line":512,"column":44}}]},"51":{"loc":{"start":{"line":517,"column":4},"end":{"line":519,"column":5}},"type":"if","locations":[{"start":{"line":517,"column":4},"end":{"line":519,"column":5}},{"start":{"line":517,"column":4},"end":{"line":519,"column":5}}]},"52":{"loc":{"start":{"line":522,"column":38},"end":{"line":522,"column":75}},"type":"cond-expr","locations":[{"start":{"line":522,"column":38},"end":{"line":522,"column":75}},{"start":{"line":522,"column":78},"end":{"line":522,"column":86}}]},"53":{"loc":{"start":{"line":525,"column":4},"end":{"line":531,"column":5}},"type":"if","locations":[{"start":{"line":525,"column":4},"end":{"line":531,"column":5}},{"start":{"line":525,"column":4},"end":{"line":531,"column":5}}]},"54":{"loc":{"start":{"line":528,"column":12},"end":{"line":528,"column":50}},"type":"cond-expr","locations":[{"start":{"line":528,"column":12},"end":{"line":528,"column":50}},{"start":{"line":529,"column":12},"end":{"line":529,"column":49}}]},"55":{"loc":{"start":{"line":538,"column":48},"end":{"line":538,"column":85}},"type":"cond-expr","locations":[{"start":{"line":538,"column":48},"end":{"line":538,"column":85}},{"start":{"line":538,"column":88},"end":{"line":538,"column":96}}]},"56":{"loc":{"start":{"line":549,"column":4},"end":{"line":557,"column":5}},"type":"if","locations":[{"start":{"line":549,"column":4},"end":{"line":557,"column":5}},{"start":{"line":549,"column":4},"end":{"line":557,"column":5}}]},"57":{"loc":{"start":{"line":549,"column":8},"end":{"line":549,"column":12}},"type":"binary-expr","locations":[{"start":{"line":549,"column":8},"end":{"line":549,"column":12}},{"start":{"line":549,"column":16},"end":{"line":549,"column":25}},{"start":{"line":549,"column":29},"end":{"line":549,"column":35}}]},"58":{"loc":{"start":{"line":550,"column":6},"end":{"line":556,"column":7}},"type":"if","locations":[{"start":{"line":550,"column":6},"end":{"line":556,"column":7}},{"start":{"line":550,"column":6},"end":{"line":556,"column":7}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":7,"7":3,"8":6,"9":6,"10":6,"11":2,"12":4,"13":4,"14":4,"15":4,"16":2,"17":32,"18":32,"19":2,"20":6,"21":6,"22":1,"23":5,"24":1,"25":4,"26":4,"27":1,"28":0,"29":0,"30":1,"31":2,"32":1,"33":2,"34":1,"35":2,"36":2,"37":1,"38":1,"39":2,"40":1,"41":2,"42":5,"43":1,"44":4,"45":4,"46":4,"47":1,"48":3,"49":3,"50":2,"51":3,"52":1,"53":2,"54":1,"55":2,"56":1,"57":1,"58":1,"59":2,"60":8,"61":1,"62":7,"63":1,"64":6,"65":6,"66":6,"67":1,"68":5,"69":5,"70":5,"71":5,"72":1,"73":4,"74":4,"75":3,"76":1,"77":3,"78":3,"79":3,"80":3,"81":2,"82":1,"83":1,"84":3,"85":3,"86":0,"87":3,"88":3,"89":0,"90":3,"91":3,"92":3,"93":3,"94":1,"95":2,"96":2,"97":1,"98":1,"99":1,"100":2,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":0,"108":1,"109":1,"110":1,"111":0,"112":1,"113":1,"114":0,"115":1,"116":1,"117":1,"118":2,"119":5,"120":1,"121":4,"122":4,"123":4,"124":1,"125":0,"126":1,"127":3,"128":4,"129":3,"130":1,"131":2,"132":2,"133":2,"134":2,"135":2,"136":2,"137":2,"138":3,"139":1,"140":2,"141":2,"142":2,"143":1,"144":0,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"152":2,"153":3,"154":1,"155":2,"156":2,"157":2,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":2,"166":6,"167":1,"168":9,"169":1,"170":1,"171":5,"172":1,"173":4,"174":4,"175":4,"176":4,"177":1,"178":0,"179":3,"180":0,"181":3,"182":3,"183":3,"184":2,"185":2,"186":2,"187":3,"188":3,"189":3,"190":3,"191":2,"192":2,"193":2,"194":3,"195":0,"196":0,"197":0,"198":2,"199":3,"200":2,"201":3,"202":3,"203":0,"204":0,"205":3,"206":0,"207":0,"208":0,"209":3,"210":3,"211":3,"212":1,"213":2,"214":2,"215":2,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":0,"224":2,"225":6,"226":6,"227":6,"228":2,"229":3,"230":3,"231":3,"232":3,"233":3,"234":3,"235":3,"236":3,"237":0,"238":0,"239":3,"240":2},"f":{"0":7,"1":3,"2":6,"3":2,"4":4,"5":32,"6":6,"7":1,"8":1,"9":2,"10":1,"11":5,"12":2,"13":1,"14":8,"15":5,"16":3,"17":1,"18":1,"19":5,"20":4,"21":3,"22":3,"23":6,"24":2,"25":3,"26":3,"27":6,"28":3},"b":{"0":[7,6],"1":[6,1,1],"2":[0,4],"3":[1,5],"4":[6,5],"5":[1,4],"6":[5,0,5],"7":[1,1],"8":[1,4],"9":[5,4],"10":[1,3],"11":[1,2],"12":[3,2],"13":[1,1],"14":[1,7],"15":[8,7],"16":[1,6],"17":[7,6],"18":[1,5],"19":[1,4],"20":[5,5],"21":[1,4],"22":[4,0],"23":[1,3],"24":[3,3],"25":[0,3],"26":[1,2],"27":[0,1],"28":[1,1],"29":[0,1],"30":[1,4],"31":[5,4],"32":[1,3],"33":[0,1],"34":[1,2],"35":[3,3],"36":[1,2],"37":[3,2],"38":[1,1],"39":[0,1],"40":[1,2],"41":[3,2],"42":[1,1],"43":[1,5],"44":[6,5],"45":[1,4],"46":[1,3],"47":[0,3],"48":[3,0],"49":[1,2],"50":[0,1],"51":[1,1],"52":[0,1],"53":[1,0],"54":[0,1],"55":[0,6],"56":[3,0],"57":[3,3,3],"58":[3,0]}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/errors.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/errors.ts","statementMap":{"0":{"start":{"line":3,"column":13},"end":{"line":22,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/index.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},"1":{"start":{"line":5,"column":9},"end":{"line":5,"column":25}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":32}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/encryption.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/encryption.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":23,"column":-1}},"1":{"start":{"line":1,"column":0},"end":{"line":1,"column":34}},"2":{"start":{"line":2,"column":0},"end":{"line":2,"column":32}},"3":{"start":{"line":5,"column":13},"end":{"line":9,"column":2}},"4":{"start":{"line":6,"column":15},"end":{"line":6,"column":39}},"5":{"start":{"line":6,"column":8},"end":{"line":6,"column":39}},"6":{"start":{"line":7,"column":15},"end":{"line":7,"column":48}},"7":{"start":{"line":7,"column":8},"end":{"line":7,"column":48}},"8":{"start":{"line":8,"column":2},"end":{"line":8,"column":14}},"9":{"start":{"line":11,"column":13},"end":{"line":19,"column":2}},"10":{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},"11":{"start":{"line":13,"column":17},"end":{"line":13,"column":45}},"12":{"start":{"line":14,"column":4},"end":{"line":14,"column":26}},"13":{"start":{"line":15,"column":4},"end":{"line":15,"column":30}},"14":{"start":{"line":18,"column":2},"end":{"line":18,"column":25}},"15":{"start":{"line":21,"column":13},"end":{"line":22,"column":33}},"16":{"start":{"line":22,"column":2},"end":{"line":22,"column":32}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":5,"column":30},"end":{"line":5,"column":36}},"loc":{"start":{"line":5,"column":53},"end":{"line":9,"column":1}}},"1":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":28},"end":{"line":11,"column":28}},"loc":{"start":{"line":11,"column":70},"end":{"line":19,"column":1}}},"2":{"name":"(anonymous_4)","decl":{"start":{"line":21,"column":30},"end":{"line":21,"column":36}},"loc":{"start":{"line":21,"column":67},"end":{"line":22,"column":32}}}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":16,"column":3}},{"start":{"line":12,"column":2},"end":{"line":16,"column":3}}]}},"s":{"0":3,"1":3,"2":3,"3":3,"4":10,"5":10,"6":10,"7":10,"8":10,"9":3,"10":2,"11":1,"12":1,"13":1,"14":1,"15":3,"16":2},"f":{"0":10,"1":2,"2":2},"b":{"0":[1,1]}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/index.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":70}},"1":{"start":{"line":1,"column":9},"end":{"line":1,"column":27}},"2":{"start":{"line":1,"column":29},"end":{"line":1,"column":54}},"3":{"start":{"line":2,"column":0},"end":{"line":2,"column":75}},"4":{"start":{"line":2,"column":9},"end":{"line":2,"column":21}},"5":{"start":{"line":2,"column":23},"end":{"line":2,"column":37}},"6":{"start":{"line":2,"column":39},"end":{"line":2,"column":53}},"7":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"8":{"start":{"line":3,"column":9},"end":{"line":3,"column":16}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/is-email.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/is-email.ts","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":4,"column":2}},"1":{"start":{"line":2,"column":13},"end":{"line":2,"column":168}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":23},"end":{"line":1,"column":23}},"loc":{"start":{"line":1,"column":38},"end":{"line":4,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":17},"end":{"line":3,"column":22}},"type":"binary-expr","locations":[{"start":{"line":3,"column":17},"end":{"line":3,"column":22}},{"start":{"line":3,"column":26},"end":{"line":3,"column":40}}]}},"s":{"0":2,"1":9,"2":9},"f":{"0":9},"b":{"0":[9,9]}} | ||
,"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/user.ts": {"path":"/Users/leo/dev/accounts-js/accounts/packages/password/src/utils/user.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},"1":{"start":{"line":4,"column":13},"end":{"line":6,"column":2}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":58}},"3":{"start":{"line":8,"column":13},"end":{"line":10,"column":2}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":68}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":34},"end":{"line":4,"column":34}},"loc":{"start":{"line":4,"column":45},"end":{"line":6,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":41},"end":{"line":8,"column":41}},"loc":{"start":{"line":8,"column":52},"end":{"line":10,"column":1}}}},"branchMap":{},"s":{"0":2,"1":2,"2":5,"3":2,"4":3},"f":{"0":5,"1":3},"b":{}} | ||
{"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/accounts-password.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/accounts-password.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":93}},"1":{"start":{"line":13,"column":0},"end":{"line":13,"column":100}},"2":{"start":{"line":14,"column":0},"end":{"line":14,"column":84}},"3":{"start":{"line":15,"column":0},"end":{"line":15,"column":null}},"4":{"start":{"line":24,"column":0},"end":{"line":24,"column":34}},"5":{"start":{"line":88,"column":4},"end":{"line":88,"column":51}},"6":{"start":{"line":91,"column":4},"end":{"line":91,"column":30}},"7":{"start":{"line":94,"column":26},"end":{"line":94,"column":50}},"8":{"start":{"line":95,"column":20},"end":{"line":95,"column":88}},"9":{"start":{"line":96,"column":4},"end":{"line":96,"column":28}},"10":{"start":{"line":101,"column":0},"end":{"line":101,"column":null}},"11":{"start":{"line":108,"column":14},"end":{"line":108,"column":null}},"12":{"start":{"line":102,"column":9},"end":{"line":102,"column":34}},"13":{"start":{"line":109,"column":4},"end":{"line":109,"column":53}},"14":{"start":{"line":110,"column":4},"end":{"line":110,"column":54}},"15":{"start":{"line":113,"column":9},"end":{"line":116,"column":null}},"16":{"start":{"line":114,"column":4},"end":{"line":114,"column":20}},"17":{"start":{"line":115,"column":4},"end":{"line":115,"column":35}},"18":{"start":{"line":118,"column":15},"end":{"line":135,"column":null}},"19":{"start":{"line":119,"column":12},"end":{"line":119,"column":37}},"20":{"start":{"line":121,"column":6},"end":{"line":121,"column":71}},"21":{"start":{"line":124,"column":6},"end":{"line":124,"column":55}},"22":{"start":{"line":127,"column":22},"end":{"line":127,"column":null}},"23":{"start":{"line":127,"column":10},"end":{"line":127,"column":null}},"24":{"start":{"line":130,"column":8},"end":{"line":130,"column":31}},"25":{"start":{"line":131,"column":6},"end":{"line":131,"column":58}},"26":{"start":{"line":134,"column":4},"end":{"line":134,"column":21}},"27":{"start":{"line":142,"column":9},"end":{"line":144,"column":null}},"28":{"start":{"line":143,"column":4},"end":{"line":143,"column":42}},"29":{"start":{"line":151,"column":9},"end":{"line":153,"column":null}},"30":{"start":{"line":152,"column":4},"end":{"line":152,"column":48}},"31":{"start":{"line":165,"column":9},"end":{"line":170,"column":null}},"32":{"start":{"line":167,"column":6},"end":{"line":167,"column":56}},"33":{"start":{"line":169,"column":4},"end":{"line":169,"column":56}},"34":{"start":{"line":179,"column":9},"end":{"line":181,"column":null}},"35":{"start":{"line":180,"column":4},"end":{"line":180,"column":46}},"36":{"start":{"line":188,"column":15},"end":{"line":209,"column":null}},"37":{"start":{"line":190,"column":6},"end":{"line":190,"column":56}},"38":{"start":{"line":193,"column":17},"end":{"line":193,"column":null}},"39":{"start":{"line":193,"column":10},"end":{"line":193,"column":null}},"40":{"start":{"line":195,"column":6},"end":{"line":195,"column":66}},"41":{"start":{"line":198,"column":10},"end":{"line":198,"column":63}},"42":{"start":{"line":199,"column":10},"end":{"line":199,"column":88}},"43":{"start":{"line":199,"column":69},"end":{"line":199,"column":87}},"44":{"start":{"line":201,"column":6},"end":{"line":201,"column":66}},"45":{"start":{"line":204,"column":10},"end":{"line":204,"column":97}},"46":{"start":{"line":204,"column":62},"end":{"line":204,"column":96}},"47":{"start":{"line":206,"column":6},"end":{"line":206,"column":73}},"48":{"start":{"line":208,"column":4},"end":{"line":208,"column":60}},"49":{"start":{"line":217,"column":15},"end":{"line":287,"column":null}},"50":{"start":{"line":223,"column":6},"end":{"line":223,"column":56}},"51":{"start":{"line":226,"column":6},"end":{"line":226,"column":62}},"52":{"start":{"line":229,"column":17},"end":{"line":229,"column":null}},"53":{"start":{"line":229,"column":10},"end":{"line":229,"column":null}},"54":{"start":{"line":231,"column":6},"end":{"line":231,"column":68}},"55":{"start":{"line":234,"column":10},"end":{"line":234,"column":49}},"56":{"start":{"line":235,"column":10},"end":{"line":235,"column":71}},"57":{"start":{"line":235,"column":52},"end":{"line":235,"column":70}},"58":{"start":{"line":246,"column":6},"end":{"line":246,"column":68}},"59":{"start":{"line":249,"column":10},"end":{"line":249,"column":37}},"60":{"start":{"line":250,"column":53},"end":{"line":250,"column":67}},"61":{"start":{"line":251,"column":6},"end":{"line":251,"column":75}},"62":{"start":{"line":254,"column":21},"end":{"line":254,"column":null}},"63":{"start":{"line":254,"column":10},"end":{"line":254,"column":null}},"64":{"start":{"line":256,"column":4},"end":{"line":256,"column":87}},"65":{"start":{"line":259,"column":8},"end":{"line":259,"column":24}},"66":{"start":{"line":260,"column":6},"end":{"line":260,"column":67}},"67":{"start":{"line":264,"column":4},"end":{"line":264,"column":49}},"68":{"start":{"line":266,"column":8},"end":{"line":266,"column":12}},"69":{"start":{"line":267,"column":12},"end":{"line":267,"column":60}},"70":{"start":{"line":269,"column":8},"end":{"line":269,"column":56}},"71":{"start":{"line":272,"column":12},"end":{"line":279,"column":8}},"72":{"start":{"line":280,"column":6},"end":{"line":280,"column":62}},"73":{"start":{"line":284,"column":6},"end":{"line":284,"column":52}},"74":{"start":{"line":286,"column":4},"end":{"line":286,"column":16}},"75":{"start":{"line":295,"column":15},"end":{"line":298,"column":null}},"76":{"start":{"line":296,"column":21},"end":{"line":296,"column":null}},"77":{"start":{"line":296,"column":10},"end":{"line":296,"column":null}},"78":{"start":{"line":297,"column":4},"end":{"line":297,"column":49}},"79":{"start":{"line":307,"column":15},"end":{"line":338,"column":null}},"80":{"start":{"line":312,"column":4},"end":{"line":312,"column":66}},"81":{"start":{"line":314,"column":21},"end":{"line":314,"column":null}},"82":{"start":{"line":314,"column":10},"end":{"line":314,"column":null}},"83":{"start":{"line":315,"column":4},"end":{"line":315,"column":48}},"84":{"start":{"line":317,"column":8},"end":{"line":317,"column":12}},"85":{"start":{"line":318,"column":19},"end":{"line":318,"column":null}},"86":{"start":{"line":318,"column":12},"end":{"line":318,"column":null}},"87":{"start":{"line":320,"column":8},"end":{"line":320,"column":58}},"88":{"start":{"line":323,"column":12},"end":{"line":323,"column":60}},"89":{"start":{"line":325,"column":8},"end":{"line":325,"column":56}},"90":{"start":{"line":328,"column":12},"end":{"line":335,"column":8}},"91":{"start":{"line":336,"column":6},"end":{"line":336,"column":62}},"92":{"start":{"line":348,"column":15},"end":{"line":384,"column":null}},"93":{"start":{"line":350,"column":6},"end":{"line":350,"column":56}},"94":{"start":{"line":353,"column":17},"end":{"line":353,"column":null}},"95":{"start":{"line":353,"column":10},"end":{"line":353,"column":null}},"96":{"start":{"line":357,"column":8},"end":{"line":357,"column":15}},"97":{"start":{"line":359,"column":6},"end":{"line":359,"column":56}},"98":{"start":{"line":363,"column":10},"end":{"line":366,"column":6}},"99":{"start":{"line":365,"column":30},"end":{"line":365,"column":null}},"100":{"start":{"line":368,"column":6},"end":{"line":368,"column":13}},"101":{"start":{"line":371,"column":10},"end":{"line":371,"column":40}},"102":{"start":{"line":372,"column":4},"end":{"line":372,"column":69}},"103":{"start":{"line":374,"column":10},"end":{"line":381,"column":6}},"104":{"start":{"line":383,"column":4},"end":{"line":383,"column":58}},"105":{"start":{"line":393,"column":15},"end":{"line":419,"column":null}},"106":{"start":{"line":395,"column":6},"end":{"line":395,"column":56}},"107":{"start":{"line":398,"column":17},"end":{"line":398,"column":null}},"108":{"start":{"line":398,"column":10},"end":{"line":398,"column":null}},"109":{"start":{"line":402,"column":8},"end":{"line":402,"column":15}},"110":{"start":{"line":404,"column":6},"end":{"line":404,"column":56}},"111":{"start":{"line":406,"column":10},"end":{"line":406,"column":40}},"112":{"start":{"line":407,"column":4},"end":{"line":407,"column":74}},"113":{"start":{"line":409,"column":10},"end":{"line":416,"column":6}},"114":{"start":{"line":418,"column":4},"end":{"line":418,"column":58}},"115":{"start":{"line":429,"column":15},"end":{"line":451,"column":null}},"116":{"start":{"line":431,"column":6},"end":{"line":431,"column":56}},"117":{"start":{"line":434,"column":17},"end":{"line":434,"column":null}},"118":{"start":{"line":434,"column":10},"end":{"line":434,"column":null}},"119":{"start":{"line":436,"column":6},"end":{"line":436,"column":56}},"120":{"start":{"line":438,"column":10},"end":{"line":438,"column":40}},"121":{"start":{"line":439,"column":4},"end":{"line":439,"column":75}},"122":{"start":{"line":441,"column":10},"end":{"line":448,"column":6}},"123":{"start":{"line":450,"column":4},"end":{"line":450,"column":55}},"124":{"start":{"line":458,"column":15},"end":{"line":496,"column":null}},"125":{"start":{"line":460,"column":6},"end":{"line":460,"column":67}},"126":{"start":{"line":463,"column":8},"end":{"line":463,"column":25}},"127":{"start":{"line":463,"column":8},"end":{"line":463,"column":12}},"128":{"start":{"line":463,"column":26},"end":{"line":463,"column":74}},"129":{"start":{"line":463,"column":25},"end":{"line":463,"column":76}},"130":{"start":{"line":464,"column":6},"end":{"line":464,"column":65}},"131":{"start":{"line":467,"column":8},"end":{"line":467,"column":22}},"132":{"start":{"line":467,"column":8},"end":{"line":467,"column":12}},"133":{"start":{"line":467,"column":23},"end":{"line":467,"column":65}},"134":{"start":{"line":467,"column":22},"end":{"line":467,"column":67}},"135":{"start":{"line":468,"column":6},"end":{"line":468,"column":62}},"136":{"start":{"line":471,"column":8},"end":{"line":471,"column":12}},"137":{"start":{"line":473,"column":8},"end":{"line":473,"column":61}},"138":{"start":{"line":475,"column":6},"end":{"line":475,"column":11}},"139":{"start":{"line":475,"column":22},"end":{"line":475,"column":70}},"140":{"start":{"line":475,"column":6},"end":{"line":475,"column":70}},"141":{"start":{"line":479,"column":11},"end":{"line":479,"column":15}},"142":{"start":{"line":480,"column":8},"end":{"line":480,"column":null}},"143":{"start":{"line":481,"column":8},"end":{"line":481,"column":54}},"144":{"start":{"line":479,"column":4},"end":{"line":481,"column":54}},"145":{"start":{"line":484,"column":21},"end":{"line":484,"column":null}},"146":{"start":{"line":484,"column":12},"end":{"line":484,"column":null}},"147":{"start":{"line":486,"column":6},"end":{"line":489,"column":9}},"148":{"start":{"line":487,"column":28},"end":{"line":487,"column":71}},"149":{"start":{"line":487,"column":14},"end":{"line":487,"column":null}},"150":{"start":{"line":488,"column":8},"end":{"line":488,"column":79}},"151":{"start":{"line":491,"column":6},"end":{"line":491,"column":20}},"152":{"start":{"line":493,"column":6},"end":{"line":493,"column":75}},"153":{"start":{"line":494,"column":6},"end":{"line":494,"column":14}},"154":{"start":{"line":498,"column":9},"end":{"line":500,"column":null}},"155":{"start":{"line":499,"column":4},"end":{"line":499,"column":62}},"156":{"start":{"line":502,"column":16},"end":{"line":549,"column":null}},"157":{"start":{"line":506,"column":10},"end":{"line":506,"column":36}},"158":{"start":{"line":510,"column":8},"end":{"line":510,"column":38}},"159":{"start":{"line":512,"column":8},"end":{"line":512,"column":10}},"160":{"start":{"line":514,"column":18},"end":{"line":514,"column":49}},"161":{"start":{"line":514,"column":6},"end":{"line":514,"column":49}},"162":{"start":{"line":515,"column":15},"end":{"line":515,"column":23}},"163":{"start":{"line":517,"column":18},"end":{"line":517,"column":61}},"164":{"start":{"line":517,"column":6},"end":{"line":517,"column":61}},"165":{"start":{"line":518,"column":15},"end":{"line":518,"column":20}},"166":{"start":{"line":520,"column":18},"end":{"line":520,"column":55}},"167":{"start":{"line":520,"column":6},"end":{"line":520,"column":55}},"168":{"start":{"line":524,"column":6},"end":{"line":528,"column":8}},"169":{"start":{"line":531,"column":17},"end":{"line":531,"column":null}},"170":{"start":{"line":531,"column":10},"end":{"line":531,"column":null}},"171":{"start":{"line":533,"column":6},"end":{"line":533,"column":57}},"172":{"start":{"line":536,"column":10},"end":{"line":536,"column":61}},"173":{"start":{"line":537,"column":10},"end":{"line":537,"column":87}},"174":{"start":{"line":538,"column":28},"end":{"line":538,"column":null}},"175":{"start":{"line":538,"column":10},"end":{"line":538,"column":null}},"176":{"start":{"line":541,"column":6},"end":{"line":545,"column":8}},"177":{"start":{"line":548,"column":4},"end":{"line":548,"column":21}},"178":{"start":{"line":551,"column":16},"end":{"line":555,"column":null}},"179":{"start":{"line":552,"column":10},"end":{"line":552,"column":61}},"180":{"start":{"line":553,"column":10},"end":{"line":553,"column":97}},"181":{"start":{"line":554,"column":4},"end":{"line":554,"column":42}},"182":{"start":{"line":563,"column":10},"end":{"line":574,"column":null}},"183":{"start":{"line":563,"column":31},"end":{"line":563,"column":35}},"184":{"start":{"line":563,"column":37},"end":{"line":563,"column":45}},"185":{"start":{"line":563,"column":47},"end":{"line":563,"column":52}},"186":{"start":{"line":563,"column":54},"end":{"line":563,"column":56}},"187":{"start":{"line":566,"column":8},"end":{"line":566,"column":21}},"188":{"start":{"line":567,"column":8},"end":{"line":567,"column":24}},"189":{"start":{"line":569,"column":8},"end":{"line":569,"column":24}},"190":{"start":{"line":570,"column":8},"end":{"line":570,"column":21}},"191":{"start":{"line":573,"column":4},"end":{"line":573,"column":35}},"192":{"start":{"line":575,"column":0},"end":{"line":575,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":87,"column":2},"end":{"line":87,"column":15}},"loc":{"start":{"line":87,"column":30},"end":{"line":89,"column":3}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":90,"column":2},"end":{"line":90,"column":18}},"loc":{"start":{"line":90,"column":42},"end":{"line":92,"column":3}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":93,"column":2},"end":{"line":93,"column":18}},"loc":{"start":{"line":93,"column":36},"end":{"line":97,"column":3}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":101,"column":0},"end":{"line":101,"column":null}},"loc":{"start":{"line":101,"column":0},"end":{"line":575,"column":null}}},"4":{"name":"AccountsPassword","decl":{"start":{"line":108,"column":2},"end":{"line":108,"column":14}},"loc":{"start":{"line":108,"column":51},"end":{"line":111,"column":3}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":113,"column":2},"end":{"line":113,"column":9}},"loc":{"start":{"line":113,"column":42},"end":{"line":116,"column":3}}},"6":{"name":"(anonymous_9)","decl":{"start":{"line":142,"column":2},"end":{"line":142,"column":9}},"loc":{"start":{"line":142,"column":38},"end":{"line":144,"column":3}}},"7":{"name":"(anonymous_10)","decl":{"start":{"line":151,"column":2},"end":{"line":151,"column":9}},"loc":{"start":{"line":151,"column":44},"end":{"line":153,"column":3}}},"8":{"name":"(anonymous_11)","decl":{"start":{"line":165,"column":2},"end":{"line":165,"column":9}},"loc":{"start":{"line":165,"column":69},"end":{"line":170,"column":3}}},"9":{"name":"(anonymous_12)","decl":{"start":{"line":179,"column":2},"end":{"line":179,"column":9}},"loc":{"start":{"line":179,"column":50},"end":{"line":181,"column":3}}},"10":{"name":"(anonymous_16)","decl":{"start":{"line":199,"column":49},"end":{"line":199,"column":50}},"loc":{"start":{"line":199,"column":64},"end":{"line":199,"column":70}}},"11":{"name":"(anonymous_17)","decl":{"start":{"line":204,"column":42},"end":{"line":204,"column":43}},"loc":{"start":{"line":204,"column":57},"end":{"line":204,"column":63}}},"12":{"name":"(anonymous_21)","decl":{"start":{"line":235,"column":47},"end":{"line":235,"column":48}},"loc":{"start":{"line":235,"column":48},"end":{"line":235,"column":53}}},"13":{"name":"(anonymous_22)","decl":{"start":{"line":250,"column":29},"end":{"line":250,"column":30}},"loc":{"start":{"line":250,"column":48},"end":{"line":250,"column":58}}},"14":{"name":"(anonymous_32)","decl":{"start":{"line":365,"column":6},"end":{"line":365,"column":7}},"loc":{"start":{"line":365,"column":25},"end":{"line":365,"column":35}}},"15":{"name":"(anonymous_45)","decl":{"start":{"line":498,"column":2},"end":{"line":498,"column":9}},"loc":{"start":{"line":498,"column":68},"end":{"line":500,"column":3}}},"16":{"name":"(anonymous_52)","decl":{"start":{"line":563,"column":2},"end":{"line":563,"column":10}},"loc":{"start":{"line":563,"column":63},"end":{"line":574,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":88,"column":11},"end":{"line":88,"column":32}},"type":"binary-expr","locations":[{"start":{"line":88,"column":11},"end":{"line":88,"column":32}},{"start":{"line":88,"column":36},"end":{"line":88,"column":50}}]},"1":{"loc":{"start":{"line":95,"column":20},"end":{"line":95,"column":28}},"type":"binary-expr","locations":[{"start":{"line":95,"column":20},"end":{"line":95,"column":28}},{"start":{"line":95,"column":32},"end":{"line":95,"column":56}},{"start":{"line":95,"column":60},"end":{"line":95,"column":88}}]},"2":{"loc":{"start":{"line":108,"column":14},"end":{"line":108,"column":null}},"type":"if","locations":[{"start":{"line":108,"column":14},"end":{"line":108,"column":null}},{"start":{"line":108,"column":14},"end":{"line":108,"column":null}}]},"3":{"loc":{"start":{"line":120,"column":8},"end":{"line":120,"column":13}},"type":"binary-expr","locations":[{"start":{"line":120,"column":8},"end":{"line":120,"column":13}},{"start":{"line":120,"column":17},"end":{"line":120,"column":26}}]},"4":{"loc":{"start":{"line":123,"column":9},"end":{"line":123,"column":24}},"type":"binary-expr","locations":[{"start":{"line":123,"column":9},"end":{"line":123,"column":24}},{"start":{"line":123,"column":28},"end":{"line":123,"column":48}},{"start":{"line":123,"column":53},"end":{"line":123,"column":72}}]},"5":{"loc":{"start":{"line":189,"column":8},"end":{"line":189,"column":14}},"type":"binary-expr","locations":[{"start":{"line":189,"column":8},"end":{"line":189,"column":14}},{"start":{"line":189,"column":18},"end":{"line":189,"column":34}}]},"6":{"loc":{"start":{"line":200,"column":8},"end":{"line":200,"column":20}},"type":"binary-expr","locations":[{"start":{"line":200,"column":8},"end":{"line":200,"column":20}},{"start":{"line":200,"column":24},"end":{"line":200,"column":97}}]},"7":{"loc":{"start":{"line":222,"column":8},"end":{"line":222,"column":14}},"type":"binary-expr","locations":[{"start":{"line":222,"column":8},"end":{"line":222,"column":14}},{"start":{"line":222,"column":18},"end":{"line":222,"column":34}}]},"8":{"loc":{"start":{"line":225,"column":8},"end":{"line":225,"column":20}},"type":"binary-expr","locations":[{"start":{"line":225,"column":8},"end":{"line":225,"column":20}},{"start":{"line":225,"column":24},"end":{"line":225,"column":46}}]},"9":{"loc":{"start":{"line":238,"column":6},"end":{"line":238,"column":23}},"type":"binary-expr","locations":[{"start":{"line":238,"column":6},"end":{"line":238,"column":23}},{"start":{"line":239,"column":6},"end":{"line":243,"column":null}}]},"10":{"loc":{"start":{"line":242,"column":12},"end":{"line":242,"column":54}},"type":"cond-expr","locations":[{"start":{"line":242,"column":12},"end":{"line":242,"column":54}},{"start":{"line":243,"column":12},"end":{"line":243,"column":53}}]},"11":{"loc":{"start":{"line":249,"column":19},"end":{"line":249,"column":30}},"type":"binary-expr","locations":[{"start":{"line":249,"column":19},"end":{"line":249,"column":30}},{"start":{"line":249,"column":34},"end":{"line":249,"column":36}}]},"12":{"loc":{"start":{"line":267,"column":22},"end":{"line":267,"column":33}},"type":"binary-expr","locations":[{"start":{"line":267,"column":22},"end":{"line":267,"column":33}},{"start":{"line":267,"column":37},"end":{"line":267,"column":59}}]},"13":{"loc":{"start":{"line":323,"column":22},"end":{"line":323,"column":33}},"type":"binary-expr","locations":[{"start":{"line":323,"column":22},"end":{"line":323,"column":33}},{"start":{"line":323,"column":37},"end":{"line":323,"column":59}}]},"14":{"loc":{"start":{"line":349,"column":8},"end":{"line":349,"column":16}},"type":"binary-expr","locations":[{"start":{"line":349,"column":8},"end":{"line":349,"column":16}},{"start":{"line":349,"column":20},"end":{"line":349,"column":38}}]},"15":{"loc":{"start":{"line":367,"column":8},"end":{"line":367,"column":20}},"type":"binary-expr","locations":[{"start":{"line":367,"column":8},"end":{"line":367,"column":20}},{"start":{"line":367,"column":24},"end":{"line":367,"column":44}}]},"16":{"loc":{"start":{"line":394,"column":8},"end":{"line":394,"column":16}},"type":"binary-expr","locations":[{"start":{"line":394,"column":8},"end":{"line":394,"column":16}},{"start":{"line":394,"column":20},"end":{"line":394,"column":38}}]},"17":{"loc":{"start":{"line":430,"column":8},"end":{"line":430,"column":16}},"type":"binary-expr","locations":[{"start":{"line":430,"column":8},"end":{"line":430,"column":16}},{"start":{"line":430,"column":20},"end":{"line":430,"column":38}}]},"18":{"loc":{"start":{"line":459,"column":8},"end":{"line":459,"column":53}},"type":"binary-expr","locations":[{"start":{"line":459,"column":8},"end":{"line":459,"column":53}},{"start":{"line":459,"column":57},"end":{"line":459,"column":96}}]},"19":{"loc":{"start":{"line":507,"column":8},"end":{"line":507,"column":41}},"type":"cond-expr","locations":[{"start":{"line":507,"column":8},"end":{"line":507,"column":41}},{"start":{"line":508,"column":8},"end":{"line":508,"column":44}}]},"20":{"loc":{"start":{"line":526,"column":12},"end":{"line":526,"column":50}},"type":"cond-expr","locations":[{"start":{"line":526,"column":12},"end":{"line":526,"column":50}},{"start":{"line":527,"column":12},"end":{"line":527,"column":44}}]},"21":{"loc":{"start":{"line":537,"column":38},"end":{"line":537,"column":75}},"type":"cond-expr","locations":[{"start":{"line":537,"column":38},"end":{"line":537,"column":75}},{"start":{"line":537,"column":78},"end":{"line":537,"column":86}}]},"22":{"loc":{"start":{"line":543,"column":12},"end":{"line":543,"column":50}},"type":"cond-expr","locations":[{"start":{"line":543,"column":12},"end":{"line":543,"column":50}},{"start":{"line":544,"column":12},"end":{"line":544,"column":49}}]},"23":{"loc":{"start":{"line":553,"column":48},"end":{"line":553,"column":85}},"type":"cond-expr","locations":[{"start":{"line":553,"column":48},"end":{"line":553,"column":85}},{"start":{"line":553,"column":88},"end":{"line":553,"column":96}}]},"24":{"loc":{"start":{"line":564,"column":8},"end":{"line":564,"column":12}},"type":"binary-expr","locations":[{"start":{"line":564,"column":8},"end":{"line":564,"column":12}},{"start":{"line":564,"column":16},"end":{"line":564,"column":25}},{"start":{"line":564,"column":29},"end":{"line":564,"column":35}}]}},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":7,"6":3,"7":6,"8":6,"9":6,"10":2,"11":4,"12":4,"13":4,"14":4,"15":2,"16":32,"17":32,"18":2,"19":6,"20":1,"21":1,"22":4,"23":4,"24":1,"25":0,"26":1,"27":2,"28":1,"29":2,"30":1,"31":2,"32":1,"33":1,"34":2,"35":1,"36":2,"37":1,"38":4,"39":4,"40":1,"41":3,"42":3,"43":2,"44":1,"45":2,"46":1,"47":1,"48":2,"49":2,"50":1,"51":1,"52":6,"53":6,"54":1,"55":5,"56":5,"57":5,"58":1,"59":4,"60":3,"61":1,"62":3,"63":3,"64":6,"65":2,"66":2,"67":6,"68":0,"69":3,"70":0,"71":3,"72":6,"73":1,"74":2,"75":2,"76":1,"77":1,"78":1,"79":2,"80":2,"81":1,"82":1,"83":2,"84":0,"85":1,"86":1,"87":0,"88":1,"89":0,"90":1,"91":2,"92":2,"93":1,"94":4,"95":4,"96":0,"97":1,"98":3,"99":4,"100":1,"101":2,"102":4,"103":2,"104":4,"105":2,"106":1,"107":2,"108":2,"109":0,"110":1,"111":1,"112":2,"113":1,"114":2,"115":2,"116":1,"117":2,"118":2,"119":1,"120":1,"121":2,"122":1,"123":2,"124":2,"125":1,"126":5,"127":4,"128":1,"129":1,"130":1,"131":4,"132":0,"133":4,"134":4,"135":1,"136":0,"137":0,"138":3,"139":3,"140":3,"141":2,"142":2,"143":2,"144":3,"145":3,"146":3,"147":3,"148":2,"149":2,"150":2,"151":3,"152":0,"153":0,"154":2,"155":3,"156":2,"157":3,"158":3,"159":3,"160":0,"161":0,"162":3,"163":0,"164":0,"165":0,"166":3,"167":3,"168":1,"169":2,"170":2,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":0,"178":2,"179":6,"180":6,"181":6,"182":2,"183":3,"184":3,"185":3,"186":3,"187":3,"188":3,"189":0,"190":0,"191":3,"192":2},"f":{"0":7,"1":3,"2":6,"3":2,"4":4,"5":32,"6":1,"7":1,"8":2,"9":1,"10":2,"11":1,"12":5,"13":3,"14":4,"15":3,"16":3},"b":{"0":[7,6],"1":[6,1,1],"2":[0,4],"3":[6,5],"4":[5,0,5],"5":[5,4],"6":[3,2],"7":[8,7],"8":[7,6],"9":[5,5],"10":[1,4],"11":[4,0],"12":[3,3],"13":[1,1],"14":[5,4],"15":[3,3],"16":[3,2],"17":[3,2],"18":[6,5],"19":[3,0],"20":[0,1],"21":[0,1],"22":[0,1],"23":[0,6],"24":[3,3,3]}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/errors.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/errors.ts","statementMap":{"0":{"start":{"line":3,"column":13},"end":{"line":22,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/index.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":7}},"1":{"start":{"line":5,"column":9},"end":{"line":1,"column":51}},"2":{"start":{"line":4,"column":0},"end":{"line":4,"column":32}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/encryption.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/encryption.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":35}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":33}},"2":{"start":{"line":5,"column":13},"end":{"line":9,"column":2}},"3":{"start":{"line":6,"column":15},"end":{"line":6,"column":null}},"4":{"start":{"line":6,"column":8},"end":{"line":6,"column":null}},"5":{"start":{"line":7,"column":15},"end":{"line":7,"column":null}},"6":{"start":{"line":7,"column":8},"end":{"line":7,"column":null}},"7":{"start":{"line":8,"column":2},"end":{"line":8,"column":14}},"8":{"start":{"line":11,"column":13},"end":{"line":19,"column":2}},"9":{"start":{"line":13,"column":17},"end":{"line":13,"column":45}},"10":{"start":{"line":14,"column":4},"end":{"line":14,"column":26}},"11":{"start":{"line":15,"column":4},"end":{"line":15,"column":30}},"12":{"start":{"line":18,"column":2},"end":{"line":18,"column":25}},"13":{"start":{"line":21,"column":13},"end":{"line":22,"column":33}},"14":{"start":{"line":22,"column":2},"end":{"line":22,"column":33}}},"fnMap":{"0":{"name":"(anonymous_3)","decl":{"start":{"line":11,"column":28},"end":{"line":11,"column":29}},"loc":{"start":{"line":11,"column":70},"end":{"line":19,"column":1}}}},"branchMap":{},"s":{"0":6,"1":3,"2":3,"3":10,"4":10,"5":10,"6":10,"7":10,"8":3,"9":1,"10":1,"11":1,"12":1,"13":3,"14":2},"f":{"0":2},"b":{}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/index.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/index.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":9}},"1":{"start":{"line":1,"column":9},"end":{"line":1,"column":29}},"2":{"start":{"line":1,"column":29},"end":{"line":1,"column":71}},"3":{"start":{"line":2,"column":0},"end":{"line":2,"column":9}},"4":{"start":{"line":2,"column":9},"end":{"line":2,"column":23}},"5":{"start":{"line":2,"column":23},"end":{"line":2,"column":39}},"6":{"start":{"line":2,"column":39},"end":{"line":2,"column":76}},"7":{"start":{"line":3,"column":0},"end":{"line":3,"column":9}},"8":{"start":{"line":3,"column":9},"end":{"line":3,"column":37}}},"fnMap":{},"branchMap":{},"s":{"0":2,"1":2,"2":2,"3":2,"4":2,"5":2,"6":2,"7":2,"8":2},"f":{},"b":{}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/is-email.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/is-email.ts","statementMap":{"0":{"start":{"line":1,"column":13},"end":{"line":4,"column":2}},"1":{"start":{"line":2,"column":13},"end":{"line":2,"column":168}},"2":{"start":{"line":3,"column":2},"end":{"line":3,"column":42}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":23},"end":{"line":1,"column":24}},"loc":{"start":{"line":1,"column":38},"end":{"line":4,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":17},"end":{"line":3,"column":22}},"type":"binary-expr","locations":[{"start":{"line":3,"column":17},"end":{"line":3,"column":22}},{"start":{"line":3,"column":26},"end":{"line":3,"column":40}}]}},"s":{"0":2,"1":9,"2":9},"f":{"0":9},"b":{"0":[9,9]}} | ||
,"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/user.ts": {"path":"/Users/leo/dev/github/accounts-js/accounts/packages/password/src/utils/user.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":29}},"1":{"start":{"line":4,"column":13},"end":{"line":6,"column":2}},"2":{"start":{"line":5,"column":2},"end":{"line":5,"column":58}},"3":{"start":{"line":8,"column":13},"end":{"line":10,"column":2}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":68}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":34},"end":{"line":4,"column":35}},"loc":{"start":{"line":4,"column":45},"end":{"line":6,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":8,"column":41},"end":{"line":8,"column":42}},"loc":{"start":{"line":8,"column":52},"end":{"line":10,"column":1}}}},"branchMap":{},"s":{"0":2,"1":2,"2":5,"3":2,"4":3},"f":{"0":5,"1":3},"b":{}} | ||
} |
@@ -1,63 +0,79 @@ | ||
var jumpToCode = (function init () { | ||
// Classes of code we would like to highlight | ||
var missingCoverageClasses = [ '.cbranch-no', '.cstat-no', '.fstat-no' ]; | ||
/* eslint-disable */ | ||
var jumpToCode = (function init() { | ||
// Classes of code we would like to highlight in the file view | ||
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; | ||
// We don't want to select elements that are direct descendants of another match | ||
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` | ||
// Elements to highlight in the file listing view | ||
var fileListingElements = ['td.pct.low']; | ||
// Selecter that finds elements on the page to which we can jump | ||
var selector = notSelector + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` | ||
// We don't want to select elements that are direct descendants of another match | ||
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` | ||
// The NodeList of matching elements | ||
var missingCoverageElements = document.querySelectorAll(selector); | ||
// Selecter that finds elements on the page to which we can jump | ||
var selector = | ||
fileListingElements.join(', ') + | ||
', ' + | ||
notSelector + | ||
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` | ||
var currentIndex; | ||
// The NodeList of matching elements | ||
var missingCoverageElements = document.querySelectorAll(selector); | ||
function toggleClass(index) { | ||
missingCoverageElements.item(currentIndex).classList.remove('highlighted'); | ||
missingCoverageElements.item(index).classList.add('highlighted'); | ||
} | ||
var currentIndex; | ||
function makeCurrent(index) { | ||
toggleClass(index); | ||
currentIndex = index; | ||
missingCoverageElements.item(index) | ||
.scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' }); | ||
} | ||
function toggleClass(index) { | ||
missingCoverageElements | ||
.item(currentIndex) | ||
.classList.remove('highlighted'); | ||
missingCoverageElements.item(index).classList.add('highlighted'); | ||
} | ||
function goToPrevious() { | ||
var nextIndex = 0; | ||
if (typeof currentIndex !== 'number' || currentIndex === 0) { | ||
nextIndex = missingCoverageElements.length - 1; | ||
} else if (missingCoverageElements.length > 1) { | ||
nextIndex = currentIndex - 1; | ||
function makeCurrent(index) { | ||
toggleClass(index); | ||
currentIndex = index; | ||
missingCoverageElements.item(index).scrollIntoView({ | ||
behavior: 'smooth', | ||
block: 'center', | ||
inline: 'center' | ||
}); | ||
} | ||
makeCurrent(nextIndex); | ||
} | ||
function goToPrevious() { | ||
var nextIndex = 0; | ||
if (typeof currentIndex !== 'number' || currentIndex === 0) { | ||
nextIndex = missingCoverageElements.length - 1; | ||
} else if (missingCoverageElements.length > 1) { | ||
nextIndex = currentIndex - 1; | ||
} | ||
function goToNext() { | ||
var nextIndex = 0; | ||
if (typeof currentIndex === 'number' && currentIndex < (missingCoverageElements.length - 1)) { | ||
nextIndex = currentIndex + 1; | ||
makeCurrent(nextIndex); | ||
} | ||
makeCurrent(nextIndex); | ||
} | ||
function goToNext() { | ||
var nextIndex = 0; | ||
return function jump(event) { | ||
switch (event.which) { | ||
case 78: // n | ||
case 74: // j | ||
goToNext(); | ||
break; | ||
case 66: // b | ||
case 75: // k | ||
case 80: // p | ||
goToPrevious(); | ||
break; | ||
if ( | ||
typeof currentIndex === 'number' && | ||
currentIndex < missingCoverageElements.length - 1 | ||
) { | ||
nextIndex = currentIndex + 1; | ||
} | ||
makeCurrent(nextIndex); | ||
} | ||
}; | ||
}()); | ||
return function jump(event) { | ||
switch (event.which) { | ||
case 78: // n | ||
case 74: // j | ||
goToNext(); | ||
break; | ||
case 66: // b | ||
case 75: // k | ||
case 80: // p | ||
goToPrevious(); | ||
break; | ||
} | ||
}; | ||
})(); | ||
window.addEventListener('keydown', jumpToCode); |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable */ | ||
window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.ignoreCase){ac=true}else{if(/[a-z]/i.test(ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){S=true;ac=false;break}}}var Y={b:8,t:9,n:10,v:11,f:12,r:13};function ab(ah){var ag=ah.charCodeAt(0);if(ag!==92){return ag}var af=ah.charAt(1);ag=Y[af];if(ag){return ag}else{if("0"<=af&&af<="7"){return parseInt(ah.substring(1),8)}else{if(af==="u"||af==="x"){return parseInt(ah.substring(2),16)}else{return ah.charCodeAt(1)}}}}function T(af){if(af<32){return(af<16?"\\x0":"\\x")+af.toString(16)}var ag=String.fromCharCode(af);if(ag==="\\"||ag==="-"||ag==="["||ag==="]"){ag="\\"+ag}return ag}function X(am){var aq=am.substring(1,am.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g"));var ak=[];var af=[];var ao=aq[0]==="^";for(var ar=ao?1:0,aj=aq.length;ar<aj;++ar){var ah=aq[ar];if(/\\[bdsw]/i.test(ah)){ak.push(ah)}else{var ag=ab(ah);var al;if(ar+2<aj&&"-"===aq[ar+1]){al=ab(aq[ar+2]);ar+=2}else{al=ag}af.push([ag,al]);if(!(al<65||ag>122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;ar<af.length;++ar){var at=af[ar];if(at[0]<=ap[1]+1){ap[1]=Math.max(ap[1],at[1])}else{ai.push(ap=at)}}var an=["["];if(ao){an.push("^")}an.push.apply(an,ak);for(var ar=0;ar<ai.length;++ar){var at=ai[ar];an.push(T(at[0]));if(at[1]>at[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){an[af]=-1}}}}for(var ak=1;ak<an.length;++ak){if(-1===an[ak]){an[ak]=++ad}}for(var ak=0,am=0;ak<ah;++ak){var ag=aj[ak];if(ag==="("){++am;if(an[am]===undefined){aj[ak]="(?:"}}else{if("\\"===ag.charAt(0)){var af=+ag.substring(1);if(af&&af<=am){aj[ak]="\\"+an[am]}}}}for(var ak=0,am=0;ak<ah;++ak){if("^"===aj[ak]&&"^"!==aj[ak+1]){aj[ak]=""}}if(al.ignoreCase&&S){for(var ak=0;ak<ah;++ak){var ag=aj[ak];var ai=ag.charAt(0);if(ag.length>=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V<U;++V){var ae=Z[V];if(ae.global||ae.multiline){throw new Error(""+ae)}aa.push("(?:"+W(ae)+")")}return new RegExp(aa.join("|"),ac?"gi":"g")}function a(V){var U=/(?:^|\s)nocode(?:\s|$)/;var X=[];var T=0;var Z=[];var W=0;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=document.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Y=S&&"pre"===S.substring(0,3);function aa(ab){switch(ab.nodeType){case 1:if(U.test(ab.className)){return}for(var ae=ab.firstChild;ae;ae=ae.nextSibling){aa(ae)}var ad=ab.nodeName;if("BR"===ad||"LI"===ad){X[W]="\n";Z[W<<1]=T++;Z[(W++<<1)|1]=ab}break;case 3:case 4:var ac=ab.nodeValue;if(ac.length){if(!Y){ac=ac.replace(/[ \t\r\n]+/g," ")}else{ac=ac.replace(/\r\n?/g,"\n")}X[W]=ac;Z[W<<1]=T;T+=ac.length;Z[(W++<<1)|1]=ab}break}}aa(V);return{sourceCode:X.join("").replace(/\n$/,""),spans:Z}}function B(S,U,W,T){if(!U){return}var V={sourceCode:U,basePos:S};W(V);T.push.apply(T,V.decorations)}var v=/\S/;function o(S){var V=undefined;for(var U=S.firstChild;U;U=U.nextSibling){var T=U.nodeType;V=(T===1)?(V?S:U):(T===3)?(v.test(U.nodeValue)?S:V):V}return V===S?undefined:V}function g(U,T){var S={};var V;(function(){var ad=U.concat(T);var ah=[];var ag={};for(var ab=0,Z=ad.length;ab<Z;++ab){var Y=ad[ab];var ac=Y[3];if(ac){for(var ae=ac.length;--ae>=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae<aq;++ae){var ag=an[ae];var ap=aj[ag];var ai=void 0;var am;if(typeof ap==="string"){am=false}else{var aa=S[ag.charAt(0)];if(aa){ai=ag.match(aa[1]);ap=aa[0]}else{for(var ao=0;ao<X;++ao){aa=T[ao];ai=ag.match(aa[1]);if(ai){ap=aa[0];break}}if(!ai){ap=F}}am=ap.length>=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y<W.length;++Y){ae(W[Y])}if(ag===(ag|0)){W[0].setAttribute("value",ag)}var aa=ac.createElement("OL");aa.className="linenums";var X=Math.max(0,((ag-1))|0)||0;for(var Y=0,T=W.length;Y<T;++Y){af=W[Y];af.className="L"+((Y+X)%10);if(!af.firstChild){af.appendChild(ac.createTextNode("\xA0"))}aa.appendChild(af)}V.appendChild(aa)}function D(ac){var aj=/\bMSIE\b/.test(navigator.userAgent);var am=/\n/g;var al=ac.sourceCode;var an=al.length;var V=0;var aa=ac.spans;var T=aa.length;var ah=0;var X=ac.decorations;var Y=X.length;var Z=0;X[Y]=an;var ar,aq;for(aq=ar=0;aq<Y;){if(X[aq]!==X[aq+2]){X[ar++]=X[aq++];X[ar++]=X[aq++]}else{aq+=2}}Y=ar;for(aq=ar=0;aq<Y;){var at=X[aq];var ab=X[aq+1];var W=aq+2;while(W+2<=Y&&X[W+1]===ab){W+=2}X[ar++]=at;X[ar++]=ab;aq=W}Y=X.length=ar;var ae=null;while(ah<T){var af=aa[ah];var S=aa[ah+2]||an;var ag=X[Z];var ap=X[Z+2]||an;var W=Math.min(S,ap);var ak=aa[ah+1];var U;if(ak.nodeType!==1&&(U=al.substring(V,W))){if(aj){U=U.replace(am,"\r")}ak.nodeValue=U;var ai=ak.ownerDocument;var ao=ai.createElement("SPAN");ao.className=X[Z+1];var ad=ak.parentNode;ad.replaceChild(ao,ak);ao.appendChild(ak);if(V<S){aa[ah+1]=ak=ai.createTextNode(al.substring(W,S));ad.insertBefore(ak,ao.nextSibling)}}V=W;if(V>=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*</.test(S)?"default-markup":"default-code"}return t[T]}c(K,["default-code"]);c(g([],[[F,/^[^<?]+/],[E,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa<ac.length;++aa){for(var Z=0,V=ac[aa].length;Z<V;++Z){T.push(ac[aa][Z])}}ac=null;var W=Date;if(!W.now){W={now:function(){return +(new Date)}}}var X=0;var S;var ab=/\blang(?:uage)?-([\w.]+)(?!\S)/;var ae=/\bprettyprint\b/;function U(){var ag=(window.PR_SHOULD_USE_CONTINUATION?W.now()+250:Infinity);for(;X<T.length&&W.now()<ag;X++){var aj=T[X];var ai=aj.className;if(ai.indexOf("prettyprint")>=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X<T.length){setTimeout(U,250)}else{if(ad){ad()}}}U()}window.prettyPrintOne=y;window.prettyPrint=b;window.PR={createSimpleLexer:g,registerLangHandler:c,sourceDecorator:i,PR_ATTRIB_NAME:P,PR_ATTRIB_VALUE:n,PR_COMMENT:j,PR_DECLARATION:E,PR_KEYWORD:z,PR_LITERAL:G,PR_NOCODE:N,PR_PLAIN:F,PR_PUNCTUATION:L,PR_SOURCE:J,PR_STRING:C,PR_TAG:m,PR_TYPE:O}})();PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_DECLARATION,/^<!\w[^>]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^<script\b[^>]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:<!--|-->)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); |
@@ -1,3 +0,4 @@ | ||
var addSorting = (function () { | ||
"use strict"; | ||
/* eslint-disable */ | ||
var addSorting = (function() { | ||
'use strict'; | ||
var cols, | ||
@@ -10,9 +11,17 @@ currentSort = { | ||
// returns the summary table element | ||
function getTable() { return document.querySelector('.coverage-summary'); } | ||
function getTable() { | ||
return document.querySelector('.coverage-summary'); | ||
} | ||
// returns the thead element of the summary table | ||
function getTableHeader() { return getTable().querySelector('thead tr'); } | ||
function getTableHeader() { | ||
return getTable().querySelector('thead tr'); | ||
} | ||
// returns the tbody element of the summary table | ||
function getTableBody() { return getTable().querySelector('tbody'); } | ||
function getTableBody() { | ||
return getTable().querySelector('tbody'); | ||
} | ||
// returns the th element for nth column | ||
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; } | ||
function getNthColumn(n) { | ||
return getTableHeader().querySelectorAll('th')[n]; | ||
} | ||
@@ -37,3 +46,4 @@ // loads all columns | ||
col.defaultDescSort = col.type === 'number'; | ||
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>'; | ||
colNode.innerHTML = | ||
colNode.innerHTML + '<span class="sorter"></span>'; | ||
} | ||
@@ -75,3 +85,3 @@ } | ||
var key = cols[index].key, | ||
sorter = function (a, b) { | ||
sorter = function(a, b) { | ||
a = a.data[key]; | ||
@@ -88,3 +98,3 @@ b = b.data[key]; | ||
if (desc) { | ||
finalSorter = function (a, b) { | ||
finalSorter = function(a, b) { | ||
return -1 * sorter(a, b); | ||
@@ -115,3 +125,5 @@ }; | ||
function addSortIndicators() { | ||
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted'; | ||
getNthColumn(currentSort.index).className += currentSort.desc | ||
? ' sorted-desc' | ||
: ' sorted'; | ||
} | ||
@@ -125,3 +137,3 @@ // adds event listeners for all sorter widgets | ||
return function () { | ||
return function() { | ||
var desc = col.defaultDescSort; | ||
@@ -139,3 +151,3 @@ | ||
}; | ||
for (i =0 ; i < cols.length; i += 1) { | ||
for (i = 0; i < cols.length; i += 1) { | ||
if (cols[i].sortable) { | ||
@@ -154,3 +166,3 @@ // add the click event handler on the th so users | ||
// adds sorting functionality to the UI | ||
return function () { | ||
return function() { | ||
if (!getTable()) { | ||
@@ -157,0 +169,0 @@ return; |
@@ -51,3 +51,11 @@ import { User, TokenRecord, DatabaseInterface, AuthenticationService, HashAlgorithm, ConnectionInformations, LoginResult } from '@accounts/types'; | ||
validateEmail?(email?: string): boolean; | ||
/** | ||
* Function that check if the password is valid. | ||
* This function will be called when you call `createUser` and `changePassword`. | ||
*/ | ||
validatePassword?(password?: PasswordType): boolean; | ||
/** | ||
* Function that check if the username is a valid username. | ||
* This function will be called when you call `createUser`. | ||
*/ | ||
validateUsername?(username?: string): boolean; | ||
@@ -117,2 +125,3 @@ } | ||
* @description Change the current user's password. | ||
* It will trigger the `validatePassword` option and throw if password is invalid. | ||
* @param {string} userId - User id. | ||
@@ -119,0 +128,0 @@ * @param {string} oldPassword - The user's current password. |
@@ -191,2 +191,3 @@ "use strict"; | ||
_a.sent(); | ||
this.server.getHooks().emit(server_1.ServerHooks.ResetPasswordSuccess, user); | ||
if (!(resetTokenRecord.reason === 'enroll')) return [3 /*break*/, 5]; | ||
@@ -243,2 +244,3 @@ return [4 /*yield*/, this.db.verifyEmail(user.id, resetTokenRecord.address)]; | ||
* @description Change the current user's password. | ||
* It will trigger the `validatePassword` option and throw if password is invalid. | ||
* @param {string} userId - User id. | ||
@@ -251,8 +253,12 @@ * @param {string} oldPassword - The user's current password. | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var password, user, address, passwordChangedMail; | ||
var user, password, address, passwordChangedMail; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.passwordAuthenticator({ id: userId }, oldPassword)]; | ||
case 0: | ||
if (!this.options.validatePassword(newPassword)) { | ||
throw new Error(this.options.errors.invalidPassword); | ||
} | ||
return [4 /*yield*/, this.passwordAuthenticator({ id: userId }, oldPassword)]; | ||
case 1: | ||
_a.sent(); | ||
user = _a.sent(); | ||
return [4 /*yield*/, utils_1.bcryptPassword(newPassword)]; | ||
@@ -264,9 +270,4 @@ case 2: | ||
_a.sent(); | ||
if (!this.options.notifyUserAfterPasswordChanged) return [3 /*break*/, 6]; | ||
return [4 /*yield*/, this.db.findUserById(userId)]; | ||
case 4: | ||
user = _a.sent(); | ||
if (!user) { | ||
throw new Error(this.options.errors.userNotFound); | ||
} | ||
this.server.getHooks().emit(server_1.ServerHooks.ChangePasswordSuccess, user); | ||
if (!this.options.notifyUserAfterPasswordChanged) return [3 /*break*/, 5]; | ||
address = user.emails && user.emails[0].address; | ||
@@ -278,6 +279,6 @@ if (!address) { | ||
return [4 /*yield*/, this.server.options.sendMail(passwordChangedMail)]; | ||
case 5: | ||
case 4: | ||
_a.sent(); | ||
_a.label = 6; | ||
case 6: return [2 /*return*/]; | ||
_a.label = 5; | ||
case 5: return [2 /*return*/]; | ||
} | ||
@@ -284,0 +285,0 @@ }); |
{ | ||
"name": "@accounts/password", | ||
"version": "0.16.0", | ||
"version": "0.17.0", | ||
"license": "MIT", | ||
@@ -21,3 +21,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/two-factor": "^0.16.0", | ||
"@accounts/two-factor": "^0.17.0", | ||
"bcryptjs": "^2.4.3", | ||
@@ -28,6 +28,6 @@ "lodash": "^4.17.15", | ||
"devDependencies": { | ||
"@accounts/server": "^0.16.0", | ||
"@accounts/types": "^0.16.0", | ||
"@accounts/server": "^0.17.0", | ||
"@accounts/types": "^0.17.0", | ||
"@types/bcryptjs": "2.4.2", | ||
"@types/jest": "24.0.15", | ||
"@types/jest": "24.0.16", | ||
"@types/lodash": "4.14.136", | ||
@@ -34,0 +34,0 @@ "@types/node": "12.6.8", |
@@ -74,3 +74,11 @@ import { trim, isEmpty, pick, isString, isPlainObject, find, includes, defer } from 'lodash'; | ||
validateEmail?(email?: string): boolean; | ||
/** | ||
* Function that check if the password is valid. | ||
* This function will be called when you call `createUser` and `changePassword`. | ||
*/ | ||
validatePassword?(password?: PasswordType): boolean; | ||
/** | ||
* Function that check if the username is a valid username. | ||
* This function will be called when you call `createUser`. | ||
*/ | ||
validateUsername?(username?: string): boolean; | ||
@@ -259,2 +267,4 @@ } | ||
this.server.getHooks().emit(ServerHooks.ResetPasswordSuccess, user); | ||
// If user clicked on an enrollment link we can verify his email | ||
@@ -304,2 +314,3 @@ if (resetTokenRecord.reason === 'enroll') { | ||
* @description Change the current user's password. | ||
* It will trigger the `validatePassword` option and throw if password is invalid. | ||
* @param {string} userId - User id. | ||
@@ -315,13 +326,14 @@ * @param {string} oldPassword - The user's current password. | ||
): Promise<void> { | ||
await this.passwordAuthenticator({ id: userId }, oldPassword); | ||
if (!this.options.validatePassword(newPassword)) { | ||
throw new Error(this.options.errors.invalidPassword); | ||
} | ||
const user = await this.passwordAuthenticator({ id: userId }, oldPassword); | ||
const password = await bcryptPassword(newPassword); | ||
await this.db.setPassword(userId, password); | ||
this.server.getHooks().emit(ServerHooks.ChangePasswordSuccess, user); | ||
if (this.options.notifyUserAfterPasswordChanged) { | ||
const user = await this.db.findUserById(userId); | ||
if (!user) { | ||
throw new Error(this.options.errors.userNotFound); | ||
} | ||
const address = user.emails && user.emails[0].address; | ||
@@ -328,0 +340,0 @@ if (!address) { |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
316342
2997
74
+ Added@accounts/two-factor@0.17.0(transitive)
+ Added@accounts/types@0.17.0(transitive)
- Removed@accounts/two-factor@0.16.0(transitive)
- Removed@accounts/types@0.16.0(transitive)
Updated@accounts/two-factor@^0.17.0