wao 0.12.4 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/aoconnect-base.js +307 -167
- package/cjs/armem-base.js +38 -28
- package/cjs/bar.js +260 -193
- package/cjs/hb.js +418 -0
- package/cjs/index.js +7 -0
- package/cjs/lua/aos_mainnet.wasm +0 -0
- package/cjs/server.js +425 -231
- package/cjs/waosm-node/waosm_bg.wasm.js +19 -0
- package/cjs/waosm-node.js +8 -22
- package/cjs/weavedb.js +59 -49
- package/cjs/weavedrive.js +24 -19
- package/esm/aoconnect-base.js +123 -55
- package/esm/armem-base.js +9 -4
- package/esm/bar.js +30 -6
- package/esm/hb.js +121 -0
- package/esm/index.js +2 -1
- package/esm/lua/aos_mainnet.wasm +0 -0
- package/esm/server.js +172 -21
- package/esm/waosm-node/waosm_bg.wasm.js +14 -0
- package/esm/waosm-node.js +6 -22
- package/esm/weavedb.js +15 -11
- package/esm/weavedrive.js +13 -11
- package/package.json +4 -1
- package/esm/.cache/data.mdb +0 -0
- package/esm/.cache/lock.mdb +0 -0
- package/esm/.db/100040/data/1/123.json +0 -1
- package/esm/.db/103252/data/0/13315.json +0 -1
- package/esm/.db/103252/data/1/120.json +0 -1
- package/esm/.db/103252/data/1/123.json +0 -1
- package/esm/.db/105470/data/0/0.json +0 -1
- package/esm/.db/105470/data/1/120.json +0 -1
- package/esm/.db/105470/data/1/123.json +0 -1
- package/esm/.db/105470/data/3/104.json +0 -1
- package/esm/.db/105667/data/ppl/bob.json +0 -1
- package/esm/.db/105869/data/1/120.json +0 -1
- package/esm/.db/105869/data/1/123.json +0 -1
- package/esm/.db/113125/data/1/example.json +0 -1
- package/esm/.db/116234/data/1/123.json +0 -1
- package/esm/.db/119911/data/1/120.json +0 -1
- package/esm/.db/119911/data/1/123.json +0 -1
- package/esm/.db/122989/data/0/0.json +0 -1
- package/esm/.db/122989/data/1/120.json +0 -1
- package/esm/.db/122989/data/1/123.json +0 -1
- package/esm/.db/125755/data/1/123.json +0 -1
- package/esm/.db/126241/data/1/123.json +0 -1
- package/esm/.db/129099/data/1/123.json +0 -1
- package/esm/.db/129781/data/0/14083.json +0 -1
- package/esm/.db/129781/data/1/120.json +0 -1
- package/esm/.db/129781/data/1/123.json +0 -1
- package/esm/.db/129781/data/15/0.json +0 -1
- package/esm/.db/132860/data/0/13315.json +0 -1
- package/esm/.db/132860/data/1/120.json +0 -1
- package/esm/.db/132860/data/1/123.json +0 -1
- package/esm/.db/134721/data/1/123.json +0 -1
- package/esm/.db/137408/data/ppl/bob.json +0 -1
- package/esm/.db/137556/data/1/123.json +0 -1
- package/esm/.db/143417/data/1/123.json +0 -1
- package/esm/.db/143799/data/1/123.json +0 -1
- package/esm/.db/146558/data/0/0.json +0 -1
- package/esm/.db/146558/data/1/120.json +0 -1
- package/esm/.db/146558/data/1/123.json +0 -1
- package/esm/.db/153145/data/1/123.json +0 -1
- package/esm/.db/153912/data/1/example.json +0 -1
- package/esm/.db/154536/data/0/13315.json +0 -1
- package/esm/.db/154536/data/1/120.json +0 -1
- package/esm/.db/154536/data/1/123.json +0 -1
- package/esm/.db/158777/data/1/123.json +0 -1
- package/esm/.db/170678/data/0/13315.json +0 -1
- package/esm/.db/170678/data/1/120.json +0 -1
- package/esm/.db/170678/data/1/123.json +0 -1
- package/esm/.db/17434/data/1/123.json +0 -1
- package/esm/.db/176113/data/1/123.json +0 -1
- package/esm/.db/179669/data/0/13315.json +0 -1
- package/esm/.db/179669/data/1/120.json +0 -1
- package/esm/.db/179669/data/1/123.json +0 -1
- package/esm/.db/183368/data/1/120.json +0 -1
- package/esm/.db/183368/data/1/123.json +0 -1
- package/esm/.db/188491/data/0/14083.json +0 -1
- package/esm/.db/188491/data/1/120.json +0 -1
- package/esm/.db/188491/data/1/123.json +0 -1
- package/esm/.db/188491/data/15/0.json +0 -1
- package/esm/.db/189189/data/ppl/bob.json +0 -1
- package/esm/.db/195025/data/1/120.json +0 -1
- package/esm/.db/195025/data/1/123.json +0 -1
- package/esm/.db/19852/data/1/123.json +0 -1
- package/esm/.db/204968/data/1/123.json +0 -1
- package/esm/.db/207069/data/0/0.json +0 -1
- package/esm/.db/207069/data/1/120.json +0 -1
- package/esm/.db/207069/data/1/123.json +0 -1
- package/esm/.db/211038/data/1/120.json +0 -1
- package/esm/.db/211038/data/1/123.json +0 -1
- package/esm/.db/211580/data/1/120.json +0 -1
- package/esm/.db/211580/data/1/123.json +0 -1
- package/esm/.db/214305/data/0/0.json +0 -1
- package/esm/.db/214305/data/1/120.json +0 -1
- package/esm/.db/214305/data/1/123.json +0 -1
- package/esm/.db/214712/data/0/13315.json +0 -1
- package/esm/.db/214712/data/1/120.json +0 -1
- package/esm/.db/214712/data/1/123.json +0 -1
- package/esm/.db/218886/data/0/14083.json +0 -1
- package/esm/.db/218886/data/1/120.json +0 -1
- package/esm/.db/218886/data/1/123.json +0 -1
- package/esm/.db/218886/data/15/0.json +0 -1
- package/esm/.db/221009/data/1/123.json +0 -1
- package/esm/.db/221818/data/1/120.json +0 -1
- package/esm/.db/221818/data/1/123.json +0 -1
- package/esm/.db/226668/data/0/13315.json +0 -1
- package/esm/.db/226668/data/1/120.json +0 -1
- package/esm/.db/226668/data/1/123.json +0 -1
- package/esm/.db/226981/data/0/123.json +0 -1
- package/esm/.db/235331/data/0/13315.json +0 -1
- package/esm/.db/235331/data/1/120.json +0 -1
- package/esm/.db/235331/data/1/123.json +0 -1
- package/esm/.db/247863/data/1/123.json +0 -1
- package/esm/.db/247918/data/0/0.json +0 -1
- package/esm/.db/247918/data/1/120.json +0 -1
- package/esm/.db/247918/data/1/123.json +0 -1
- package/esm/.db/247918/data/3/104.json +0 -1
- package/esm/.db/250384/data/1/123.json +0 -1
- package/esm/.db/253205/data/1/120.json +0 -1
- package/esm/.db/253205/data/1/123.json +0 -1
- package/esm/.db/26452/data/1/120.json +0 -1
- package/esm/.db/26452/data/1/123.json +0 -1
- package/esm/.db/265430/data/1/120.json +0 -1
- package/esm/.db/265430/data/1/123.json +0 -1
- package/esm/.db/269049/data/0/0.json +0 -1
- package/esm/.db/269049/data/1/120.json +0 -1
- package/esm/.db/269049/data/1/123.json +0 -1
- package/esm/.db/273652/data/0/0.json +0 -1
- package/esm/.db/273652/data/1/120.json +0 -1
- package/esm/.db/273652/data/1/123.json +0 -1
- package/esm/.db/281035/data/0/0.json +0 -1
- package/esm/.db/281035/data/1/120.json +0 -1
- package/esm/.db/281035/data/1/123.json +0 -1
- package/esm/.db/281140/data/0/13315.json +0 -1
- package/esm/.db/281140/data/1/120.json +0 -1
- package/esm/.db/281140/data/1/123.json +0 -1
- package/esm/.db/295732/data/ppl/bob.json +0 -1
- package/esm/.db/296113/data/1/123.json +0 -1
- package/esm/.db/297154/data/0/13315.json +0 -1
- package/esm/.db/297154/data/1/120.json +0 -1
- package/esm/.db/297154/data/1/123.json +0 -1
- package/esm/.db/304770/data/1/120.json +0 -1
- package/esm/.db/304770/data/1/123.json +0 -1
- package/esm/.db/3081/data/0/0.json +0 -1
- package/esm/.db/3081/data/1/120.json +0 -1
- package/esm/.db/3081/data/1/123.json +0 -1
- package/esm/.db/310793/data/1/120.json +0 -1
- package/esm/.db/310793/data/1/123.json +0 -1
- package/esm/.db/317310/data/1/123.json +0 -1
- package/esm/.db/317819/data/1/example.json +0 -1
- package/esm/.db/319464/data/0/0.json +0 -1
- package/esm/.db/319464/data/1/120.json +0 -1
- package/esm/.db/319464/data/1/123.json +0 -1
- package/esm/.db/32053/data/1/120.json +0 -1
- package/esm/.db/32053/data/1/123.json +0 -1
- package/esm/.db/322473/data/ppl/bob.json +0 -1
- package/esm/.db/323300/data/1/123.json +0 -1
- package/esm/.db/323840/data/0/0.json +0 -1
- package/esm/.db/323840/data/1/120.json +0 -1
- package/esm/.db/323840/data/1/123.json +0 -1
- package/esm/.db/328731/data/0/0.json +0 -1
- package/esm/.db/328731/data/1/120.json +0 -1
- package/esm/.db/328731/data/1/123.json +0 -1
- package/esm/.db/334158/data/1/example.json +0 -1
- package/esm/.db/334577/data/1/example.json +0 -1
- package/esm/.db/339914/data/1/123.json +0 -1
- package/esm/.db/34265/data/0/0.json +0 -1
- package/esm/.db/34265/data/1/120.json +0 -1
- package/esm/.db/34265/data/1/123.json +0 -1
- package/esm/.db/346364/data/1/123.json +0 -1
- package/esm/.db/349791/data/0/14083.json +0 -1
- package/esm/.db/349791/data/1/120.json +0 -1
- package/esm/.db/349791/data/1/123.json +0 -1
- package/esm/.db/349791/data/15/0.json +0 -1
- package/esm/.db/350767/data/ppl/bob.json +0 -1
- package/esm/.db/352310/data/0/13315.json +0 -1
- package/esm/.db/352310/data/1/120.json +0 -1
- package/esm/.db/352310/data/1/123.json +0 -1
- package/esm/.db/35438/data/1/123.json +0 -1
- package/esm/.db/354670/data/0/13315.json +0 -1
- package/esm/.db/354670/data/1/120.json +0 -1
- package/esm/.db/354670/data/1/123.json +0 -1
- package/esm/.db/354805/data/0/0.json +0 -1
- package/esm/.db/354805/data/1/120.json +0 -1
- package/esm/.db/354805/data/1/123.json +0 -1
- package/esm/.db/358368/data/1/example.json +0 -1
- package/esm/.db/358831/data/1/123.json +0 -1
- package/esm/.db/360133/data/0/0.json +0 -1
- package/esm/.db/360133/data/1/120.json +0 -1
- package/esm/.db/360133/data/1/123.json +0 -1
- package/esm/.db/367925/data/0/13315.json +0 -1
- package/esm/.db/367925/data/1/120.json +0 -1
- package/esm/.db/367925/data/1/123.json +0 -1
- package/esm/.db/369638/data/1/123.json +0 -1
- package/esm/.db/3700/data/1/120.json +0 -1
- package/esm/.db/3700/data/1/123.json +0 -1
- package/esm/.db/374988/data/0/0.json +0 -1
- package/esm/.db/374988/data/1/120.json +0 -1
- package/esm/.db/374988/data/1/123.json +0 -1
- package/esm/.db/380018/data/1/123.json +0 -1
- package/esm/.db/380021/data/1/123.json +0 -1
- package/esm/.db/386761/data/1/123.json +0 -1
- package/esm/.db/387217/data/0/13315.json +0 -1
- package/esm/.db/387217/data/1/120.json +0 -1
- package/esm/.db/387217/data/1/123.json +0 -1
- package/esm/.db/392652/data/1/123.json +0 -1
- package/esm/.db/392692/data/0/13315.json +0 -1
- package/esm/.db/392692/data/1/120.json +0 -1
- package/esm/.db/392692/data/1/123.json +0 -1
- package/esm/.db/396339/data/1/123.json +0 -1
- package/esm/.db/404348/data/1/123.json +0 -1
- package/esm/.db/405894/data/0/14083.json +0 -1
- package/esm/.db/405894/data/1/120.json +0 -1
- package/esm/.db/405894/data/1/123.json +0 -1
- package/esm/.db/405894/data/15/0.json +0 -1
- package/esm/.db/406165/data/1/example.json +0 -1
- package/esm/.db/407316/data/ppl/bob.json +0 -1
- package/esm/.db/407987/data/1/123.json +0 -1
- package/esm/.db/410181/data/1/123.json +0 -1
- package/esm/.db/411981/data/1/120.json +0 -1
- package/esm/.db/411981/data/1/123.json +0 -1
- package/esm/.db/416278/data/1/120.json +0 -1
- package/esm/.db/416278/data/1/123.json +0 -1
- package/esm/.db/418449/data/1/123.json +0 -1
- package/esm/.db/425620/data/1/120.json +0 -1
- package/esm/.db/425620/data/1/123.json +0 -1
- package/esm/.db/429727/data/1/123.json +0 -1
- package/esm/.db/435030/data/1/123.json +0 -1
- package/esm/.db/444362/data/1/120.json +0 -1
- package/esm/.db/444362/data/1/123.json +0 -1
- package/esm/.db/446985/data/1/123.json +0 -1
- package/esm/.db/451355/data/1/120.json +0 -1
- package/esm/.db/451355/data/1/123.json +0 -1
- package/esm/.db/45640/data/1/123.json +0 -1
- package/esm/.db/46155/data/0/0.json +0 -1
- package/esm/.db/46155/data/0/13315.json +0 -1
- package/esm/.db/46155/data/1/120.json +0 -1
- package/esm/.db/46155/data/1/123.json +0 -1
- package/esm/.db/46528/data/1/123.json +0 -1
- package/esm/.db/466476/data/1/123.json +0 -1
- package/esm/.db/467578/data/0/0.json +0 -1
- package/esm/.db/467578/data/1/120.json +0 -1
- package/esm/.db/467578/data/1/123.json +0 -1
- package/esm/.db/472245/data/1/123.json +0 -1
- package/esm/.db/474238/data/1/example.json +0 -1
- package/esm/.db/477291/data/1/123.json +0 -1
- package/esm/.db/477375/data/1/120.json +0 -1
- package/esm/.db/477375/data/1/123.json +0 -1
- package/esm/.db/479960/data/1/123.json +0 -1
- package/esm/.db/482327/data/1/123.json +0 -1
- package/esm/.db/487117/data/1/example.json +0 -1
- package/esm/.db/495075/data/1/123.json +0 -1
- package/esm/.db/498660/data/1/123.json +0 -1
- package/esm/.db/510578/data/1/123.json +0 -1
- package/esm/.db/514521/data/1/123.json +0 -1
- package/esm/.db/524536/data/1/120.json +0 -1
- package/esm/.db/524536/data/1/123.json +0 -1
- package/esm/.db/52751/data/1/example.json +0 -1
- package/esm/.db/530599/data/ppl/bob.json +0 -1
- package/esm/.db/536579/data/1/123.json +0 -1
- package/esm/.db/539183/data/1/123.json +0 -1
- package/esm/.db/539222/data/1/example.json +0 -1
- package/esm/.db/542071/data/0/0.json +0 -1
- package/esm/.db/542071/data/0/13315.json +0 -1
- package/esm/.db/542071/data/1/120.json +0 -1
- package/esm/.db/542071/data/1/123.json +0 -1
- package/esm/.db/542939/data/ppl/bob.json +0 -1
- package/esm/.db/547077/data/1/123.json +0 -1
- package/esm/.db/548947/data/ppl/bob.json +0 -1
- package/esm/.db/551385/data/0/0.json +0 -1
- package/esm/.db/551385/data/1/120.json +0 -1
- package/esm/.db/551385/data/1/123.json +0 -1
- package/esm/.db/553486/data/0/0.json +0 -1
- package/esm/.db/553486/data/1/120.json +0 -1
- package/esm/.db/553486/data/1/123.json +0 -1
- package/esm/.db/554578/data/1/123.json +0 -1
- package/esm/.db/555963/data/1/123.json +0 -1
- package/esm/.db/556201/data/1/123.json +0 -1
- package/esm/.db/572000/data/1/123.json +0 -1
- package/esm/.db/572151/data/1/123.json +0 -1
- package/esm/.db/573301/data/1/123.json +0 -1
- package/esm/.db/579648/data/0/0.json +0 -1
- package/esm/.db/579648/data/1/120.json +0 -1
- package/esm/.db/579648/data/1/123.json +0 -1
- package/esm/.db/579648/data/3/104.json +0 -1
- package/esm/.db/582311/data/1/example.json +0 -1
- package/esm/.db/587351/data/0/14083.json +0 -1
- package/esm/.db/587351/data/1/120.json +0 -1
- package/esm/.db/587351/data/1/123.json +0 -1
- package/esm/.db/587351/data/15/0.json +0 -1
- package/esm/.db/588867/data/0/0.json +0 -1
- package/esm/.db/588867/data/1/120.json +0 -1
- package/esm/.db/588867/data/1/123.json +0 -1
- package/esm/.db/589730/data/1/123.json +0 -1
- package/esm/.db/591738/data/0/13315.json +0 -1
- package/esm/.db/591738/data/1/120.json +0 -1
- package/esm/.db/591738/data/1/123.json +0 -1
- package/esm/.db/593460/data/1/123.json +0 -1
- package/esm/.db/595304/data/1/123.json +0 -1
- package/esm/.db/595772/data/0/13315.json +0 -1
- package/esm/.db/595772/data/1/120.json +0 -1
- package/esm/.db/595772/data/1/123.json +0 -1
- package/esm/.db/596051/data/0/0.json +0 -1
- package/esm/.db/596051/data/1/120.json +0 -1
- package/esm/.db/596051/data/1/123.json +0 -1
- package/esm/.db/601728/data/1/120.json +0 -1
- package/esm/.db/601728/data/1/123.json +0 -1
- package/esm/.db/619154/data/1/123.json +0 -1
- package/esm/.db/620185/data/1/123.json +0 -1
- package/esm/.db/623179/data/1/123.json +0 -1
- package/esm/.db/623265/data/1/123.json +0 -1
- package/esm/.db/630002/data/1/120.json +0 -1
- package/esm/.db/630002/data/1/123.json +0 -1
- package/esm/.db/631961/data/1/123.json +0 -1
- package/esm/.db/635637/data/0/14083.json +0 -1
- package/esm/.db/635637/data/1/120.json +0 -1
- package/esm/.db/635637/data/1/123.json +0 -1
- package/esm/.db/635637/data/15/0.json +0 -1
- package/esm/.db/636670/data/1/example.json +0 -1
- package/esm/.db/640527/data/0/0.json +0 -1
- package/esm/.db/640527/data/1/120.json +0 -1
- package/esm/.db/640527/data/1/123.json +0 -1
- package/esm/.db/644020/data/0/13315.json +0 -1
- package/esm/.db/644020/data/1/120.json +0 -1
- package/esm/.db/644020/data/1/123.json +0 -1
- package/esm/.db/64462/data/0/14083.json +0 -1
- package/esm/.db/64462/data/1/120.json +0 -1
- package/esm/.db/64462/data/1/123.json +0 -1
- package/esm/.db/64462/data/15/0.json +0 -1
- package/esm/.db/646266/data/1/123.json +0 -1
- package/esm/.db/650764/data/1/120.json +0 -1
- package/esm/.db/650764/data/1/123.json +0 -1
- package/esm/.db/654655/data/0/0.json +0 -1
- package/esm/.db/654655/data/1/120.json +0 -1
- package/esm/.db/654655/data/1/123.json +0 -1
- package/esm/.db/658164/data/1/120.json +0 -1
- package/esm/.db/658164/data/1/123.json +0 -1
- package/esm/.db/65937/data/1/123.json +0 -1
- package/esm/.db/659738/data/0/13315.json +0 -1
- package/esm/.db/659738/data/1/120.json +0 -1
- package/esm/.db/659738/data/1/123.json +0 -1
- package/esm/.db/660517/data/0/13315.json +0 -1
- package/esm/.db/660517/data/1/120.json +0 -1
- package/esm/.db/660517/data/1/123.json +0 -1
- package/esm/.db/664564/data/1/123.json +0 -1
- package/esm/.db/672001/data/1/example.json +0 -1
- package/esm/.db/674620/data/1/123.json +0 -1
- package/esm/.db/67532/data/1/123.json +0 -1
- package/esm/.db/675670/data/1/120.json +0 -1
- package/esm/.db/675670/data/1/123.json +0 -1
- package/esm/.db/686538/data/1/123.json +0 -1
- package/esm/.db/691017/data/1/123.json +0 -1
- package/esm/.db/691716/data/1/120.json +0 -1
- package/esm/.db/691716/data/1/123.json +0 -1
- package/esm/.db/693105/data/0/14083.json +0 -1
- package/esm/.db/693105/data/1/120.json +0 -1
- package/esm/.db/693105/data/1/123.json +0 -1
- package/esm/.db/693105/data/15/0.json +0 -1
- package/esm/.db/694486/data/1/123.json +0 -1
- package/esm/.db/702106/data/1/120.json +0 -1
- package/esm/.db/702106/data/1/123.json +0 -1
- package/esm/.db/7047/data/1/123.json +0 -1
- package/esm/.db/705954/data/0/13315.json +0 -1
- package/esm/.db/705954/data/1/120.json +0 -1
- package/esm/.db/705954/data/1/123.json +0 -1
- package/esm/.db/710967/data/1/120.json +0 -1
- package/esm/.db/710967/data/1/123.json +0 -1
- package/esm/.db/715883/data/0/13315.json +0 -1
- package/esm/.db/715883/data/1/120.json +0 -1
- package/esm/.db/715883/data/1/123.json +0 -1
- package/esm/.db/717358/data/1/120.json +0 -1
- package/esm/.db/717358/data/1/123.json +0 -1
- package/esm/.db/71999/data/0/13315.json +0 -1
- package/esm/.db/71999/data/1/120.json +0 -1
- package/esm/.db/71999/data/1/123.json +0 -1
- package/esm/.db/720364/data/1/123.json +0 -1
- package/esm/.db/727249/data/1/120.json +0 -1
- package/esm/.db/727249/data/1/123.json +0 -1
- package/esm/.db/728258/data/1/example.json +0 -1
- package/esm/.db/728986/data/0/13315.json +0 -1
- package/esm/.db/728986/data/1/120.json +0 -1
- package/esm/.db/728986/data/1/123.json +0 -1
- package/esm/.db/732768/data/1/120.json +0 -1
- package/esm/.db/732768/data/1/123.json +0 -1
- package/esm/.db/733885/data/1/123.json +0 -1
- package/esm/.db/736192/data/0/0.json +0 -1
- package/esm/.db/736192/data/1/120.json +0 -1
- package/esm/.db/736192/data/1/123.json +0 -1
- package/esm/.db/73856/data/0/0.json +0 -1
- package/esm/.db/73856/data/1/120.json +0 -1
- package/esm/.db/73856/data/1/123.json +0 -1
- package/esm/.db/738577/data/1/123.json +0 -1
- package/esm/.db/744844/data/1/123.json +0 -1
- package/esm/.db/745738/data/1/123.json +0 -1
- package/esm/.db/747240/data/1/123.json +0 -1
- package/esm/.db/749115/data/0/0.json +0 -1
- package/esm/.db/749115/data/1/120.json +0 -1
- package/esm/.db/749115/data/1/123.json +0 -1
- package/esm/.db/749514/data/0/0.json +0 -1
- package/esm/.db/749514/data/1/120.json +0 -1
- package/esm/.db/749514/data/1/123.json +0 -1
- package/esm/.db/754982/data/1/123.json +0 -1
- package/esm/.db/765281/data/0/13315.json +0 -1
- package/esm/.db/765281/data/1/120.json +0 -1
- package/esm/.db/765281/data/1/123.json +0 -1
- package/esm/.db/765521/data/0/14083.json +0 -1
- package/esm/.db/765521/data/1/120.json +0 -1
- package/esm/.db/765521/data/1/123.json +0 -1
- package/esm/.db/765521/data/15/0.json +0 -1
- package/esm/.db/766288/data/ppl/bob.json +0 -1
- package/esm/.db/766864/data/1/123.json +0 -1
- package/esm/.db/770788/data/0/14083.json +0 -1
- package/esm/.db/770788/data/1/120.json +0 -1
- package/esm/.db/770788/data/1/123.json +0 -1
- package/esm/.db/770788/data/15/0.json +0 -1
- package/esm/.db/774499/data/1/example.json +0 -1
- package/esm/.db/774617/data/ppl/bob.json +0 -1
- package/esm/.db/775617/data/1/123.json +0 -1
- package/esm/.db/779782/data/1/123.json +0 -1
- package/esm/.db/779921/data/1/123.json +0 -1
- package/esm/.db/782910/data/1/123.json +0 -1
- package/esm/.db/783279/data/0/13315.json +0 -1
- package/esm/.db/783279/data/1/120.json +0 -1
- package/esm/.db/783279/data/1/123.json +0 -1
- package/esm/.db/785515/data/1/123.json +0 -1
- package/esm/.db/791284/data/0/0.json +0 -1
- package/esm/.db/791284/data/1/120.json +0 -1
- package/esm/.db/791284/data/1/123.json +0 -1
- package/esm/.db/791361/data/0/14083.json +0 -1
- package/esm/.db/791361/data/1/120.json +0 -1
- package/esm/.db/791361/data/1/123.json +0 -1
- package/esm/.db/791361/data/15/0.json +0 -1
- package/esm/.db/791754/data/1/120.json +0 -1
- package/esm/.db/791754/data/1/123.json +0 -1
- package/esm/.db/792232/data/0/13315.json +0 -1
- package/esm/.db/792232/data/1/120.json +0 -1
- package/esm/.db/792232/data/1/123.json +0 -1
- package/esm/.db/792777/data/0/13315.json +0 -1
- package/esm/.db/792777/data/1/120.json +0 -1
- package/esm/.db/792777/data/1/123.json +0 -1
- package/esm/.db/793249/data/0/123.json +0 -1
- package/esm/.db/795512/data/0/0.json +0 -1
- package/esm/.db/795512/data/1/120.json +0 -1
- package/esm/.db/795512/data/1/123.json +0 -1
- package/esm/.db/795512/data/3/104.json +0 -1
- package/esm/.db/796663/data/1/123.json +0 -1
- package/esm/.db/797304/data/0/0.json +0 -1
- package/esm/.db/797304/data/1/120.json +0 -1
- package/esm/.db/797304/data/1/123.json +0 -1
- package/esm/.db/797304/data/3/104.json +0 -1
- package/esm/.db/800834/data/1/123.json +0 -1
- package/esm/.db/806421/data/1/120.json +0 -1
- package/esm/.db/806421/data/1/123.json +0 -1
- package/esm/.db/81623/data/0/14083.json +0 -1
- package/esm/.db/81623/data/1/120.json +0 -1
- package/esm/.db/81623/data/1/123.json +0 -1
- package/esm/.db/81623/data/15/0.json +0 -1
- package/esm/.db/81941/data/1/120.json +0 -1
- package/esm/.db/81941/data/1/123.json +0 -1
- package/esm/.db/820340/data/0/0.json +0 -1
- package/esm/.db/820340/data/1/120.json +0 -1
- package/esm/.db/820340/data/1/123.json +0 -1
- package/esm/.db/821932/data/1/120.json +0 -1
- package/esm/.db/821932/data/1/123.json +0 -1
- package/esm/.db/823440/data/1/123.json +0 -1
- package/esm/.db/823889/data/1/120.json +0 -1
- package/esm/.db/823889/data/1/123.json +0 -1
- package/esm/.db/823896/data/1/123.json +0 -1
- package/esm/.db/836077/data/0/14083.json +0 -1
- package/esm/.db/836077/data/1/120.json +0 -1
- package/esm/.db/836077/data/1/123.json +0 -1
- package/esm/.db/836077/data/15/0.json +0 -1
- package/esm/.db/837341/data/1/123.json +0 -1
- package/esm/.db/844882/data/1/123.json +0 -1
- package/esm/.db/847654/data/1/example.json +0 -1
- package/esm/.db/856010/data/0/13315.json +0 -1
- package/esm/.db/856010/data/1/120.json +0 -1
- package/esm/.db/856010/data/1/123.json +0 -1
- package/esm/.db/856047/data/1/120.json +0 -1
- package/esm/.db/856047/data/1/123.json +0 -1
- package/esm/.db/856820/data/1/123.json +0 -1
- package/esm/.db/857266/data/1/123.json +0 -1
- package/esm/.db/86017/data/0/13315.json +0 -1
- package/esm/.db/86017/data/1/120.json +0 -1
- package/esm/.db/86017/data/1/123.json +0 -1
- package/esm/.db/862600/data/1/120.json +0 -1
- package/esm/.db/862600/data/1/123.json +0 -1
- package/esm/.db/871866/data/0/13315.json +0 -1
- package/esm/.db/871866/data/1/120.json +0 -1
- package/esm/.db/871866/data/1/123.json +0 -1
- package/esm/.db/875359/data/0/0.json +0 -1
- package/esm/.db/875359/data/1/120.json +0 -1
- package/esm/.db/875359/data/1/123.json +0 -1
- package/esm/.db/875359/data/3/104.json +0 -1
- package/esm/.db/876330/data/1/example.json +0 -1
- package/esm/.db/880182/data/1/123.json +0 -1
- package/esm/.db/882138/data/0/0.json +0 -1
- package/esm/.db/882138/data/1/120.json +0 -1
- package/esm/.db/882138/data/1/123.json +0 -1
- package/esm/.db/882722/data/1/example.json +0 -1
- package/esm/.db/885449/data/ppl/bob.json +0 -1
- package/esm/.db/893417/data/1/example.json +0 -1
- package/esm/.db/897575/data/1/example.json +0 -1
- package/esm/.db/897832/data/0/13315.json +0 -1
- package/esm/.db/897832/data/1/120.json +0 -1
- package/esm/.db/897832/data/1/123.json +0 -1
- package/esm/.db/898043/data/0/0.json +0 -1
- package/esm/.db/898043/data/1/120.json +0 -1
- package/esm/.db/898043/data/1/123.json +0 -1
- package/esm/.db/898201/data/ppl/bob.json +0 -1
- package/esm/.db/900442/data/1/123.json +0 -1
- package/esm/.db/900800/data/0/0.json +0 -1
- package/esm/.db/900800/data/1/120.json +0 -1
- package/esm/.db/900800/data/1/123.json +0 -1
- package/esm/.db/910535/data/1/120.json +0 -1
- package/esm/.db/910535/data/1/123.json +0 -1
- package/esm/.db/911132/data/1/120.json +0 -1
- package/esm/.db/911132/data/1/123.json +0 -1
- package/esm/.db/913152/data/1/120.json +0 -1
- package/esm/.db/913152/data/1/123.json +0 -1
- package/esm/.db/91378/data/1/123.json +0 -1
- package/esm/.db/918654/data/1/example.json +0 -1
- package/esm/.db/929039/data/ppl/bob.json +0 -1
- package/esm/.db/932648/data/1/123.json +0 -1
- package/esm/.db/936016/data/1/example.json +0 -1
- package/esm/.db/936843/data/1/123.json +0 -1
- package/esm/.db/940099/data/1/example.json +0 -1
- package/esm/.db/941807/data/1/120.json +0 -1
- package/esm/.db/941807/data/1/123.json +0 -1
- package/esm/.db/941934/data/0/14083.json +0 -1
- package/esm/.db/941934/data/1/120.json +0 -1
- package/esm/.db/941934/data/1/123.json +0 -1
- package/esm/.db/941934/data/15/0.json +0 -1
- package/esm/.db/943744/data/1/120.json +0 -1
- package/esm/.db/943744/data/1/123.json +0 -1
- package/esm/.db/955716/data/1/123.json +0 -1
- package/esm/.db/956030/data/1/123.json +0 -1
- package/esm/.db/956395/data/1/120.json +0 -1
- package/esm/.db/956395/data/1/123.json +0 -1
- package/esm/.db/956498/data/1/123.json +0 -1
- package/esm/.db/957435/data/1/123.json +0 -1
- package/esm/.db/960302/data/1/example.json +0 -1
- package/esm/.db/964149/data/0/0.json +0 -1
- package/esm/.db/964149/data/1/120.json +0 -1
- package/esm/.db/964149/data/1/123.json +0 -1
- package/esm/.db/965213/data/0/13315.json +0 -1
- package/esm/.db/965213/data/1/120.json +0 -1
- package/esm/.db/965213/data/1/123.json +0 -1
- package/esm/.db/966774/data/1/120.json +0 -1
- package/esm/.db/966774/data/1/123.json +0 -1
- package/esm/.db/972484/data/1/123.json +0 -1
- package/esm/.db/973155/data/1/123.json +0 -1
- package/esm/.db/973642/data/1/123.json +0 -1
- package/esm/.db/975603/data/0/0.json +0 -1
- package/esm/.db/975603/data/1/120.json +0 -1
- package/esm/.db/975603/data/1/123.json +0 -1
- package/esm/.db/979812/data/0/13315.json +0 -1
- package/esm/.db/979812/data/1/120.json +0 -1
- package/esm/.db/979812/data/1/123.json +0 -1
- package/esm/.db/985666/data/1/example.json +0 -1
- package/esm/.db/986784/data/0/0.json +0 -1
- package/esm/.db/986784/data/1/120.json +0 -1
- package/esm/.db/986784/data/1/123.json +0 -1
- package/esm/.db/988463/data/1/120.json +0 -1
- package/esm/.db/988463/data/1/123.json +0 -1
- package/esm/.db/990386/data/1/120.json +0 -1
- package/esm/.db/990386/data/1/123.json +0 -1
- package/esm/.db/994488/data/0/0.json +0 -1
- package/esm/.db/994488/data/1/120.json +0 -1
- package/esm/.db/994488/data/1/123.json +0 -1
- package/esm/.db/999130/data/ppl/bob.json +0 -1
package/cjs/hb.js
ADDED
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _aoconnectWao = require("aoconnect-wao");
|
|
8
|
+
var _ramda = require("ramda");
|
|
9
|
+
var _nodeCrypto = require("node:crypto");
|
|
10
|
+
var _utils = require("./utils.js");
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
13
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
14
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
|
+
function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
|
|
16
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
17
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
18
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
19
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
23
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
24
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
25
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
26
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
28
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
|
+
var HB = /*#__PURE__*/function () {
|
|
30
|
+
function HB() {
|
|
31
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
32
|
+
_ref$url = _ref.url,
|
|
33
|
+
url = _ref$url === void 0 ? "http://localhost:10000" : _ref$url;
|
|
34
|
+
_classCallCheck(this, HB);
|
|
35
|
+
this.url = url;
|
|
36
|
+
}
|
|
37
|
+
return _createClass(HB, [{
|
|
38
|
+
key: "metrics",
|
|
39
|
+
value: function () {
|
|
40
|
+
var _metrics2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
41
|
+
var txt, parts, index, _metrics, vals, desc, _iterator, _step, v, _v$split, _v$split2, _, type, name, rest, _v$split3, _v$split4, _name, _rest, _rest$split, _rest$split2, params, val, _params, _iterator2, _step2, _v, _v$trim$split, _v$trim$split2, key, _val, _v$split5, _v$split6, _name2, _val2;
|
|
42
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
43
|
+
while (1) switch (_context.prev = _context.next) {
|
|
44
|
+
case 0:
|
|
45
|
+
_context.next = 2;
|
|
46
|
+
return fetch("".concat(this.url, "/metrics")).then(function (r) {
|
|
47
|
+
return r.text();
|
|
48
|
+
});
|
|
49
|
+
case 2:
|
|
50
|
+
txt = _context.sent;
|
|
51
|
+
parts = txt.split(/\r?\n/);
|
|
52
|
+
index = 0;
|
|
53
|
+
_metrics = {};
|
|
54
|
+
vals = [];
|
|
55
|
+
desc = [];
|
|
56
|
+
_iterator = _createForOfIteratorHelper(parts);
|
|
57
|
+
try {
|
|
58
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
59
|
+
v = _step.value;
|
|
60
|
+
if (/^# /.test(v)) {
|
|
61
|
+
_v$split = v.split(" "), _v$split2 = _toArray(_v$split), _ = _v$split2[0], type = _v$split2[1], name = _v$split2[2], rest = _v$split2.slice(3);
|
|
62
|
+
if (!_metrics[name]) _metrics[name] = {
|
|
63
|
+
index: ++index,
|
|
64
|
+
values: []
|
|
65
|
+
};
|
|
66
|
+
_metrics[name][type] = rest.join(" ");
|
|
67
|
+
} else if (v !== "") {
|
|
68
|
+
if (/{/.test(v)) {
|
|
69
|
+
_v$split3 = v.split("{"), _v$split4 = _slicedToArray(_v$split3, 2), _name = _v$split4[0], _rest = _v$split4[1];
|
|
70
|
+
if (!_metrics[_name]) _metrics[_name] = {
|
|
71
|
+
index: ++index,
|
|
72
|
+
values: []
|
|
73
|
+
};
|
|
74
|
+
_rest$split = _rest.split("}"), _rest$split2 = _slicedToArray(_rest$split, 2), params = _rest$split2[0], val = _rest$split2[1];
|
|
75
|
+
_params = {};
|
|
76
|
+
_iterator2 = _createForOfIteratorHelper(params.split(","));
|
|
77
|
+
try {
|
|
78
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
79
|
+
_v = _step2.value;
|
|
80
|
+
_v$trim$split = _v.trim().split("="), _v$trim$split2 = _slicedToArray(_v$trim$split, 2), key = _v$trim$split2[0], _val = _v$trim$split2[1];
|
|
81
|
+
_params[key] = _val.replace(/"/g, "");
|
|
82
|
+
}
|
|
83
|
+
} catch (err) {
|
|
84
|
+
_iterator2.e(err);
|
|
85
|
+
} finally {
|
|
86
|
+
_iterator2.f();
|
|
87
|
+
}
|
|
88
|
+
_metrics[_name].values.push({
|
|
89
|
+
value: val.trim(),
|
|
90
|
+
params: _params
|
|
91
|
+
});
|
|
92
|
+
} else {
|
|
93
|
+
_v$split5 = v.split(" "), _v$split6 = _slicedToArray(_v$split5, 2), _name2 = _v$split6[0], _val2 = _v$split6[1];
|
|
94
|
+
if (!_metrics[_name2]) _metrics[_name2] = {
|
|
95
|
+
index: ++index,
|
|
96
|
+
values: []
|
|
97
|
+
};
|
|
98
|
+
_metrics[_name2].values.push({
|
|
99
|
+
value: _val2
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_iterator.e(err);
|
|
106
|
+
} finally {
|
|
107
|
+
_iterator.f();
|
|
108
|
+
}
|
|
109
|
+
return _context.abrupt("return", _metrics);
|
|
110
|
+
case 11:
|
|
111
|
+
case "end":
|
|
112
|
+
return _context.stop();
|
|
113
|
+
}
|
|
114
|
+
}, _callee, this);
|
|
115
|
+
}));
|
|
116
|
+
function metrics() {
|
|
117
|
+
return _metrics2.apply(this, arguments);
|
|
118
|
+
}
|
|
119
|
+
return metrics;
|
|
120
|
+
}()
|
|
121
|
+
}, {
|
|
122
|
+
key: "info",
|
|
123
|
+
value: function () {
|
|
124
|
+
var _info = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
125
|
+
var txt;
|
|
126
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
127
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
128
|
+
case 0:
|
|
129
|
+
_context2.next = 2;
|
|
130
|
+
return fetch("".concat(this.url, "/~meta@1.0/info/serialize~json@1.0")).then(function (r) {
|
|
131
|
+
return r.json();
|
|
132
|
+
});
|
|
133
|
+
case 2:
|
|
134
|
+
txt = _context2.sent;
|
|
135
|
+
return _context2.abrupt("return", txt);
|
|
136
|
+
case 4:
|
|
137
|
+
case "end":
|
|
138
|
+
return _context2.stop();
|
|
139
|
+
}
|
|
140
|
+
}, _callee2, this);
|
|
141
|
+
}));
|
|
142
|
+
function info() {
|
|
143
|
+
return _info.apply(this, arguments);
|
|
144
|
+
}
|
|
145
|
+
return info;
|
|
146
|
+
}()
|
|
147
|
+
}, {
|
|
148
|
+
key: "init",
|
|
149
|
+
value: function () {
|
|
150
|
+
var _init = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(jwk) {
|
|
151
|
+
var _connect, request;
|
|
152
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
153
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
154
|
+
case 0:
|
|
155
|
+
_context3.next = 2;
|
|
156
|
+
return this.info();
|
|
157
|
+
case 2:
|
|
158
|
+
this._info = _context3.sent;
|
|
159
|
+
_connect = (0, _aoconnectWao.connect)({
|
|
160
|
+
MODE: "mainnet",
|
|
161
|
+
URL: this.url,
|
|
162
|
+
device: "",
|
|
163
|
+
signer: (0, _aoconnectWao.createSigner)(jwk)
|
|
164
|
+
}), request = _connect.request;
|
|
165
|
+
this._request = request;
|
|
166
|
+
return _context3.abrupt("return", this);
|
|
167
|
+
case 6:
|
|
168
|
+
case "end":
|
|
169
|
+
return _context3.stop();
|
|
170
|
+
}
|
|
171
|
+
}, _callee3, this);
|
|
172
|
+
}));
|
|
173
|
+
function init(_x) {
|
|
174
|
+
return _init.apply(this, arguments);
|
|
175
|
+
}
|
|
176
|
+
return init;
|
|
177
|
+
}()
|
|
178
|
+
}, {
|
|
179
|
+
key: "process",
|
|
180
|
+
value: function () {
|
|
181
|
+
var _process = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
182
|
+
var _ref2,
|
|
183
|
+
_ref2$tags,
|
|
184
|
+
tags,
|
|
185
|
+
_ref2$data,
|
|
186
|
+
data,
|
|
187
|
+
_args4 = arguments;
|
|
188
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
189
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
190
|
+
case 0:
|
|
191
|
+
_ref2 = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {}, _ref2$tags = _ref2.tags, tags = _ref2$tags === void 0 ? {} : _ref2$tags, _ref2$data = _ref2.data, data = _ref2$data === void 0 ? "1984" : _ref2$data;
|
|
192
|
+
tags = (0, _ramda.mergeLeft)(tags, {
|
|
193
|
+
data: data,
|
|
194
|
+
Type: "Process",
|
|
195
|
+
"Data-Protocol": "ao",
|
|
196
|
+
Variant: "ao.N.1",
|
|
197
|
+
scheduler: this._info.address,
|
|
198
|
+
authority: this._info.address,
|
|
199
|
+
"scheduler-location": this.info.address,
|
|
200
|
+
"random-seed": (0, _nodeCrypto.randomBytes)(16).toString("hex"),
|
|
201
|
+
module: "JArYBF-D8q2OmZ4Mok00sD2Y_6SYEQ7Hjx-6VZ_jl3g",
|
|
202
|
+
device: "process@1.0",
|
|
203
|
+
"scheduler-device": "scheduler@1.0",
|
|
204
|
+
"execution-device": "genesis-wasm@1.0"
|
|
205
|
+
});
|
|
206
|
+
_context4.next = 4;
|
|
207
|
+
return this.post({
|
|
208
|
+
tags: tags
|
|
209
|
+
});
|
|
210
|
+
case 4:
|
|
211
|
+
return _context4.abrupt("return", _context4.sent);
|
|
212
|
+
case 5:
|
|
213
|
+
case "end":
|
|
214
|
+
return _context4.stop();
|
|
215
|
+
}
|
|
216
|
+
}, _callee4, this);
|
|
217
|
+
}));
|
|
218
|
+
function process() {
|
|
219
|
+
return _process.apply(this, arguments);
|
|
220
|
+
}
|
|
221
|
+
return process;
|
|
222
|
+
}()
|
|
223
|
+
}, {
|
|
224
|
+
key: "schedule",
|
|
225
|
+
value: function () {
|
|
226
|
+
var _schedule = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
227
|
+
var _ref3,
|
|
228
|
+
_ref3$tags,
|
|
229
|
+
tags,
|
|
230
|
+
data,
|
|
231
|
+
process,
|
|
232
|
+
_ref3$action,
|
|
233
|
+
action,
|
|
234
|
+
_args5 = arguments;
|
|
235
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
236
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
237
|
+
case 0:
|
|
238
|
+
_ref3 = _args5.length > 0 && _args5[0] !== undefined ? _args5[0] : {}, _ref3$tags = _ref3.tags, tags = _ref3$tags === void 0 ? {} : _ref3$tags, data = _ref3.data, process = _ref3.process, _ref3$action = _ref3.action, action = _ref3$action === void 0 ? "Eval" : _ref3$action;
|
|
239
|
+
tags = (0, _ramda.mergeLeft)(tags, {
|
|
240
|
+
path: "".concat(process, "/schedule"),
|
|
241
|
+
type: "Message",
|
|
242
|
+
action: action,
|
|
243
|
+
data: data,
|
|
244
|
+
"Data-Protocol": "ao",
|
|
245
|
+
Variant: "ao.N.1"
|
|
246
|
+
});
|
|
247
|
+
_context5.next = 4;
|
|
248
|
+
return this.post({
|
|
249
|
+
tags: tags
|
|
250
|
+
});
|
|
251
|
+
case 4:
|
|
252
|
+
return _context5.abrupt("return", _context5.sent.slot.text());
|
|
253
|
+
case 5:
|
|
254
|
+
case "end":
|
|
255
|
+
return _context5.stop();
|
|
256
|
+
}
|
|
257
|
+
}, _callee5, this);
|
|
258
|
+
}));
|
|
259
|
+
function schedule() {
|
|
260
|
+
return _schedule.apply(this, arguments);
|
|
261
|
+
}
|
|
262
|
+
return schedule;
|
|
263
|
+
}()
|
|
264
|
+
}, {
|
|
265
|
+
key: "compute",
|
|
266
|
+
value: function () {
|
|
267
|
+
var _compute = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
268
|
+
var _ref4,
|
|
269
|
+
_ref4$tags,
|
|
270
|
+
tags,
|
|
271
|
+
process,
|
|
272
|
+
slot,
|
|
273
|
+
_args6 = arguments;
|
|
274
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
275
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
276
|
+
case 0:
|
|
277
|
+
_ref4 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref4$tags = _ref4.tags, tags = _ref4$tags === void 0 ? {} : _ref4$tags, process = _ref4.process, slot = _ref4.slot;
|
|
278
|
+
_context6.next = 3;
|
|
279
|
+
return this.request({
|
|
280
|
+
method: "GET",
|
|
281
|
+
path: "/".concat(process, "/compute&slot+integer=").concat(slot, "/results/json")
|
|
282
|
+
});
|
|
283
|
+
case 3:
|
|
284
|
+
return _context6.abrupt("return", _context6.sent);
|
|
285
|
+
case 4:
|
|
286
|
+
case "end":
|
|
287
|
+
return _context6.stop();
|
|
288
|
+
}
|
|
289
|
+
}, _callee6, this);
|
|
290
|
+
}));
|
|
291
|
+
function compute() {
|
|
292
|
+
return _compute.apply(this, arguments);
|
|
293
|
+
}
|
|
294
|
+
return compute;
|
|
295
|
+
}()
|
|
296
|
+
}, {
|
|
297
|
+
key: "dryrun",
|
|
298
|
+
value: function () {
|
|
299
|
+
var _dryrun = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
300
|
+
var _ref5,
|
|
301
|
+
_ref5$tags,
|
|
302
|
+
tags,
|
|
303
|
+
process,
|
|
304
|
+
action,
|
|
305
|
+
_args7 = arguments;
|
|
306
|
+
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
|
307
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
308
|
+
case 0:
|
|
309
|
+
_ref5 = _args7.length > 0 && _args7[0] !== undefined ? _args7[0] : {}, _ref5$tags = _ref5.tags, tags = _ref5$tags === void 0 ? {} : _ref5$tags, process = _ref5.process, action = _ref5.action;
|
|
310
|
+
if (typeof action === "string") tags.Action = action;
|
|
311
|
+
_context7.next = 4;
|
|
312
|
+
return fetch("".concat(this.url, "/~relay@1.0/call?relay-method=POST&relay-path=/dry-run?process-id=").concat(process, "/&content-type=application/json&body=").concat(JSON.stringify({
|
|
313
|
+
Tags: (0, _utils.buildTags)(tags)
|
|
314
|
+
}))).then(function (r) {
|
|
315
|
+
return r.json();
|
|
316
|
+
});
|
|
317
|
+
case 4:
|
|
318
|
+
return _context7.abrupt("return", _context7.sent);
|
|
319
|
+
case 5:
|
|
320
|
+
case "end":
|
|
321
|
+
return _context7.stop();
|
|
322
|
+
}
|
|
323
|
+
}, _callee7, this);
|
|
324
|
+
}));
|
|
325
|
+
function dryrun() {
|
|
326
|
+
return _dryrun.apply(this, arguments);
|
|
327
|
+
}
|
|
328
|
+
return dryrun;
|
|
329
|
+
}()
|
|
330
|
+
}, {
|
|
331
|
+
key: "get",
|
|
332
|
+
value: function () {
|
|
333
|
+
var _get = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref6) {
|
|
334
|
+
var device, _ref6$path, path;
|
|
335
|
+
return _regeneratorRuntime().wrap(function _callee8$(_context8) {
|
|
336
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
337
|
+
case 0:
|
|
338
|
+
device = _ref6.device, _ref6$path = _ref6.path, path = _ref6$path === void 0 ? "~meta@1.0/info" : _ref6$path;
|
|
339
|
+
_context8.next = 3;
|
|
340
|
+
return this.request({
|
|
341
|
+
device: device,
|
|
342
|
+
path: path,
|
|
343
|
+
method: "GET"
|
|
344
|
+
});
|
|
345
|
+
case 3:
|
|
346
|
+
return _context8.abrupt("return", _context8.sent.body);
|
|
347
|
+
case 4:
|
|
348
|
+
case "end":
|
|
349
|
+
return _context8.stop();
|
|
350
|
+
}
|
|
351
|
+
}, _callee8, this);
|
|
352
|
+
}));
|
|
353
|
+
function get(_x2) {
|
|
354
|
+
return _get.apply(this, arguments);
|
|
355
|
+
}
|
|
356
|
+
return get;
|
|
357
|
+
}()
|
|
358
|
+
}, {
|
|
359
|
+
key: "post",
|
|
360
|
+
value: function () {
|
|
361
|
+
var _post = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_ref7) {
|
|
362
|
+
var device, tags, _ref7$path, path;
|
|
363
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
364
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
365
|
+
case 0:
|
|
366
|
+
device = _ref7.device, tags = _ref7.tags, _ref7$path = _ref7.path, path = _ref7$path === void 0 ? "/schedule" : _ref7$path;
|
|
367
|
+
_context9.next = 3;
|
|
368
|
+
return this.request({
|
|
369
|
+
tags: tags,
|
|
370
|
+
device: device,
|
|
371
|
+
path: path,
|
|
372
|
+
method: "POST"
|
|
373
|
+
});
|
|
374
|
+
case 3:
|
|
375
|
+
return _context9.abrupt("return", _context9.sent);
|
|
376
|
+
case 4:
|
|
377
|
+
case "end":
|
|
378
|
+
return _context9.stop();
|
|
379
|
+
}
|
|
380
|
+
}, _callee9, this);
|
|
381
|
+
}));
|
|
382
|
+
function post(_x3) {
|
|
383
|
+
return _post.apply(this, arguments);
|
|
384
|
+
}
|
|
385
|
+
return post;
|
|
386
|
+
}()
|
|
387
|
+
}, {
|
|
388
|
+
key: "request",
|
|
389
|
+
value: function () {
|
|
390
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_ref8) {
|
|
391
|
+
var device, tags, _ref8$method, method, _ref8$path, path, _tags;
|
|
392
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
393
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
394
|
+
case 0:
|
|
395
|
+
device = _ref8.device, tags = _ref8.tags, _ref8$method = _ref8.method, method = _ref8$method === void 0 ? "POST" : _ref8$method, _ref8$path = _ref8.path, path = _ref8$path === void 0 ? "/schedule" : _ref8$path;
|
|
396
|
+
_tags = (0, _ramda.mergeLeft)(tags, {
|
|
397
|
+
path: path,
|
|
398
|
+
method: method
|
|
399
|
+
});
|
|
400
|
+
if (device) _tags.device = device;
|
|
401
|
+
_context10.next = 5;
|
|
402
|
+
return this._request(_tags);
|
|
403
|
+
case 5:
|
|
404
|
+
return _context10.abrupt("return", _context10.sent);
|
|
405
|
+
case 6:
|
|
406
|
+
case "end":
|
|
407
|
+
return _context10.stop();
|
|
408
|
+
}
|
|
409
|
+
}, _callee10, this);
|
|
410
|
+
}));
|
|
411
|
+
function request(_x4) {
|
|
412
|
+
return _request.apply(this, arguments);
|
|
413
|
+
}
|
|
414
|
+
return request;
|
|
415
|
+
}()
|
|
416
|
+
}]);
|
|
417
|
+
}();
|
|
418
|
+
var _default = exports["default"] = HB;
|
package/cjs/index.js
CHANGED
|
@@ -21,7 +21,14 @@ Object.defineProperty(exports, "GQL", {
|
|
|
21
21
|
return _gql["default"];
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "HB", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _hb["default"];
|
|
28
|
+
}
|
|
29
|
+
});
|
|
24
30
|
var _ar = _interopRequireDefault(require("./ar.js"));
|
|
25
31
|
var _ao = _interopRequireDefault(require("./ao.js"));
|
|
32
|
+
var _hb = _interopRequireDefault(require("./hb.js"));
|
|
26
33
|
var _gql = _interopRequireDefault(require("./gql.js"));
|
|
27
34
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
Binary file
|