@accounts/password
Advanced tools
Comparing version 0.11.2 to 0.12.0
@@ -304,2 +304,11 @@ import { set } from 'lodash'; | ||
} as any); | ||
const prepareMail = jest.fn(() => Promise.resolve()); | ||
const sanitizeUser = jest.fn(() => Promise.resolve()); | ||
const sendMail = jest.fn(() => Promise.resolve()); | ||
password.server = { | ||
prepareMail, | ||
options: { sendMail }, | ||
sanitizeUser, | ||
} as any; | ||
set(password.server, 'options.emailTemplates', {}); | ||
await password.resetPassword(token, newPassword, connectionInfo); | ||
@@ -321,3 +330,13 @@ expect(setResetPassword.mock.calls.length).toBe(1); | ||
} as any); | ||
password.server = { isTokenExpired, loginWithUser: jest.fn() } as any; | ||
const prepareMail = jest.fn(() => Promise.resolve()); | ||
const sanitizeUser = jest.fn(() => Promise.resolve()); | ||
const sendMail = jest.fn(() => Promise.resolve()); | ||
password.server = { | ||
isTokenExpired, | ||
loginWithUser: jest.fn(), | ||
prepareMail, | ||
options: { sendMail }, | ||
sanitizeUser, | ||
} as any; | ||
set(password.server, 'options.emailTemplates', {}); | ||
const loginResult = await password.resetPassword(token, newPassword, connectionInfo); | ||
@@ -351,3 +370,13 @@ expect(loginResult).toBeNull(); | ||
} as any); | ||
tmpAccountsPassword.server = { isTokenExpired, loginWithUser } as any; | ||
const prepareMail = jest.fn(() => Promise.resolve()); | ||
const sanitizeUser = jest.fn(() => Promise.resolve()); | ||
const sendMail = jest.fn(() => Promise.resolve()); | ||
tmpAccountsPassword.server = { | ||
isTokenExpired, | ||
loginWithUser, | ||
prepareMail, | ||
options: { sendMail }, | ||
sanitizeUser, | ||
} as any; | ||
set(tmpAccountsPassword.server, 'options.emailTemplates', {}); | ||
const loginResult = await tmpAccountsPassword.resetPassword( | ||
@@ -377,6 +406,20 @@ token, | ||
describe('changePassword', () => { | ||
const validUser = { | ||
emails: [{ address: 'john.doe@gmail.com', verified: true }], | ||
}; | ||
it('call passwordAuthenticator and this.db.setPassword', async () => { | ||
const userId = 'id'; | ||
const setPassword = jest.fn(() => Promise.resolve('user')); | ||
password.setStore({ setPassword } as any); | ||
const findUserById = jest.fn(() => Promise.resolve(validUser)); | ||
password.setStore({ setPassword, findUserById } as any); | ||
const prepareMail = jest.fn(() => Promise.resolve()); | ||
const sanitizeUser = jest.fn(() => Promise.resolve()); | ||
const sendMail = jest.fn(() => Promise.resolve()); | ||
password.server = { | ||
prepareMail, | ||
options: { sendMail }, | ||
sanitizeUser, | ||
} as any; | ||
set(password.server, 'options.emailTemplates', {}); | ||
const passwordAuthenticator = jest | ||
@@ -390,2 +433,4 @@ .spyOn(password, 'passwordAuthenticator' as any) | ||
expect(setPassword.mock.calls[0][1]).toBeTruthy(); | ||
expect(prepareMail.mock.calls[0].length).toBe(6); | ||
expect(sendMail.mock.calls[0].length).toBe(1); | ||
(password as any).passwordAuthenticator.mockRestore(); | ||
@@ -392,0 +437,0 @@ }); |
@@ -1,5 +0,5 @@ | ||
{"/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":55,"column":23},"end":{"line":76,"column":1}},"6":{"start":{"line":65,"column":4},"end":{"line":65,"column":51}},"7":{"start":{"line":68,"column":4},"end":{"line":68,"column":30}},"8":{"start":{"line":71,"column":26},"end":{"line":71,"column":50}},"9":{"start":{"line":72,"column":20},"end":{"line":72,"column":88}},"10":{"start":{"line":73,"column":4},"end":{"line":73,"column":28}},"11":{"start":{"line":78,"column":0},"end":{"line":513,"column":0}},"12":{"start":{"line":85,"column":14},"end":{"line":85,"column":51}},"13":{"start":{"line":79,"column":9},"end":{"line":79,"column":34}},"14":{"start":{"line":86,"column":4},"end":{"line":86,"column":53}},"15":{"start":{"line":87,"column":4},"end":{"line":87,"column":54}},"16":{"start":{"line":90,"column":9},"end":{"line":93,"column":3}},"17":{"start":{"line":91,"column":4},"end":{"line":91,"column":20}},"18":{"start":{"line":92,"column":4},"end":{"line":92,"column":35}},"19":{"start":{"line":95,"column":15},"end":{"line":112,"column":3}},"20":{"start":{"line":96,"column":12},"end":{"line":96,"column":44}},"21":{"start":{"line":97,"column":4},"end":{"line":99,"column":5}},"22":{"start":{"line":98,"column":6},"end":{"line":98,"column":71}},"23":{"start":{"line":100,"column":4},"end":{"line":102,"column":5}},"24":{"start":{"line":101,"column":6},"end":{"line":101,"column":55}},"25":{"start":{"line":104,"column":22},"end":{"line":104,"column":70}},"26":{"start":{"line":104,"column":10},"end":{"line":104,"column":70}},"27":{"start":{"line":107,"column":8},"end":{"line":107,"column":42}},"28":{"start":{"line":108,"column":6},"end":{"line":108,"column":57}},"29":{"start":{"line":108,"column":6},"end":{"line":108,"column":58}},"30":{"start":{"line":111,"column":4},"end":{"line":111,"column":21}},"31":{"start":{"line":119,"column":9},"end":{"line":121,"column":3}},"32":{"start":{"line":120,"column":4},"end":{"line":120,"column":42}},"33":{"start":{"line":128,"column":9},"end":{"line":130,"column":3}},"34":{"start":{"line":129,"column":4},"end":{"line":129,"column":48}},"35":{"start":{"line":142,"column":9},"end":{"line":147,"column":3}},"36":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"37":{"start":{"line":144,"column":6},"end":{"line":144,"column":56}},"38":{"start":{"line":146,"column":4},"end":{"line":146,"column":56}},"39":{"start":{"line":156,"column":9},"end":{"line":158,"column":3}},"40":{"start":{"line":157,"column":4},"end":{"line":157,"column":46}},"41":{"start":{"line":165,"column":15},"end":{"line":186,"column":3}},"42":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"43":{"start":{"line":167,"column":6},"end":{"line":167,"column":56}},"44":{"start":{"line":170,"column":17},"end":{"line":170,"column":70}},"45":{"start":{"line":170,"column":10},"end":{"line":170,"column":70}},"46":{"start":{"line":171,"column":4},"end":{"line":173,"column":5}},"47":{"start":{"line":172,"column":6},"end":{"line":172,"column":66}},"48":{"start":{"line":175,"column":10},"end":{"line":175,"column":63}},"49":{"start":{"line":176,"column":10},"end":{"line":176,"column":88}},"50":{"start":{"line":176,"column":69},"end":{"line":176,"column":86}},"51":{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},"52":{"start":{"line":178,"column":6},"end":{"line":178,"column":66}},"53":{"start":{"line":181,"column":10},"end":{"line":181,"column":97}},"54":{"start":{"line":181,"column":62},"end":{"line":181,"column":95}},"55":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"56":{"start":{"line":183,"column":6},"end":{"line":183,"column":73}},"57":{"start":{"line":185,"column":4},"end":{"line":185,"column":59}},"58":{"start":{"line":185,"column":4},"end":{"line":185,"column":60}},"59":{"start":{"line":194,"column":15},"end":{"line":248,"column":3}},"60":{"start":{"line":199,"column":4},"end":{"line":201,"column":5}},"61":{"start":{"line":200,"column":6},"end":{"line":200,"column":56}},"62":{"start":{"line":202,"column":4},"end":{"line":204,"column":5}},"63":{"start":{"line":203,"column":6},"end":{"line":203,"column":62}},"64":{"start":{"line":206,"column":17},"end":{"line":206,"column":66}},"65":{"start":{"line":206,"column":10},"end":{"line":206,"column":66}},"66":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"67":{"start":{"line":208,"column":6},"end":{"line":208,"column":68}},"68":{"start":{"line":211,"column":10},"end":{"line":211,"column":49}},"69":{"start":{"line":212,"column":10},"end":{"line":212,"column":71}},"70":{"start":{"line":212,"column":52},"end":{"line":212,"column":69}},"71":{"start":{"line":214,"column":4},"end":{"line":224,"column":5}},"72":{"start":{"line":223,"column":6},"end":{"line":223,"column":68}},"73":{"start":{"line":226,"column":10},"end":{"line":226,"column":37}},"74":{"start":{"line":227,"column":4},"end":{"line":229,"column":5}},"75":{"start":{"line":227,"column":53},"end":{"line":227,"column":66}},"76":{"start":{"line":228,"column":6},"end":{"line":228,"column":75}},"77":{"start":{"line":231,"column":21},"end":{"line":231,"column":66}},"78":{"start":{"line":231,"column":10},"end":{"line":231,"column":66}},"79":{"start":{"line":233,"column":4},"end":{"line":233,"column":86}},"80":{"start":{"line":233,"column":4},"end":{"line":233,"column":87}},"81":{"start":{"line":236,"column":8},"end":{"line":236,"column":44}},"82":{"start":{"line":237,"column":6},"end":{"line":237,"column":66}},"83":{"start":{"line":237,"column":6},"end":{"line":237,"column":67}},"84":{"start":{"line":241,"column":4},"end":{"line":241,"column":48}},"85":{"start":{"line":241,"column":4},"end":{"line":241,"column":49}},"86":{"start":{"line":243,"column":4},"end":{"line":247,"column":5}},"87":{"start":{"line":244,"column":6},"end":{"line":244,"column":52}},"88":{"start":{"line":246,"column":6},"end":{"line":246,"column":18}},"89":{"start":{"line":256,"column":15},"end":{"line":259,"column":3}},"90":{"start":{"line":257,"column":21},"end":{"line":257,"column":54}},"91":{"start":{"line":257,"column":10},"end":{"line":257,"column":54}},"92":{"start":{"line":258,"column":4},"end":{"line":258,"column":49}},"93":{"start":{"line":268,"column":15},"end":{"line":276,"column":3}},"94":{"start":{"line":273,"column":4},"end":{"line":273,"column":65}},"95":{"start":{"line":273,"column":4},"end":{"line":273,"column":66}},"96":{"start":{"line":274,"column":21},"end":{"line":274,"column":54}},"97":{"start":{"line":274,"column":10},"end":{"line":274,"column":54}},"98":{"start":{"line":275,"column":4},"end":{"line":275,"column":49}},"99":{"start":{"line":285,"column":15},"end":{"line":321,"column":3}},"100":{"start":{"line":286,"column":4},"end":{"line":288,"column":5}},"101":{"start":{"line":287,"column":6},"end":{"line":287,"column":56}},"102":{"start":{"line":290,"column":17},"end":{"line":290,"column":55}},"103":{"start":{"line":290,"column":10},"end":{"line":290,"column":55}},"104":{"start":{"line":291,"column":4},"end":{"line":297,"column":5}},"105":{"start":{"line":293,"column":6},"end":{"line":295,"column":7}},"106":{"start":{"line":294,"column":8},"end":{"line":294,"column":15}},"107":{"start":{"line":296,"column":6},"end":{"line":296,"column":56}},"108":{"start":{"line":300,"column":10},"end":{"line":303,"column":6}},"109":{"start":{"line":302,"column":30},"end":{"line":302,"column":89}},"110":{"start":{"line":304,"column":4},"end":{"line":306,"column":5}},"111":{"start":{"line":305,"column":6},"end":{"line":305,"column":13}},"112":{"start":{"line":308,"column":10},"end":{"line":308,"column":40}},"113":{"start":{"line":309,"column":4},"end":{"line":309,"column":68}},"114":{"start":{"line":309,"column":4},"end":{"line":309,"column":69}},"115":{"start":{"line":311,"column":10},"end":{"line":318,"column":6}},"116":{"start":{"line":320,"column":4},"end":{"line":320,"column":57}},"117":{"start":{"line":320,"column":4},"end":{"line":320,"column":58}},"118":{"start":{"line":330,"column":15},"end":{"line":356,"column":3}},"119":{"start":{"line":331,"column":4},"end":{"line":333,"column":5}},"120":{"start":{"line":332,"column":6},"end":{"line":332,"column":56}},"121":{"start":{"line":335,"column":17},"end":{"line":335,"column":55}},"122":{"start":{"line":335,"column":10},"end":{"line":335,"column":55}},"123":{"start":{"line":336,"column":4},"end":{"line":342,"column":5}},"124":{"start":{"line":338,"column":6},"end":{"line":340,"column":7}},"125":{"start":{"line":339,"column":8},"end":{"line":339,"column":15}},"126":{"start":{"line":341,"column":6},"end":{"line":341,"column":56}},"127":{"start":{"line":343,"column":10},"end":{"line":343,"column":40}},"128":{"start":{"line":344,"column":4},"end":{"line":344,"column":73}},"129":{"start":{"line":344,"column":4},"end":{"line":344,"column":74}},"130":{"start":{"line":346,"column":10},"end":{"line":353,"column":6}},"131":{"start":{"line":355,"column":4},"end":{"line":355,"column":57}},"132":{"start":{"line":355,"column":4},"end":{"line":355,"column":58}},"133":{"start":{"line":366,"column":15},"end":{"line":388,"column":3}},"134":{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},"135":{"start":{"line":368,"column":6},"end":{"line":368,"column":56}},"136":{"start":{"line":371,"column":17},"end":{"line":371,"column":55}},"137":{"start":{"line":371,"column":10},"end":{"line":371,"column":55}},"138":{"start":{"line":372,"column":4},"end":{"line":374,"column":5}},"139":{"start":{"line":373,"column":6},"end":{"line":373,"column":56}},"140":{"start":{"line":375,"column":10},"end":{"line":375,"column":40}},"141":{"start":{"line":376,"column":4},"end":{"line":376,"column":74}},"142":{"start":{"line":376,"column":4},"end":{"line":376,"column":75}},"143":{"start":{"line":378,"column":10},"end":{"line":385,"column":6}},"144":{"start":{"line":387,"column":4},"end":{"line":387,"column":54}},"145":{"start":{"line":387,"column":4},"end":{"line":387,"column":55}},"146":{"start":{"line":395,"column":15},"end":{"line":433,"column":3}},"147":{"start":{"line":396,"column":4},"end":{"line":398,"column":5}},"148":{"start":{"line":397,"column":6},"end":{"line":397,"column":67}},"149":{"start":{"line":400,"column":8},"end":{"line":400,"column":21}},"150":{"start":{"line":400,"column":26},"end":{"line":400,"column":73}},"151":{"start":{"line":400,"column":25},"end":{"line":400,"column":74}},"152":{"start":{"line":400,"column":4},"end":{"line":402,"column":5}},"153":{"start":{"line":401,"column":6},"end":{"line":401,"column":65}},"154":{"start":{"line":404,"column":8},"end":{"line":404,"column":18}},"155":{"start":{"line":404,"column":23},"end":{"line":404,"column":64}},"156":{"start":{"line":404,"column":22},"end":{"line":404,"column":65}},"157":{"start":{"line":404,"column":4},"end":{"line":406,"column":5}},"158":{"start":{"line":405,"column":6},"end":{"line":405,"column":62}},"159":{"start":{"line":408,"column":8},"end":{"line":408,"column":21}},"160":{"start":{"line":409,"column":6},"end":{"line":411,"column":7}},"161":{"start":{"line":410,"column":8},"end":{"line":410,"column":61}},"162":{"start":{"line":412,"column":6},"end":{"line":412,"column":10}},"163":{"start":{"line":412,"column":22},"end":{"line":412,"column":69}},"164":{"start":{"line":412,"column":6},"end":{"line":412,"column":70}},"165":{"start":{"line":416,"column":11},"end":{"line":416,"column":39}},"166":{"start":{"line":417,"column":8},"end":{"line":417,"column":48}},"167":{"start":{"line":418,"column":8},"end":{"line":418,"column":53}},"168":{"start":{"line":416,"column":4},"end":{"line":418,"column":54}},"169":{"start":{"line":421,"column":21},"end":{"line":421,"column":51}},"170":{"start":{"line":421,"column":12},"end":{"line":421,"column":51}},"171":{"start":{"line":423,"column":6},"end":{"line":426,"column":9}},"172":{"start":{"line":424,"column":28},"end":{"line":424,"column":62}},"173":{"start":{"line":424,"column":14},"end":{"line":424,"column":71}},"174":{"start":{"line":425,"column":8},"end":{"line":425,"column":79}},"175":{"start":{"line":428,"column":6},"end":{"line":428,"column":20}},"176":{"start":{"line":430,"column":6},"end":{"line":430,"column":74}},"177":{"start":{"line":430,"column":6},"end":{"line":430,"column":75}},"178":{"start":{"line":431,"column":6},"end":{"line":431,"column":14}},"179":{"start":{"line":435,"column":9},"end":{"line":437,"column":3}},"180":{"start":{"line":436,"column":4},"end":{"line":436,"column":62}},"181":{"start":{"line":439,"column":16},"end":{"line":487,"column":3}},"182":{"start":{"line":443,"column":10},"end":{"line":445,"column":45}},"183":{"start":{"line":449,"column":8},"end":{"line":449,"column":10}},"184":{"start":{"line":451,"column":18},"end":{"line":451,"column":48}},"185":{"start":{"line":451,"column":6},"end":{"line":451,"column":49}},"186":{"start":{"line":452,"column":15},"end":{"line":452,"column":23}},"187":{"start":{"line":454,"column":18},"end":{"line":454,"column":60}},"188":{"start":{"line":454,"column":6},"end":{"line":454,"column":61}},"189":{"start":{"line":455,"column":15},"end":{"line":455,"column":20}},"190":{"start":{"line":457,"column":18},"end":{"line":457,"column":54}},"191":{"start":{"line":457,"column":6},"end":{"line":457,"column":55}},"192":{"start":{"line":461,"column":4},"end":{"line":467,"column":5}},"193":{"start":{"line":462,"column":6},"end":{"line":466,"column":8}},"194":{"start":{"line":469,"column":17},"end":{"line":469,"column":61}},"195":{"start":{"line":469,"column":10},"end":{"line":469,"column":61}},"196":{"start":{"line":470,"column":4},"end":{"line":472,"column":5}},"197":{"start":{"line":471,"column":6},"end":{"line":471,"column":57}},"198":{"start":{"line":474,"column":10},"end":{"line":474,"column":61}},"199":{"start":{"line":475,"column":10},"end":{"line":475,"column":87}},"200":{"start":{"line":476,"column":28},"end":{"line":476,"column":60}},"201":{"start":{"line":476,"column":10},"end":{"line":476,"column":60}},"202":{"start":{"line":478,"column":4},"end":{"line":484,"column":5}},"203":{"start":{"line":479,"column":6},"end":{"line":483,"column":8}},"204":{"start":{"line":486,"column":4},"end":{"line":486,"column":21}},"205":{"start":{"line":489,"column":16},"end":{"line":493,"column":3}},"206":{"start":{"line":490,"column":10},"end":{"line":490,"column":61}},"207":{"start":{"line":491,"column":10},"end":{"line":491,"column":97}},"208":{"start":{"line":492,"column":4},"end":{"line":492,"column":42}},"209":{"start":{"line":501,"column":10},"end":{"line":512,"column":3}},"210":{"start":{"line":501,"column":31},"end":{"line":501,"column":35}},"211":{"start":{"line":501,"column":37},"end":{"line":501,"column":45}},"212":{"start":{"line":501,"column":47},"end":{"line":501,"column":52}},"213":{"start":{"line":501,"column":54},"end":{"line":501,"column":56}},"214":{"start":{"line":502,"column":4},"end":{"line":510,"column":5}},"215":{"start":{"line":503,"column":6},"end":{"line":509,"column":7}},"216":{"start":{"line":504,"column":8},"end":{"line":504,"column":21}},"217":{"start":{"line":505,"column":8},"end":{"line":505,"column":24}},"218":{"start":{"line":507,"column":8},"end":{"line":507,"column":24}},"219":{"start":{"line":508,"column":8},"end":{"line":508,"column":21}},"220":{"start":{"line":511,"column":4},"end":{"line":511,"column":35}},"221":{"start":{"line":513,"column":0},"end":{"line":513,"column":1}}},"fnMap":{"0":{"name":"(anonymous_14)","decl":{"start":{"line":64,"column":2},"end":{"line":64,"column":15}},"loc":{"start":{"line":64,"column":30},"end":{"line":66,"column":3}}},"1":{"name":"(anonymous_15)","decl":{"start":{"line":67,"column":2},"end":{"line":67,"column":18}},"loc":{"start":{"line":67,"column":42},"end":{"line":69,"column":3}}},"2":{"name":"(anonymous_16)","decl":{"start":{"line":70,"column":2},"end":{"line":70,"column":18}},"loc":{"start":{"line":70,"column":36},"end":{"line":74,"column":3}}},"3":{"name":"(anonymous_17)","decl":{"start":{"line":78,"column":0},"end":{"line":null,"column":-1}},"loc":{"start":{"line":78,"column":0},"end":{"line":78,"column":-1}}},"4":{"name":"AccountsPassword","decl":{"start":{"line":85,"column":2},"end":{"line":85,"column":13}},"loc":{"start":{"line":85,"column":51},"end":{"line":88,"column":3}}},"5":{"name":"(anonymous_19)","decl":{"start":{"line":90,"column":2},"end":{"line":90,"column":17}},"loc":{"start":{"line":90,"column":42},"end":{"line":93,"column":3}}},"6":{"name":"(anonymous_20)","decl":{"start":{"line":95,"column":2},"end":{"line":95,"column":27}},"loc":{"start":{"line":95,"column":53},"end":{"line":112,"column":3}}},"7":{"name":"(anonymous_23)","decl":{"start":{"line":119,"column":2},"end":{"line":119,"column":24}},"loc":{"start":{"line":119,"column":38},"end":{"line":121,"column":3}}},"8":{"name":"(anonymous_24)","decl":{"start":{"line":128,"column":2},"end":{"line":128,"column":27}},"loc":{"start":{"line":128,"column":44},"end":{"line":130,"column":3}}},"9":{"name":"(anonymous_25)","decl":{"start":{"line":142,"column":2},"end":{"line":142,"column":17}},"loc":{"start":{"line":142,"column":69},"end":{"line":147,"column":3}}},"10":{"name":"(anonymous_26)","decl":{"start":{"line":156,"column":2},"end":{"line":156,"column":20}},"loc":{"start":{"line":156,"column":50},"end":{"line":158,"column":3}}},"11":{"name":"(anonymous_27)","decl":{"start":{"line":165,"column":2},"end":{"line":165,"column":26}},"loc":{"start":{"line":165,"column":40},"end":{"line":186,"column":3}}},"12":{"name":"(anonymous_30)","decl":{"start":{"line":176,"column":49},"end":{"line":176,"column":49}},"loc":{"start":{"line":176,"column":64},"end":{"line":176,"column":86}}},"13":{"name":"(anonymous_31)","decl":{"start":{"line":181,"column":42},"end":{"line":181,"column":42}},"loc":{"start":{"line":181,"column":57},"end":{"line":181,"column":95}}},"14":{"name":"(anonymous_32)","decl":{"start":{"line":194,"column":2},"end":{"line":195,"column":3}},"loc":{"start":{"line":197,"column":33},"end":{"line":248,"column":3}}},"15":{"name":"(anonymous_35)","decl":{"start":{"line":212,"column":47},"end":{"line":212,"column":46}},"loc":{"start":{"line":212,"column":48},"end":{"line":212,"column":69}}},"16":{"name":"(anonymous_36)","decl":{"start":{"line":227,"column":29},"end":{"line":227,"column":29}},"loc":{"start":{"line":227,"column":48},"end":{"line":227,"column":66}}},"17":{"name":"(anonymous_37)","decl":{"start":{"line":256,"column":2},"end":{"line":256,"column":26}},"loc":{"start":{"line":256,"column":62},"end":{"line":259,"column":3}}},"18":{"name":"(anonymous_40)","decl":{"start":{"line":268,"column":2},"end":{"line":269,"column":3}},"loc":{"start":{"line":271,"column":23},"end":{"line":276,"column":3}}},"19":{"name":"(anonymous_43)","decl":{"start":{"line":285,"column":2},"end":{"line":285,"column":36}},"loc":{"start":{"line":285,"column":52},"end":{"line":321,"column":3}}},"20":{"name":"(anonymous_46)","decl":{"start":{"line":302,"column":6},"end":{"line":302,"column":6}},"loc":{"start":{"line":302,"column":25},"end":{"line":302,"column":89}}},"21":{"name":"(anonymous_47)","decl":{"start":{"line":330,"column":2},"end":{"line":330,"column":37}},"loc":{"start":{"line":330,"column":53},"end":{"line":356,"column":3}}},"22":{"name":"(anonymous_50)","decl":{"start":{"line":366,"column":2},"end":{"line":366,"column":34}},"loc":{"start":{"line":366,"column":50},"end":{"line":388,"column":3}}},"23":{"name":"(anonymous_53)","decl":{"start":{"line":395,"column":2},"end":{"line":395,"column":25}},"loc":{"start":{"line":395,"column":54},"end":{"line":433,"column":3}}},"24":{"name":"(anonymous_56)","decl":{"start":{"line":423,"column":12},"end":{"line":null,"column":-1}},"loc":{"start":{"line":423,"column":12},"end":{"line":426,"column":7}}},"25":{"name":"(anonymous_59)","decl":{"start":{"line":435,"column":2},"end":{"line":435,"column":23}},"loc":{"start":{"line":435,"column":68},"end":{"line":437,"column":3}}},"26":{"name":"(anonymous_60)","decl":{"start":{"line":439,"column":2},"end":{"line":440,"column":3}},"loc":{"start":{"line":441,"column":26},"end":{"line":487,"column":3}}},"27":{"name":"(anonymous_63)","decl":{"start":{"line":489,"column":2},"end":{"line":489,"column":37}},"loc":{"start":{"line":489,"column":60},"end":{"line":493,"column":3}}},"28":{"name":"(anonymous_66)","decl":{"start":{"line":501,"column":2},"end":{"line":501,"column":28}},"loc":{"start":{"line":501,"column":63},"end":{"line":512,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":65,"column":11},"end":{"line":65,"column":32}},"type":"binary-expr","locations":[{"start":{"line":65,"column":11},"end":{"line":65,"column":32}},{"start":{"line":65,"column":36},"end":{"line":65,"column":50}}]},"1":{"loc":{"start":{"line":72,"column":20},"end":{"line":72,"column":28}},"type":"binary-expr","locations":[{"start":{"line":72,"column":20},"end":{"line":72,"column":28}},{"start":{"line":72,"column":32},"end":{"line":72,"column":56}},{"start":{"line":72,"column":60},"end":{"line":72,"column":88}}]},"2":{"loc":{"start":{"line":85,"column":14},"end":{"line":85,"column":51}},"type":"if","locations":[{"start":{"line":85,"column":14},"end":{"line":85,"column":51}},{"start":{"line":85,"column":14},"end":{"line":85,"column":51}}]},"3":{"loc":{"start":{"line":97,"column":4},"end":{"line":99,"column":5}},"type":"if","locations":[{"start":{"line":97,"column":4},"end":{"line":99,"column":5}},{"start":{"line":97,"column":4},"end":{"line":99,"column":5}}]},"4":{"loc":{"start":{"line":97,"column":8},"end":{"line":97,"column":13}},"type":"binary-expr","locations":[{"start":{"line":97,"column":8},"end":{"line":97,"column":13}},{"start":{"line":97,"column":17},"end":{"line":97,"column":26}}]},"5":{"loc":{"start":{"line":100,"column":4},"end":{"line":102,"column":5}},"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":102,"column":5}},{"start":{"line":100,"column":4},"end":{"line":102,"column":5}}]},"6":{"loc":{"start":{"line":100,"column":9},"end":{"line":100,"column":24}},"type":"binary-expr","locations":[{"start":{"line":100,"column":9},"end":{"line":100,"column":24}},{"start":{"line":100,"column":28},"end":{"line":100,"column":48}},{"start":{"line":100,"column":53},"end":{"line":100,"column":72}}]},"7":{"loc":{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},"type":"if","locations":[{"start":{"line":143,"column":4},"end":{"line":145,"column":5}},{"start":{"line":143,"column":4},"end":{"line":145,"column":5}}]},"8":{"loc":{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},"type":"if","locations":[{"start":{"line":166,"column":4},"end":{"line":168,"column":5}},{"start":{"line":166,"column":4},"end":{"line":168,"column":5}}]},"9":{"loc":{"start":{"line":166,"column":8},"end":{"line":166,"column":14}},"type":"binary-expr","locations":[{"start":{"line":166,"column":8},"end":{"line":166,"column":14}},{"start":{"line":166,"column":18},"end":{"line":166,"column":34}}]},"10":{"loc":{"start":{"line":171,"column":4},"end":{"line":173,"column":5}},"type":"if","locations":[{"start":{"line":171,"column":4},"end":{"line":173,"column":5}},{"start":{"line":171,"column":4},"end":{"line":173,"column":5}}]},"11":{"loc":{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},"type":"if","locations":[{"start":{"line":177,"column":4},"end":{"line":179,"column":5}},{"start":{"line":177,"column":4},"end":{"line":179,"column":5}}]},"12":{"loc":{"start":{"line":177,"column":8},"end":{"line":177,"column":20}},"type":"binary-expr","locations":[{"start":{"line":177,"column":8},"end":{"line":177,"column":20}},{"start":{"line":177,"column":24},"end":{"line":177,"column":97}}]},"13":{"loc":{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},"type":"if","locations":[{"start":{"line":182,"column":4},"end":{"line":184,"column":5}},{"start":{"line":182,"column":4},"end":{"line":184,"column":5}}]},"14":{"loc":{"start":{"line":199,"column":4},"end":{"line":201,"column":5}},"type":"if","locations":[{"start":{"line":199,"column":4},"end":{"line":201,"column":5}},{"start":{"line":199,"column":4},"end":{"line":201,"column":5}}]},"15":{"loc":{"start":{"line":199,"column":8},"end":{"line":199,"column":14}},"type":"binary-expr","locations":[{"start":{"line":199,"column":8},"end":{"line":199,"column":14}},{"start":{"line":199,"column":18},"end":{"line":199,"column":34}}]},"16":{"loc":{"start":{"line":202,"column":4},"end":{"line":204,"column":5}},"type":"if","locations":[{"start":{"line":202,"column":4},"end":{"line":204,"column":5}},{"start":{"line":202,"column":4},"end":{"line":204,"column":5}}]},"17":{"loc":{"start":{"line":202,"column":8},"end":{"line":202,"column":20}},"type":"binary-expr","locations":[{"start":{"line":202,"column":8},"end":{"line":202,"column":20}},{"start":{"line":202,"column":24},"end":{"line":202,"column":46}}]},"18":{"loc":{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},"type":"if","locations":[{"start":{"line":207,"column":4},"end":{"line":209,"column":5}},{"start":{"line":207,"column":4},"end":{"line":209,"column":5}}]},"19":{"loc":{"start":{"line":214,"column":4},"end":{"line":224,"column":5}},"type":"if","locations":[{"start":{"line":214,"column":4},"end":{"line":224,"column":5}},{"start":{"line":214,"column":4},"end":{"line":224,"column":5}}]},"20":{"loc":{"start":{"line":215,"column":6},"end":{"line":215,"column":23}},"type":"binary-expr","locations":[{"start":{"line":215,"column":6},"end":{"line":215,"column":23}},{"start":{"line":216,"column":6},"end":{"line":221,"column":7}}]},"21":{"loc":{"start":{"line":219,"column":12},"end":{"line":219,"column":54}},"type":"cond-expr","locations":[{"start":{"line":219,"column":12},"end":{"line":219,"column":54}},{"start":{"line":220,"column":12},"end":{"line":220,"column":53}}]},"22":{"loc":{"start":{"line":226,"column":19},"end":{"line":226,"column":30}},"type":"binary-expr","locations":[{"start":{"line":226,"column":19},"end":{"line":226,"column":30}},{"start":{"line":226,"column":34},"end":{"line":226,"column":36}}]},"23":{"loc":{"start":{"line":227,"column":4},"end":{"line":229,"column":5}},"type":"if","locations":[{"start":{"line":227,"column":4},"end":{"line":229,"column":5}},{"start":{"line":227,"column":4},"end":{"line":229,"column":5}}]},"24":{"loc":{"start":{"line":243,"column":4},"end":{"line":247,"column":5}},"type":"if","locations":[{"start":{"line":243,"column":4},"end":{"line":247,"column":5}},{"start":{"line":243,"column":4},"end":{"line":247,"column":5}}]},"25":{"loc":{"start":{"line":286,"column":4},"end":{"line":288,"column":5}},"type":"if","locations":[{"start":{"line":286,"column":4},"end":{"line":288,"column":5}},{"start":{"line":286,"column":4},"end":{"line":288,"column":5}}]},"26":{"loc":{"start":{"line":286,"column":8},"end":{"line":286,"column":16}},"type":"binary-expr","locations":[{"start":{"line":286,"column":8},"end":{"line":286,"column":16}},{"start":{"line":286,"column":20},"end":{"line":286,"column":38}}]},"27":{"loc":{"start":{"line":291,"column":4},"end":{"line":297,"column":5}},"type":"if","locations":[{"start":{"line":291,"column":4},"end":{"line":297,"column":5}},{"start":{"line":291,"column":4},"end":{"line":297,"column":5}}]},"28":{"loc":{"start":{"line":293,"column":6},"end":{"line":295,"column":7}},"type":"if","locations":[{"start":{"line":293,"column":6},"end":{"line":295,"column":7}},{"start":{"line":293,"column":6},"end":{"line":295,"column":7}}]},"29":{"loc":{"start":{"line":304,"column":4},"end":{"line":306,"column":5}},"type":"if","locations":[{"start":{"line":304,"column":4},"end":{"line":306,"column":5}},{"start":{"line":304,"column":4},"end":{"line":306,"column":5}}]},"30":{"loc":{"start":{"line":304,"column":8},"end":{"line":304,"column":20}},"type":"binary-expr","locations":[{"start":{"line":304,"column":8},"end":{"line":304,"column":20}},{"start":{"line":304,"column":24},"end":{"line":304,"column":44}}]},"31":{"loc":{"start":{"line":331,"column":4},"end":{"line":333,"column":5}},"type":"if","locations":[{"start":{"line":331,"column":4},"end":{"line":333,"column":5}},{"start":{"line":331,"column":4},"end":{"line":333,"column":5}}]},"32":{"loc":{"start":{"line":331,"column":8},"end":{"line":331,"column":16}},"type":"binary-expr","locations":[{"start":{"line":331,"column":8},"end":{"line":331,"column":16}},{"start":{"line":331,"column":20},"end":{"line":331,"column":38}}]},"33":{"loc":{"start":{"line":336,"column":4},"end":{"line":342,"column":5}},"type":"if","locations":[{"start":{"line":336,"column":4},"end":{"line":342,"column":5}},{"start":{"line":336,"column":4},"end":{"line":342,"column":5}}]},"34":{"loc":{"start":{"line":338,"column":6},"end":{"line":340,"column":7}},"type":"if","locations":[{"start":{"line":338,"column":6},"end":{"line":340,"column":7}},{"start":{"line":338,"column":6},"end":{"line":340,"column":7}}]},"35":{"loc":{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},"type":"if","locations":[{"start":{"line":367,"column":4},"end":{"line":369,"column":5}},{"start":{"line":367,"column":4},"end":{"line":369,"column":5}}]},"36":{"loc":{"start":{"line":367,"column":8},"end":{"line":367,"column":16}},"type":"binary-expr","locations":[{"start":{"line":367,"column":8},"end":{"line":367,"column":16}},{"start":{"line":367,"column":20},"end":{"line":367,"column":38}}]},"37":{"loc":{"start":{"line":372,"column":4},"end":{"line":374,"column":5}},"type":"if","locations":[{"start":{"line":372,"column":4},"end":{"line":374,"column":5}},{"start":{"line":372,"column":4},"end":{"line":374,"column":5}}]},"38":{"loc":{"start":{"line":396,"column":4},"end":{"line":398,"column":5}},"type":"if","locations":[{"start":{"line":396,"column":4},"end":{"line":398,"column":5}},{"start":{"line":396,"column":4},"end":{"line":398,"column":5}}]},"39":{"loc":{"start":{"line":396,"column":8},"end":{"line":396,"column":53}},"type":"binary-expr","locations":[{"start":{"line":396,"column":8},"end":{"line":396,"column":53}},{"start":{"line":396,"column":57},"end":{"line":396,"column":96}}]},"40":{"loc":{"start":{"line":400,"column":4},"end":{"line":402,"column":5}},"type":"if","locations":[{"start":{"line":400,"column":4},"end":{"line":402,"column":5}},{"start":{"line":400,"column":4},"end":{"line":402,"column":5}}]},"41":{"loc":{"start":{"line":404,"column":4},"end":{"line":406,"column":5}},"type":"if","locations":[{"start":{"line":404,"column":4},"end":{"line":406,"column":5}},{"start":{"line":404,"column":4},"end":{"line":406,"column":5}}]},"42":{"loc":{"start":{"line":409,"column":6},"end":{"line":411,"column":7}},"type":"if","locations":[{"start":{"line":409,"column":6},"end":{"line":411,"column":7}},{"start":{"line":409,"column":6},"end":{"line":411,"column":7}}]},"43":{"loc":{"start":{"line":444,"column":8},"end":{"line":444,"column":41}},"type":"cond-expr","locations":[{"start":{"line":444,"column":8},"end":{"line":444,"column":41}},{"start":{"line":445,"column":8},"end":{"line":445,"column":44}}]},"44":{"loc":{"start":{"line":461,"column":4},"end":{"line":467,"column":5}},"type":"if","locations":[{"start":{"line":461,"column":4},"end":{"line":467,"column":5}},{"start":{"line":461,"column":4},"end":{"line":467,"column":5}}]},"45":{"loc":{"start":{"line":464,"column":12},"end":{"line":464,"column":50}},"type":"cond-expr","locations":[{"start":{"line":464,"column":12},"end":{"line":464,"column":50}},{"start":{"line":465,"column":12},"end":{"line":465,"column":44}}]},"46":{"loc":{"start":{"line":470,"column":4},"end":{"line":472,"column":5}},"type":"if","locations":[{"start":{"line":470,"column":4},"end":{"line":472,"column":5}},{"start":{"line":470,"column":4},"end":{"line":472,"column":5}}]},"47":{"loc":{"start":{"line":475,"column":38},"end":{"line":475,"column":75}},"type":"cond-expr","locations":[{"start":{"line":475,"column":38},"end":{"line":475,"column":75}},{"start":{"line":475,"column":78},"end":{"line":475,"column":86}}]},"48":{"loc":{"start":{"line":478,"column":4},"end":{"line":484,"column":5}},"type":"if","locations":[{"start":{"line":478,"column":4},"end":{"line":484,"column":5}},{"start":{"line":478,"column":4},"end":{"line":484,"column":5}}]},"49":{"loc":{"start":{"line":481,"column":12},"end":{"line":481,"column":50}},"type":"cond-expr","locations":[{"start":{"line":481,"column":12},"end":{"line":481,"column":50}},{"start":{"line":482,"column":12},"end":{"line":482,"column":49}}]},"50":{"loc":{"start":{"line":491,"column":48},"end":{"line":491,"column":85}},"type":"cond-expr","locations":[{"start":{"line":491,"column":48},"end":{"line":491,"column":85}},{"start":{"line":491,"column":88},"end":{"line":491,"column":96}}]},"51":{"loc":{"start":{"line":502,"column":4},"end":{"line":510,"column":5}},"type":"if","locations":[{"start":{"line":502,"column":4},"end":{"line":510,"column":5}},{"start":{"line":502,"column":4},"end":{"line":510,"column":5}}]},"52":{"loc":{"start":{"line":502,"column":8},"end":{"line":502,"column":12}},"type":"binary-expr","locations":[{"start":{"line":502,"column":8},"end":{"line":502,"column":12}},{"start":{"line":502,"column":16},"end":{"line":502,"column":25}},{"start":{"line":502,"column":29},"end":{"line":502,"column":35}}]},"53":{"loc":{"start":{"line":503,"column":6},"end":{"line":509,"column":7}},"type":"if","locations":[{"start":{"line":503,"column":6},"end":{"line":509,"column":7}},{"start":{"line":503,"column":6},"end":{"line":509,"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":3,"87":1,"88":2,"89":2,"90":1,"91":1,"92":1,"93":2,"94":1,"95":1,"96":1,"97":1,"98":1,"99":2,"100":5,"101":1,"102":4,"103":4,"104":4,"105":1,"106":0,"107":1,"108":3,"109":4,"110":3,"111":1,"112":2,"113":2,"114":2,"115":2,"116":2,"117":2,"118":2,"119":3,"120":1,"121":2,"122":2,"123":2,"124":1,"125":0,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":2,"134":3,"135":1,"136":2,"137":2,"138":2,"139":1,"140":1,"141":1,"142":1,"143":1,"144":1,"145":1,"146":2,"147":6,"148":1,"149":9,"150":1,"151":1,"152":5,"153":1,"154":4,"155":4,"156":4,"157":4,"158":1,"159":0,"160":3,"161":0,"162":3,"163":3,"164":3,"165":2,"166":2,"167":2,"168":3,"169":3,"170":3,"171":3,"172":2,"173":2,"174":2,"175":3,"176":0,"177":0,"178":0,"179":2,"180":3,"181":2,"182":3,"183":3,"184":0,"185":0,"186":3,"187":0,"188":0,"189":0,"190":3,"191":3,"192":3,"193":1,"194":2,"195":2,"196":2,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":0,"205":2,"206":6,"207":6,"208":6,"209":2,"210":3,"211":3,"212":3,"213":3,"214":3,"215":3,"216":3,"217":3,"218":0,"219":0,"220":3,"221":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":[1,2],"25":[1,4],"26":[5,4],"27":[1,3],"28":[0,1],"29":[1,2],"30":[3,3],"31":[1,2],"32":[3,2],"33":[1,1],"34":[0,1],"35":[1,2],"36":[3,2],"37":[1,1],"38":[1,5],"39":[6,5],"40":[1,4],"41":[1,3],"42":[0,3],"43":[3,0],"44":[1,2],"45":[0,1],"46":[1,1],"47":[0,1],"48":[1,0],"49":[0,1],"50":[0,6],"51":[3,0],"52":[3,3,3],"53":[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":21,"column":2}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{}} | ||
{"/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_12)","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_15)","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_16)","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/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":{}} | ||
@@ -6,0 +6,0 @@ ,"/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]}} |
@@ -25,2 +25,8 @@ import { User, TokenRecord, DatabaseInterface, AuthenticationService, HashAlgorithm, ConnectionInformations, LoginResult } from '@accounts/types'; | ||
errors?: ErrorMessages; | ||
/** | ||
* Notify a user after his password has been changed. | ||
* This email is sent when the user reset his password and when he change it. | ||
* Default to true. | ||
*/ | ||
notifyUserAfterPasswordChanged?: boolean; | ||
returnTokensAfterResetPassword?: boolean; | ||
@@ -27,0 +33,0 @@ validateNewUser?: (user: PasswordCreateUserType) => Promise<PasswordCreateUserType> | PasswordCreateUserType; |
@@ -17,2 +17,3 @@ "use strict"; | ||
passwordEnrollTokenExpiration: 2592000000, | ||
notifyUserAfterPasswordChanged: true, | ||
returnTokensAfterResetPassword: false, | ||
@@ -156,3 +157,3 @@ validateEmail: function (email) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var user, resetTokens, resetTokenRecord, emails, password; | ||
var user, resetTokens, resetTokenRecord, emails, password, address, passwordChangedMail; | ||
return tslib_1.__generator(this, function (_a) { | ||
@@ -204,9 +205,17 @@ switch (_a.label) { | ||
_a.sent(); | ||
if (!this.options.notifyUserAfterPasswordChanged) return [3 /*break*/, 8]; | ||
address = user.emails && user.emails[0].address; | ||
if (!address) { | ||
throw new Error(this.options.errors.noEmailSet); | ||
} | ||
passwordChangedMail = this.server.prepareMail(address, '', this.server.sanitizeUser(user), '', this.server.options.emailTemplates.passwordChanged, this.server.options.emailTemplates.from); | ||
return [4 /*yield*/, this.server.options.sendMail(passwordChangedMail)]; | ||
case 7: | ||
_a.sent(); | ||
_a.label = 8; | ||
case 8: | ||
if (this.options.returnTokensAfterResetPassword) { | ||
return [2 /*return*/, this.server.loginWithUser(user, infos)]; | ||
} | ||
else { | ||
return [2 /*return*/, null]; | ||
} | ||
return [2 /*return*/]; | ||
return [2 /*return*/, null]; | ||
} | ||
@@ -244,3 +253,3 @@ }); | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var password; | ||
var password, user, address, passwordChangedMail; | ||
return tslib_1.__generator(this, function (_a) { | ||
@@ -254,3 +263,22 @@ switch (_a.label) { | ||
password = _a.sent(); | ||
return [2 /*return*/, this.db.setPassword(userId, password)]; | ||
return [4 /*yield*/, this.db.setPassword(userId, password)]; | ||
case 3: | ||
_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); | ||
} | ||
address = user.emails && user.emails[0].address; | ||
if (!address) { | ||
throw new Error(this.options.errors.noEmailSet); | ||
} | ||
passwordChangedMail = this.server.prepareMail(address, '', this.server.sanitizeUser(user), '', this.server.options.emailTemplates.passwordChanged, this.server.options.emailTemplates.from); | ||
return [4 /*yield*/, this.server.options.sendMail(passwordChangedMail)]; | ||
case 5: | ||
_a.sent(); | ||
_a.label = 6; | ||
case 6: return [2 /*return*/]; | ||
} | ||
@@ -257,0 +285,0 @@ }); |
@@ -6,2 +6,3 @@ "use strict"; | ||
noPasswordSet: 'User has no password set', | ||
noEmailSet: 'User has no email set', | ||
incorrectPassword: 'Incorrect password', | ||
@@ -8,0 +9,0 @@ unrecognizedOptionsForLogin: 'Unrecognized options for login request', |
@@ -11,2 +11,6 @@ export interface ErrorMessages { | ||
/** | ||
* Default to 'User has no email set' | ||
*/ | ||
noEmailSet: string; | ||
/** | ||
* Default to 'Incorrect password' | ||
@@ -13,0 +17,0 @@ */ |
{ | ||
"name": "@accounts/password", | ||
"version": "0.11.2", | ||
"version": "0.12.0", | ||
"license": "MIT", | ||
@@ -27,3 +27,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/two-factor": "^0.11.2", | ||
"@accounts/two-factor": "^0.12.0", | ||
"bcryptjs": "^2.4.3", | ||
@@ -34,8 +34,8 @@ "lodash": "^4.17.11", | ||
"devDependencies": { | ||
"@accounts/server": "^0.11.2", | ||
"@accounts/types": "^0.11.2", | ||
"@accounts/server": "^0.12.0", | ||
"@accounts/types": "^0.12.0", | ||
"@types/bcryptjs": "2.4.2", | ||
"@types/jest": "23.3.13", | ||
"@types/lodash": "4.14.120", | ||
"@types/node": "10.12.21", | ||
"@types/lodash": "4.14.121", | ||
"@types/node": "10.12.24", | ||
"jest": "23.6.0", | ||
@@ -42,0 +42,0 @@ "rimraf": "2.6.3" |
@@ -46,2 +46,8 @@ import { trim, isEmpty, pick, isString, isPlainObject, find, includes, defer } from 'lodash'; | ||
errors?: ErrorMessages; | ||
/** | ||
* Notify a user after his password has been changed. | ||
* This email is sent when the user reset his password and when he change it. | ||
* Default to true. | ||
*/ | ||
notifyUserAfterPasswordChanged?: boolean; | ||
returnTokensAfterResetPassword?: boolean; | ||
@@ -64,2 +70,3 @@ validateNewUser?: ( | ||
passwordEnrollTokenExpiration: 2592000000, | ||
notifyUserAfterPasswordChanged: true, | ||
returnTokensAfterResetPassword: false, | ||
@@ -245,7 +252,23 @@ validateEmail(email?: string): boolean { | ||
if (this.options.notifyUserAfterPasswordChanged) { | ||
const address = user.emails && user.emails[0].address; | ||
if (!address) { | ||
throw new Error(this.options.errors.noEmailSet); | ||
} | ||
const passwordChangedMail = this.server.prepareMail( | ||
address, | ||
'', | ||
this.server.sanitizeUser(user), | ||
'', | ||
this.server.options.emailTemplates.passwordChanged, | ||
this.server.options.emailTemplates.from | ||
); | ||
await this.server.options.sendMail(passwordChangedMail); | ||
} | ||
if (this.options.returnTokensAfterResetPassword) { | ||
return this.server.loginWithUser(user, infos); | ||
} else { | ||
return null; | ||
} | ||
return null; | ||
} | ||
@@ -277,4 +300,27 @@ | ||
await this.passwordAuthenticator({ id: userId }, oldPassword); | ||
const password = await bcryptPassword(newPassword); | ||
return this.db.setPassword(userId, password); | ||
await this.db.setPassword(userId, password); | ||
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; | ||
if (!address) { | ||
throw new Error(this.options.errors.noEmailSet); | ||
} | ||
const passwordChangedMail = this.server.prepareMail( | ||
address, | ||
'', | ||
this.server.sanitizeUser(user), | ||
'', | ||
this.server.options.emailTemplates.passwordChanged, | ||
this.server.options.emailTemplates.from | ||
); | ||
await this.server.options.sendMail(passwordChangedMail); | ||
} | ||
} | ||
@@ -281,0 +327,0 @@ |
@@ -6,2 +6,3 @@ import { ErrorMessages } from './types'; | ||
noPasswordSet: 'User has no password set', | ||
noEmailSet: 'User has no email set', | ||
incorrectPassword: 'Incorrect password', | ||
@@ -8,0 +9,0 @@ unrecognizedOptionsForLogin: 'Unrecognized options for login request', |
@@ -11,2 +11,6 @@ export interface ErrorMessages { | ||
/** | ||
* Default to 'User has no email set' | ||
*/ | ||
noEmailSet: string; | ||
/** | ||
* Default to 'Incorrect password' | ||
@@ -13,0 +17,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
310435
2923
+ Added@accounts/two-factor@0.12.0(transitive)
+ Added@accounts/types@0.12.0(transitive)
- Removed@accounts/two-factor@0.11.2(transitive)
- Removed@accounts/types@0.11.2(transitive)
Updated@accounts/two-factor@^0.12.0