{"versions":{"1.0.6":{"name":"apphook","version":"1.0.6","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"1b1f6e98693d866d28a9298b3bc0ce92970b07ce","_id":"apphook@1.0.6","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-2f1xHWNjpalU+T8c5grU3JevUcIGS/++TThAsJG+VBKJXQnZNqmdCajtKfyqFhIN9VmVXt3ykqOxn12iWrRbzA==","shasum":"739cd96bc3e9acbc6016f81d42666d5209fc844a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.6.tgz","fileCount":24,"unpackedSize":32199,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1wb45GZHsdrFIhA9REeze36eGgemYqQatLU/X8yGRcAiEAt7fSKUrrjOx4DgEHlPZs+fOFG3xvdrXEXKMz2iayPnw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVfGnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4YRAAoS8HO8sxwy3m4irefHPVs53fQq2glxSp5LWPobKKprMVDh9P\r\nzoqGRJkER3Efv1fZYsnBZJuEHWtXf6//3HK4GTMafiAohT8mZDyUFqQys1D6\r\n65y+irTFfokvGmQ0wphfhbDxB5jJ+0roFgZp88pXSx3MyV2uDZ8dkvUGNble\r\nCOFlMTbScno4nPlrbY1Qpy/KqFmTY8nRYAnBWpH4mQHcKuCDSWgNnEpLV9ap\r\nWbwP/3alvDK2PGm47sT+m1whlYloMPV40COKf1DJ9XM1DXapi2nxush2Klfn\r\nWtBEVjbRKhKGCWdCwmEh9fJm1fVSgu4Emy1kODkMF7Vwa6keAEXRikhTwltH\r\nLOl3NjzkAmqP84gBoZJD1Q4NiqP064/eMbE45ot+bsW0lgsnRdWPtxsq00IS\r\nO2P5G86/KKk+PQSBAmqiHrRyTu7f7M6mGMH+ysrvY09Vr53Z/VaJQapta3dT\r\nyDg8b1BUfQM1GnRx4sDwH0cboHarV6gA5Y5J3Pj9uXrArSe2jYFuKZ0zEQux\r\n6vmJy2sNi+yorYdSiH92OMk+sNHYj9AOgVcjElRoQhHWLoyoaSh/XFyYvKw6\r\nWkYxNu6AwYxwtjfk7IZK232UZF14aSOiCEaSOtL/oBQwPWCBap9YSEp0hkLX\r\n5hSzpcmDJtNz5fjGFvMcAKOriVDFVV44gmE=\r\n=Gyf2\r\n-----END PGP SIGNATURE-----\r\n","size":8769},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.6_1666576807240_0.7435098926633936"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-24T02:00:17.134Z","contributors":[]},"1.0.5":{"name":"apphook","version":"1.0.5","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"e8229c6d47e340a38fb49af5edf245ccc6745ced","_id":"apphook@1.0.5","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-UfTAdxrTY7nY7trF9UcmV07Tdg3SHm/Bc8aIfWfq5x6TEU0NP/1nCtjL7AvPKi1y5K6uAaV6GVTw6VraNEZxHw==","shasum":"2951ee358cea48bb06b6d2da980619a07b16f818","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.5.tgz","fileCount":3,"unpackedSize":6343,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0VN9XnI6cFSzOh/V/1Qi0zqn1cHxLgsS+UMLvFhSjqQIgZqJAWP8fjqGLMZsxV0xpJbLAAO2w7ghTQqersMjY4pQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUqIkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrgjg/+OYhspAt20f+RpzNOBzNKsSOrQkyv+6pqioGsR3PIGtIbPFR9\r\n7kulyiSzU7BDUuNxKGeAa/ATd9/QS4bCYdNtCz1MskAKZApaCNRc2gvd2SX5\r\nQt9IdVSTV3ezWXnR0p8j3GaY0NlrZgZPZA6N0UQm6hhQhki569NldE2ry/8H\r\nVPptvQ7/GY/hCl0WQAX6HUpRxEklwBMHDg1obxmz3Y9ixcE3U/qWv/wR8SHk\r\nFd9PPWf9DZWgpW+ta89ubUycBQHM8RbZpwK6mao2TUj7iHXxOm5VXWwTTDAR\r\n/kGrMvh9Xia7l+c0lf8XQPlTIPY+S34roMzrUCARgEZl5tH4BS1g9j/qALzt\r\nfFRVYaUKVE81lZIjVQI4m1CZX9asQWb7eomRGF1t4TRYfl0wGIdY8p9ixLIg\r\nj81QBFjHm9p5X5HO8DhOED7Z0yW/tSR3VKaF3K1PNRQklmFHr9K+iopOQKvU\r\nBQcbL0LgN1N5rhqRDIMiGWEaGz1Rp3tmB+zDNYSMoCh7g5+ywLEKuSp6CyPc\r\nEFLvHTSACVRzpyieNFuudFmy7fKbbBo3xC1QJ+7tNY9f+z7s9TOSaLxvOpU/\r\nP2sVLdqnn8ZdftGqbccSOGRUuOaAGbExwSzQT5zZO5wO14olh+qoxLYGSbMm\r\ncOGWuQPcmg596wQWOOX18LUou/mKwKLC3zk=\r\n=ZqCr\r\n-----END PGP SIGNATURE-----\r\n","size":2962},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.5_1666359844425_0.9775356956048149"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T13:44:11.454Z","contributors":[]},"1.0.4":{"name":"apphook","version":"1.0.4","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"317af195a0257edd58d740519782f30d55b21393","_id":"apphook@1.0.4","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-pdms7rd4Q/1zjwJYb5awM6N01HQ6WcIdYnjWaccyqt4ev4YBYwPphYEmR7+wDjXrFrY50g37kohOpRMv9ev0yw==","shasum":"62baf29b299029b2892a12b0244160df027dbdea","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.4.tgz","fileCount":24,"unpackedSize":31339,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnndP7TBibeaKULNBJjYwJyj1K+pglo0WbPZFK4wPtXAiBzG0wTb4/jk4nAvXhFEu+CmWZxITW8o3wbdFcyANR0Ww=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUp5qACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmowxw/5AIEhDEo2iuwmvooL6pYwz+mYc8Kw8Ioi8eG89AMWlf7iI6WE\r\n0gy8K4QhJydSmCS8EJ1Oi4RUh/eVncS/P3NTKnZpZehzuKC+sv6fKqjd1Keq\r\nesLFZXS/OIWoZU6Ez1qboH+1IScsVQFkMShZyIsuGzIsQtmFcz8Eg9/oXlOS\r\ncaSLpZ2x7EYWceL9Lvt1NcQmn1YSgZCSHPS3/Asm3+wtDqqV8ips1gdECDzq\r\nL4Zxp14MZPr/GFg8kGeDhAout0Du0L2xg+fCqSrwpzSH62FG0pGWO5r3I7QE\r\ni115RSLEDS0ZDm3w5DqTgfXoxWd51DQF+Mw9X4ReCqH7BwSaKY/Qr4ya9Tb6\r\nioupbtCQkQvp8Bz/kgwT6fZYVo7+SC9ozJqc0EnObH10xWlELOHZvi5wobDF\r\n2Id2/UF6egERZ2pG0dgZ6ItTh7N9NbDJY0DrN+4traBICnwuK3nGJ2j1zYTo\r\nyPqF+oNrPoOxPh9qY4z+8E7TM0YYUY78qQEogfnHU1dXD9ZIa7NIQS6Lu6Iv\r\nIPPZytmNY9v+iKqBzmYFlMtNSEHMaBcAx8ajQzRxih5eNorWbOz/zjTpDWQk\r\na0IdcKI2G1tpE+5L9dh00pzwhzR/nUE94v3u1ZitMz5YcmqrWnUyc53xcDyq\r\n3jLC9udjIjx7uEU+j7ql/3IF1U7vVibDQ4M=\r\n=l7mF\r\n-----END PGP SIGNATURE-----\r\n","size":8432},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.4_1666358890718_0.29821029274890365"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T13:31:38.711Z","contributors":[]},"1.0.3":{"name":"apphook","version":"1.0.3","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","publish":"npm run build && npm publish","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"28b8669ec9db7ddd00102f0f1a4c7581a2ead9b3","_id":"apphook@1.0.3","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-hNyJrV56RD9D3cggQLRxe91Du+fDEGoK4T0406KkNlLwoOJD0pYCPzGFyeMAaQkxu8UrD7Xl3TcKjOXjS95gzA==","shasum":"93fd39ddc691c27d37da89375eb50fb71e9c0f83","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.3.tgz","fileCount":17,"unpackedSize":23993,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjqO0R69uSok2zcmCKflYMAi/RhnQBGLpcz2+T1mNMlAIhAI2fv3u1nEweQkvWUSD+gxQdzqn8DjcOwhhdcuF68xM2"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUpwcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoT/g/9FEqvFtlbn/U0zVFHbt6Eh9cMBdZejpDNDv4NVpzEr8jNkP7D\r\noSw6mNHB2L7R+581X4y0ItuW/dFlzVcWDyfEEAzhCFOSnVuETsVqbyOvf9Nc\r\nySEH40Z+TQAJqYfRVya+VGiQBvnM+nrf01C42fFsnBUG6lMZ/+2SdvTV2mxw\r\nOg8NYfH83/Diq/sm23R5H58aDp3cnj8LZ6aXeiBLZ4WDQXEk8qEhQUJZBKQ+\r\nZ+Saq1kPAapV4INkrhMcpvn9g4GeIwYbYZZu9UCj3Cn0mYzlvDH0Yzr5vwJF\r\nyh5NNg3vKF4yJXHBHoanxIgo+034RVTTLdgd3iVu36ETfI7Fsv+mbwztHY1E\r\nPwB6b67COrkjGSYKr83TrIFsBKMxpIWri1ApV/wnAtC8T6EHSiELyk4xXAIB\r\nEuTIGs2YYYUAhFfYYjrvgTH5oxKDhIJAy2bPx75hITLpRAr9N/O/w9pfyTeP\r\nPTDoMwZ3VANjNIlKTzejpxkGIynYOYk80sSMMi1bm69jOHzRBuM7VcfHqnLQ\r\nrgtmVOreqJy5VcU/66vmDCA64Xs55VXNnsOsXt0ukqGEW4IMw3y1C4ho8pwx\r\nXnHDpsPaMGVcVXJHdqO3h4Gh5+J4vHw8HnW4EKYrSJ1YHK08A+gALfC2ZzM3\r\n3/JMUf/SlM5gcaVScmhtz5IVp6lGWBPd0c8=\r\n=O2Ot\r\n-----END PGP SIGNATURE-----\r\n","size":6879},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.3_1666358299981_0.5577554957730058"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T13:21:06.495Z","contributors":[]},"1.0.2":{"name":"apphook","version":"1.0.2","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","publish":"npm run build && npm publish","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"dependencies":{"apphook":"^1.0.1"},"gitHead":"f128ea63c700541b3e3d6b8a9adb11b556a0d0f8","_id":"apphook@1.0.2","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-kXCOozJdkIX/6glQtuiZ17IVOjMORYT/BOXgGreKUTVULkCzWIMFDSRLmIwWNt6Ln1H0Jdc+oiyQ+LKBNrX4ww==","shasum":"e9e13c7b0f72ec4de401c6e0fa6305dc8722cdeb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.2.tgz","fileCount":17,"unpackedSize":24042,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIARRtrJWTdQVshzF4OcWTggwcv11AFvThXpqW0B25+O1AiAfRY9N/BemyDmT5CJ9eO61EEuKjlRSAt4k2L2f97Dblw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUpt6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouABAAhdjuNY0SWnVhHvmRSF8wQafUaxEi+mVkSHhiHBDyWrPUMu2o\r\ntu5x3y+4g7KoTdT5JtiQ+jvjFbf+Ktehwj0flgk0BznWsxIUgDs8fN4EWlaR\r\nk63SaPdTcoE6ScYRbZHhRDgBGfIghQYI4tLPgp/IlI1XMkR793Pmeasf7XAV\r\nLG5u01h+qyCmDSpeHthiVq5V6JQivWz79nlEbpuUNAkk1qnwZvfcuf7KQALV\r\nu0HE+wxSQgITzvTs189PahN3+HCvgiV1GVPIkMrcoSf2h/mYm+6iPmvPE0kg\r\nYhAxFYhJEm4uDiCP788qPJYSCe3BRKee4mAFKISWP0tTF2r6edJR1HNiGddZ\r\nuVUZpCTya6XAQTUnNwh3goDL/4KaPLg3mikOxd3p/PWH1mbIifHWYNJ9nrNn\r\n96tu0ZU1q+gdinr0plTSgBlDAR7uy8To+nSKFZ9/CCGHNn1CuYRGjhzAL73a\r\nRHhCnvAaL++nvwKGryuFBpMIR/GqTNg9HILguQcQhyGxD3ZhyCDOOi/ErV8s\r\nOIE48UgOyQjdSCbkahgt//ENE6e6/06dCGOzkuuJfYS8wOLZ6NbMijdAKKWS\r\n+Z5819Ja23kNG8Fa8MLE2Lanj2e5Xz0ug08gCgqKA8YrzLZ98CbLykrjvfvp\r\npNe7PIKnAf5h3WZByy+s/z81IJVCoR2N77Y=\r\n=/yuo\r\n-----END PGP SIGNATURE-----\r\n","size":6892},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.2_1666358138074_0.8276863149485183"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T13:16:39.159Z","contributors":[]},"1.0.1":{"name":"apphook","version":"1.0.1","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"089d6caccd43cbb0b4766f54b36aefe53128c992","_id":"apphook@1.0.1","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BAHvhe+RRSllmoghiWt+uc/r0jKRFT8uBczAWlNXTFrPUNxVUU3w1kprm3AsQU0VGlcW0rFqRFUTCaaQXPIhEw==","shasum":"b29121839c37ef662cf102067aeb9f21e499ecde","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.1.tgz","fileCount":13,"unpackedSize":22249,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFrRnEiIKustN+6qgDrrY9cPGgM3kIalXrqXVcXd30rfAiEAnNB2CojfeLFL00Srt9ZTqYehUsvvZ71ZNwKz0d46n2w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUpnfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUCg/+Ps/OoyvpzPXhuIXCQK/J3XQCaIVVWtx0mFdlK/PRqnukRb67\r\nkMPC01tUIJpXkzJCHUD9kxhTl4Wq9aGUuvOVWLAA7Bd3XY/jXg6wxmHwJ7pl\r\nQudRXuMQH3B9e/yMNEwce1gYjEHbpDuuufZQRrB4+6pTBtZIe9UTDb/PFTdh\r\nLfTNYuQ1CB/LG7jirCSJwXJZozX7yqowMl8cqJ1uHMq4YWUiDUcM0y88Bkeq\r\nTRF+btos3hX+O4/TIHDcJx9MU2GX427AzTZooRg+vLfDhlWjktTsGqR5T1Bd\r\ncGU+YXKAjXCM6h1lr0eMl3Y/KLmIb1qp2SCTzV1J/B+ex4AUljYzQEFeeLLj\r\nc7Ky77fG23ectA96dghDK1u7lIGCvC+8piJxts1dZMSWjSqFAF6o3i3Xk8gU\r\ndoHRPrn7hKHNY25fdZobx7Ia+Zx2lP16l2PmRg1qj2JhGTfVdJHIFLgNt3cY\r\nB93a5Q3cWQeNzLTSeXsw3Ha/HBDr+ZKtoHoA5moUatpeuHDMMrsJf5iFtkHO\r\n8a4lkXjnEiRxgBnCfBuNHoMTVviCxDC4STP/VWo9iV0s2VUQ8vtpkY/YoNnD\r\nu/JB4RdI30gQnYLs1xaiD/TYYHB9pdi3K+33sIxe8htEA3yMFvs3SJ5soODg\r\nr2W6qX+3VBYhoS6wc/LNnQcbweJw5fpQngE=\r\n=Zclk\r\n-----END PGP SIGNATURE-----\r\n","size":6536},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.1_1666357726782_0.27959635356417145"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T13:11:41.489Z","contributors":[]},"1.0.0":{"name":"apphook","version":"1.0.0","description":"A way to implant/modify other piece of code","main":"index.js","scripts":{"build":"tsc","test":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/mr-kelly/apphook.git"},"keywords":["hook","plugin","event","subcribe"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/mr-kelly/apphook/issues"},"homepage":"https://github.com/mr-kelly/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"b1f4bfdf15b114502c5bdc0eea80e27ee08b6652","_id":"apphook@1.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-0/Qrz5ZN5iuqB/wcbs9eLoFL5eGSah6ECr796RxdJhQUQNyokI4bi1+ENAinR+ryL2qwTSnpaL1O0I4ST5/nNQ==","shasum":"cca02539f25c842f21f57f388733e8e93ba3a921","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.0.tgz","fileCount":13,"unpackedSize":22130,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNoRWW8Elyw9hEknickRuIjd6xvte40hnFvj4SfQMjKQIhAJ0oW+PyF9iqJO0x1J3DD8TIvtSL6FHJ3xbhA7ErnsU3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjUpZDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+Cw//bUDVV0T7n34JPOgU3Pj9Qptio7VDiKZblZMQ73W8eJksPsrz\r\n0O5zJnKmZLC9XsTebkTyljr7Y2OV7Zr5BbtpbSgvROHaH9xxNoqFAl3N51eu\r\nEx9z8YeRjv0osJpi/isdJouZNhwIVxyDZmHawu8N2NTvJ04gQHZv9Zh1NQmp\r\nwETZJ1/7o9c3XtnIW8nEWIWt2NmoxkbUV189xQLRXW/wQ3NYKxOyXJ0aPJaL\r\nKAgQR3LfSb8ZdRI7vadMiM0GKJTR0NOWnvU96DgCVCQrrIX7gsw9FfbHvTT2\r\nmwjPrurXshiX1/gmj1t6KoY9JX2mtSjmgKkGWANUC/KBxFOPPquG3cglJbI8\r\nYZordqQl6zISNxXnizvg6RwvcQL5Z/DRAfrlLNStdHXu5kJqKxCF3p9DUYHr\r\nAnbfT9mSP31tgHrgLiNqEfKNU70PmqHpBnZcdj5ci63qmPIM8a3x7v2Am4Zb\r\nM7CeAT8E+flJnDQ0YsnnLLjLIye08BvuWFb8xV0taB/aDN5RBch5T/DcZGVe\r\nC4KCwghZvf9IhNmu2qplZr0UndcJ7iBNy0/u8eSoSyMZ7V0cBxOcG8yGKaDS\r\n7Ny2DPpkBDgzhCJJ2nY5A2xw9V276Dany9jMelNDkDivVJ239SyamatL0rl/\r\nw4QtwjmA+O5AskB2cPBOVqP5q8pnA+SpYLk=\r\n=twQh\r\n-----END PGP SIGNATURE-----\r\n","size":6499},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.0_1666356803712_0.36748309206166807"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-21T12:53:28.446Z","contributors":[]},"1.0.7":{"name":"apphook","version":"1.0.7","description":"A way to implant/modify other piece of code","main":"./dist/index.js","types":"./types/index.d.ts","scripts":{"build":"tsc","test":"jest --coverage tests"},"repository":{"type":"git","url":"git+https://github.com/apitable/apphook.git"},"keywords":["hook","plugin","wordpress","event","event-manager"],"author":{"name":"Kelly Peilin Chan","email":"kelly@apitable.com"},"license":"MIT","bugs":{"url":"https://github.com/apitable/apphook/issues"},"homepage":"https://github.com/apitable/apphook","devDependencies":{"@types/jest":"^29.2.0","jest":"^29.2.1","ts-jest":"^29.0.3","typescript":"^4.8.4"},"gitHead":"226ab9da697315b43dd20fd696b7d6fde63203ef","_id":"apphook@1.0.7","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-EaGumsS4kZOij7WTvdAwkJnABBYClwVsaII3amBVEziDxGJPlinPNNLMCxQ6rxGDB2MOgY7xkQR04KUekEV3/w==","shasum":"33454a6c4d3084144f71a7e419c3de3f490a6609","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/apphook/-/apphook-1.0.7.tgz","fileCount":3,"unpackedSize":6670,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQ0ddqru+yBV7WfJqGMcnhQUT0Prou7qDnjN0xW72QFgIgWHDJ46PNm6m+NRwmnYp2ClR7+5uhF8yjgLEIk21PXMw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZLVJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqprBAAl0misMi56nJpI9THMFIACdO0FMwjVpG70yZj+ZQHe5RNeIVb\r\nu66HiBkxhCZ8jmDayzj/kLH/2Oe1LEDoHVNF2VsRZn98zp7lkfIp/i/iItps\r\nBFgPmStfPByT6xio2T4zFya84Sg83qHFoKMJRFoeEnNnmxl/98ujGp0TYhdA\r\nnXXvMMzru/CG0xwHd9qRrCxMehz6pPSPk5AM+dKm6ReTBJeuYmEWJy7ysL2B\r\nxcd1KgI6ENxcb6SE4C0bNyVWOb7YM+seSehdiBpYBQpGOL0CCi7Ym3mHjGL0\r\n8JJ1bM/Phrxhqfls7GPHv9F2ZO4qEdZRit2G7HqdRaR7SaerxLimqP7A/G0B\r\nTTNyZT0d37FjuRHBs8TZQ/vri5sV43vR2jAF5zem22VUpoXL2FVgULqyLXMc\r\np6PfwU3yM0CB1emQSwmFYS6XMWjZkOeI1sxK9RTPsmPdeO1g3yer1Wvna73h\r\nL8BQ8iiPgnkrdV3DoYMOCmoQR3sZUyuJ1krV4iIRg943grXBiv4Cx9mp+mLs\r\nOpTLaXRyH3C1WM618e9W/X4sCxD5wRiU1sMpFB5fVfn5ijGrkEvSqDrV04p1\r\nCc569aguZrokMdvfy+TMlvs3tlstPea9J82YXcSdzajaUF4yW6BG8p4+cyW8\r\nGdMHipmwuhuWiBufl9sm2HWkCoMHWByEMmc=\r\n=upVf\r\n-----END PGP SIGNATURE-----\r\n","size":3061},"_npmUser":{"name":"anonymous","email":"chepy.v@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"chepy.v@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/apphook_1.0.7_1667544392991_0.5910236053238798"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-04T06:47:50.563Z","contributors":[]}},"dist-tags":{"latest":"1.0.7"},"name":"apphook","time":{"created":"2022-10-25T17:45:36.414Z","modified":"2025-07-01T12:12:49.749Z","1.0.6":"2022-10-24T02:00:07.410Z","1.0.5":"2022-10-21T13:44:04.586Z","1.0.4":"2022-10-21T13:28:10.864Z","1.0.3":"2022-10-21T13:18:20.188Z","1.0.2":"2022-10-21T13:15:38.237Z","1.0.1":"2022-10-21T13:08:46.969Z","1.0.0":"2022-10-21T12:53:23.885Z","1.0.7":"2022-11-04T06:46:33.124Z"},"readme":"# apphook: Event-Manager Hook Engine \n\n[![npm](https://img.shields.io/npm/v/apphook)](https://www.npmjs.com/package/apphook)\n[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/apitable/apphook/npm-publish)](https://github.com/apitable/apphook/actions)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/apphook)](https://www.npmjs.com/package/apphook)\n[![npm](https://img.shields.io/npm/dm/apphook)](https://www.npmjs.com/package/apphook)\n\n`apphook` is a way to implant/modify other piece of code.\n\nIt is a lightweight Event-Manager that inspired by [Wordpress Hooks](https://developer.wordpress.org/plugins/hooks/)\n\nComputer software is a sort of sequence. We build software according to the business.\n\nHowever, the user's behaviors are out-of-sequence and chaos.\n\nYou will never know what users want, how they use your software, what they want to customization.\n\nSo, we need to prepare a system to deal with out-of-sequence and chaos, which can make big changes and flexible customization available.\n\nThat's why we should know `AppHook`.\n\n`AppHook` is a hooks engine which Event-Driven. It can intercept users' behaviors and extend our functionalities.\n\n## Quick Start\n\n```bash\nnpm i --save apphook\n```\n\n\nTypeScript types declarations (.d.ts) are ready.\n\nSee [examples](#example) for usage examples.\n\n## Principle\n\nWe place AppHook hooks in code and trigger event.\n\nFor example, when user click the button A,  we can trigger a event called \"click:button:A\"\n\nWe have two way to trigger event:\n\n1. Trigger. When event appear, do some actions or behaviors, it would not change code pipeline path.\n2. Filter. When event appear, it will do some actions and behaviors, return a object. It can be an interceptor.\n\n\n## Use Case\n\n- Event Tracking：Don't need to hard code in the code anymore, we can put all event tracking code in the file by bind and unbind.\n- Rookie Onboarding: New register user onboarding\n- Help Guiding: when the 10th click on a button, popup a UI window.\n- Users Tasks: check whether user finished some tasks.\n- Marketing Events: If match some condition, do something like popup a marketing ui windows.\n- Users Recall: If user has not login 30 days, do something.\n- Payment Interception: When click a feature button, users have no payment yet, trigger and open a UI windows until payment finished and go on.\n- Third Party: customize 3rd plugins or more features\n- ......\n\n## Terms\n\n- hook：\n    - hookState：\n    - hookArgs：\n- binding：\n    - add_trigger：\n    - remove_trigger：\n    - add_filter：\n    - remove_filter：\n- trigger\n    - triggerCommand:\n    - triggerCommandArg ：any\n- filter：\n    - filterCommand:\n    - filterCommandArg:\n- rule \n    - condition\n    - conditionArgs\n- action:\n    - trigger action: \n        - trigger command: \n        - arg: \n    - filter action: \n        - filter command: \n        - filter command arg: \n- listener ：\n    - trigger Listner：\n    - filter Listner：\n\n\n\n\n## Example\n\n### Use Trigger to Event Tracking\n\n```typescript\n// Window.tsx\n// ...\nonClickLoginButton: () => {\n    // ...\n    apphook.doTrigger('user:click_login_button');\n\n}\n// ...\n```\n\n```typescript\n//  EventTracking.ts, a independent file for event tracking \napphook.addTrigger('user:click_login_button', (args) => {\n\n    // Event Tracking Code\n    EventTracking.track('user:click_login_button', {...});\n\n    tracker.track('user:click_login_button', {...});\n    tracker.setProfile({email:'xxx@xxx.com'});\n});\n```\n\n\n### Use Filter, make contact number nickname customizable\n\n```typescript\napphook.addFilter('get_form_name', (defaultValue, args) => {\n    let user = args[0];\n    if (user.is_cloud) {\n        return \"Member ID\";\n    } else if (user.is_self_hosted) {\n        return \"Employee ID\";\n    }\n    return defaultValue;\n});\n```\n\n```typescript\n// UI.tsx\n<Form name=\"{apphook.applyFilters('get_form_name', 'ID')}\" />  \n// Here will get the result \"Member ID\" or \"Employee ID\" or \"ID\"\n```\n\n## Rookie popup guiding\n\nIf you want: \n> When a female user get into your product the 10 times, popup \"congratulation, you have used 10 times\"\n\nBreak it down:\n\n- trigger: user get into the 10th times\n    - hook: get into product(application:start)\n    - hookState: the 10th times\n    - rule: female\n        - condition: gender == femail\n    - action: \n        - command: popup\n        - command: \"congratulation, you have used 10 times\"\n        \n\nRelevant code:\n```typescript\n// trigger event\napphook.doTrigger('application:start', [],  10) // the 10th times get in\n\n// add trigger\napphook.addTrigger('application:start', (args, hookState) => {\n    if (hookState == 10) {\n        showWindow('congratulation, you have used 10 times');\n    }\n}, {\n    doCheck: (args) => {\n            return user.gender === 'female';\n}});\n```","users":{}}