{"_id":"better-lookup","_rev":"11-a70b7578e84b20bb28c91837712f8acc","name":"better-lookup","dist-tags":{"latest":"1.4.1"},"versions":{"1.0.0":{"name":"better-lookup","version":"1.0.0","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.0.0","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"4273ecc8498a56a78d1e3d1795efa9e7cf0c32be","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.0.0.tgz","fileCount":6,"integrity":"sha512-T8pXQV5Ihm7nbEaKvjYDPQwaEM+Q//3H6W6+kekrxEO1LuknqFvqiGCTxrhUKJOwnXbkf+u+KtxGJsZXKKYDkA==","signatures":[{"sig":"MEQCID/1tcMYSUNeCaDbNPNIt5oiFeJhpgZmUj6bW4vaUibPAiAO92SxECk72zcDcqjKlFIodIqPJW5cmC3DJHI3j3BB4A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26880,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG/8tCRA9TVsSAnZWagAAZ0wP/ihMdb1o3+nU6XGGXDT0\nN0seeudnJNQHj57jHhtC2U0Jksz+3SMJVkjUsHvv+j6bUtH93lhUqFWADWxD\nrRZbSCCakR/wwr7xBsZ8bDdRptvicWpjYRg5Rghwf8CstkN8+foIGJdkIvnV\nHP5PJrSDttt/EEZ8yMvKqGojQqZfnquYQGsCb3PYiZZrr1t2pbDrbhXL5OiI\nMk0gihLpagpK9EQBhca9vRG2ouZLTRHJZ9kWSQPXtqXHvnX8ugT2a0fG2GXY\nVy6uOsUTNcDZTH66kZ1MTo9fvE3+ASlk7sbNWE9GLYnUV2ufCJIGSNaQn2Kl\nFDmwCEHlUYjUaplJVdVvv6nRa75/5w3uEhniqEX+rnRam6aCseUaMPHUnAA+\nGjBhkqNX+mR5R3qjHyLHiCjsQ8m/VJARSv8fEftOh7Dz4MN6aGAfiN5LIF39\nJhRskO2rmEksBjI2Hx/GRfpmtFukNxIsVs+G6nOoXq1t7wqxD2IpO152CA1Z\ndCOFnCNdi0uYbzCzMadHx8YJNvOHXOioAUiZp+yA0QZsMypO2riM9YXy7/vg\nzfb1jvRXOw+4bvReF7qostEQQpTBaikbd7tvvE8l/38iBswOZ/2f8IWzHtSg\ncthu6MplVmYjsOMJJkPqf5YxaYe+RqqopROmnRQAxJhq+pkITp6tXNjZdwpl\nPllz\r\n=a7N+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.0"},"gitHead":"ce073e5094fbbaa69dca39cf3dfbfdcc8d0ccde2","scripts":{"test":"mocha --exit","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.4","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"13.12.0","dependencies":{"fs-extra":"^8.1.0","@hyurl/utils":"^0.2.3","@types/fs-extra":"^8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.0.1","@types/node":"^14.0.26"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.0.0_1595670316723_0.7495675461664943","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"better-lookup","version":"1.0.1","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.0.1","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"489edefa9c36f18d14469001bc44c259e408439d","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.0.1.tgz","fileCount":6,"integrity":"sha512-AZHmbVnQT26cStF1pBYQ41hppLVuWF/2nHDlywhwintnyEjBn8HU/0GiNdnRR1c8SejSvrRafQapK4Efyf2U+Q==","signatures":[{"sig":"MEQCICjKHe5Zp9F4EZbckqsDXLOaEfmQ1k30bJZ55hN0ipjGAiBNjslF4Lhm90we6zytcwvOadl3ZkmyVVkdvNVBSHvpcg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":28079,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfHoYYCRA9TVsSAnZWagAAEP4P/2dwpz+8UCeiTp0tahDK\nTNUJyRRhNv8RMMcUiHLJEscXc8+qHVS9AamUZbTsVA4MqHYz8+qw+O9TX7jI\n7OJvKxxNxWknyAFCPW6EusLtmeN8swiJbkzydz9c50pt7fao+0uzB8cK73Nw\n3/zpcPX7xZaHq4utj70dNzf45NZkD0zgLY7vm+mbY+Lgu9TzEdF4MZeK/w/W\nrSiUbxXe97EjiiwDLbzfoHnUUEaV5vQVXL94c+YEKekoAl5zddwpvrH1L+0Q\nDlknVPRXoCG5TWz16o37sq4nDJ4I1jkEV5x6/trm9tOgjjBFWL2ZpqUiQKFy\nQEOZtGsnmrT0VKnSAmhDTVvv09QU1bfkq8iRwP4wHyR7jttKt+wc9mhZyyqx\nCPpfVIXRK2g0RAPRmvAJmShIBwYubXLUSNkeUmsXz2m7rhDUmFV2kjiHPls/\ngE2GzaX1IgBFoSqtcxETUnhl33tis89FzX9RC/4LIP0sdL9fHaPcKMda1gwd\nqc8w8fJZ+AOmmIqrKt3ds+MBmBrfZHv2B8bJEJm66zhOUob+/vtMf2MThj1z\n10gH+lAFAZ0RfnwRISuwRW94jL1ZBvrmKlyZK6DgThQbLaVHMcsinTHFxONm\nFWjS5uqjYjNySlztS/veLb1KIFd0imidxDHBPzY7bsapcp2Nt1WwCD5yF/Dn\nGRe5\r\n=TVdz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.0"},"gitHead":"43475f414580dc2225b20b34787abdb07d0661be","scripts":{"test":"mocha --exit","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.4","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"12.14.1","dependencies":{"fs-extra":"^8.1.0","@hyurl/utils":"^0.2.3","@types/fs-extra":"^8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.0.1","@types/node":"^14.0.26","https-proxy-agent":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.0.1_1595835927623_0.6290717919172464","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"better-lookup","version":"1.1.0","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.1.0","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"773f57f831e3c79a70e61a36b5d33ded7b54fd58","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.1.0.tgz","fileCount":6,"integrity":"sha512-pLFCi6iVfXAJzX2H1Lmzw6OjSaKDwkJlbYIvBU85+3AHD8bQaEwiVU8Y5AzELG9y78rr1o/Q/Lw3r7vUKZ6BUg==","signatures":[{"sig":"MEUCIQDIZ/Imt8YxT6cuJTeDNN8lshaDBLRBtt9PWgZnq14l5QIgYN1SwGhPpifIyJUQ8vUWkoRMXTSUC/t9bKauTRmE6/0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfRkI3CRA9TVsSAnZWagAAocEQAJmmvra2d6xUajYISZPp\njHXTQEWCe8wSCT0o20AZbrvMBfQ0CyMSU41ItnrrPiBzwRIXFGdh2ivoQKKt\nx9cntAKMf7hdXneCYdpN+wBGqH5WqWhuB6Lu90RcHRVWDRTgO6g//Kk6EWbZ\navPU7qKnpNU0hMo1hR7mbGigWUmsqf4g00XYABK7GMPannFMldKqvAWSLXDY\nKjIUBfX2vE5nqyfd5C+txE7o0HHM4gq+nkrAlCKfivu9mjv5QvQAmwp8a4I8\nxrbNnQ5yOq8f5cfLaQOyAb7IdvXuZt2d6QVDwQ+ZzPO0OUTCthyJRR1D0Bk5\nokEnTUhP0fCxLWDziV7b2ZvdGM2mEIAzMrfeiictcNlcEow6Pmy5SVeI4U6E\nCq/YiAQN8Gi3gZ0sFIW0cvLgnHHCCRaBXaBJGzjMTB2EM74DxAdud9pLfD9+\nRBku/yjnIV7AOZvSmQgAuh03EYc1zd8VxmuC3A+/Up5S73Z8YzQ1kePlsv84\nGLRj93Ztmq8iRvCOlGIQy4DI79yffbn1bAQg6P7rvqrdRP2oZTrGoyfymIEB\nyTajGW6v/5/4vUtjRsyN1zhLSKcBGHn9c/k28/LKrJ6hW560pK9JyOVnxq9E\nuq5n6NW4k/irLNHDyxn2PLmb8FEVQLcUsi0vTGB1LVEz49m/o6bi1RJCEyfJ\nxdjO\r\n=42tA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.0"},"gitHead":"23909572a7b3ef6195cc852939860ee6d4f53a5a","scripts":{"test":"mocha --exit","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.4","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"13.12.0","dependencies":{"fs-extra":"^8.1.0","@hyurl/utils":"^0.2.3","@types/fs-extra":"^8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.0.1","@types/node":"^14.0.26","https-proxy-agent":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.1.0_1598439990669_0.2237910095839557","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"better-lookup","version":"1.1.1","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.1.1","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"54c918ff0de8b39aaf7832201384a7534a6e7ee0","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.1.1.tgz","fileCount":6,"integrity":"sha512-C1nUtJl0EliXJlsM/dPe6Bkn6gAjGZAeyE1uxUu1Za51Jd34uhmLTX+nM7ftAD+mke6gSd5LwnVDjin4VJvRNA==","signatures":[{"sig":"MEUCIQDtIlO2+F8z8aJ4EE6N8z5AWCVgwtMyE9rBj2yqE3Q9cgIgOcB3gKZ4gn0s4WI6MqWpLmvPkWbe8jPE7mizGJca/N8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfV0ijCRA9TVsSAnZWagAA28IP/jC7mCtZRaG6ceMefzZG\nu5Yya4fyttZOh88h9Hg7gtLa9ih8tB0E0D0DcFJtPgpf2PYkNvC5qyhAulMW\neFWsUDuCHhzs3tkLkfFHRC9LybCBD30c+kqvu6sMIG/hCVJ8BWOEJJW010Vi\nwMc0di112VDspZDNTvUjYhI7vBUBPYa80CHXC1tV8oxCRUR9eLF5LVZGSYj6\ng2x+J6jX/RP5RkbNftA0IJOCBNQ2h3UfbnqvGezTbf0rC9qmoWAon4AYWUwT\nKCc0DWj28MLbKhmDbiPMy3vnAFSNyZ7OxeQ2pBY0tkR8cMScip7LIS0jN729\ncUg01LvFft1euqqvT6AQYUx18AVPJtr7bJjzzhs+QhLCxa0UkPxXj/kSrKQF\niKB62FIqM+NGo2HhBeS8SJE0uwaTuuWoNKTzaIXsuxPGK8raqI29gMeHrfUY\naRiHHxNnf2dpoQ6Ztox6yaxWziEns9WtnJ/6w3M/hDymMGINKqyfxb8u5oUS\nT+KrSjYNDUNcxubx1QjP7ySQwv47DIWaq7B1rzprvvTqILjYbMENKE6ebu5+\n3kdO5bk7VfgV1khf1v61B6PLC5rUTz8DNl3axV6UbzEoOXoWxgjstDlcl/pG\nw4OQ82HD6o2rUQk+FBaz9gVPQOWVoR5AgCpLKTA1DhfjdR54MMuqwwEsK00E\nSaSP\r\n=xhPo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.0"},"gitHead":"f194ad5afa93b7d85f61552000228ffa176d63f7","scripts":{"test":"mocha --exit","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.8","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"13.12.0","dependencies":{"fs-extra":"^8.1.0","@hyurl/utils":"^0.2.5","@types/fs-extra":"^8.1.1"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^8.1.3","@types/node":"^14.6.4","https-proxy-agent":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.1.1_1599555747524_0.576143851099667","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"better-lookup","version":"1.1.2","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.1.2","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"c0afc2450507b3409d32b163e01aeb4369b23f08","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.1.2.tgz","fileCount":6,"integrity":"sha512-5nG+2OeL61dxZ9/bgrDsnOM1lJ58RM3ffe3HN4/OXpZPuP1Vt8TNCOVF5wLaIdlHJFLVzMPuAf1JNamw56m1HA==","signatures":[{"sig":"MEUCIQCDgxeiNOcXzza4EUiToWwFjbrzghqSnNqXc8p7T181ngIgNsH7G1EIb+8gOulOXDxYXe/jpSCN3dtvQg010oMTn3A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWHezCRA9TVsSAnZWagAArZAP/jlX133lAxsWM2O6CxNb\n9XgSjkeDLw/HXVoDNUVmPMIOE5Pk+ossqq0gUc8mk/u9J5sUF3p7fx0EXSvt\nNCFpuzLU0aJfdbNQLQHEMUhAyUhXupVlWZIPAKz4AjPQbcaF2eYM9iL9vQv7\nYPscLvGA8vzxRHmzJrBUBd6hZsqAdu9F1XB1uITzo83iDZC86oWzBk06GAVv\nMGamZA6vnEbBUa4GQYdbDvnnMUjJdR2tNfAGrblFXawZv6l1dWldt8HnBRuY\nqTeYtl/SniK4V6hI876siTeK6jIZVp+yILAF0ogSnKGRAOZ6TJ0AzyJlnhpq\nT9sYhprOSW8bGEpjCdGYRzfWgpi/q1DBzBk/wNpIvcpDK33mbzI1NJCzGRXf\n73L2xGfqCSewl8Zjg6G1Aj7BHO5LmCbCSv1YHyK+rsG9d61/1Vg3MaQxXRn5\n71AcKsjri7oNX5qm3SZZzj3OmPdbVuFol8e64IbxkCpUoYs59lVwX4ytrUuZ\nF4IRQuWauGzgyjIqzVl7po1N5DjHs1U6UUMglCVRt1cbnbhGvVRCGRzYqIRU\nVoFQXYsB2tJZWKwkV6HBCqEwaN/ZsOC1wC5FBHExNWGCjFY9B7/KL7GIjBpM\nbIGA2fPhv586RRp9yI9WYZI5SkYW+X8NMTQfJZRYx7bn6I7bC7+oSnLtFtVN\nGTJm\r\n=uHKw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.3"},"gitHead":"aaac706c37a60410576eba09f81b9fa4e2a233dc","scripts":{"test":"mocha --exit","pretest":"tsc","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.8","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"13.12.0","dependencies":{"@hyurl/utils":"^0.2.5"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","@types/node":"^14.6.4","https-proxy-agent":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.1.2_1599633330623_0.8720268052337905","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"better-lookup","version":"1.1.3","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"Ayon Lee","email":"i@hyurl.com"},"license":"MIT","_id":"better-lookup@1.1.3","maintainers":[{"name":"hyurl","email":"i@hyurl.com"}],"homepage":"https://github.com/hyurl/better-lookup#readme","bugs":{"url":"https://github.com/hyurl/better-lookup/issues"},"dist":{"shasum":"6ab07b3f8ea2f3b4c1d048fdd8c3234129097cff","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.1.3.tgz","fileCount":6,"integrity":"sha512-wCqS8pmdytxjOXjOoK6X3Ot2eXG+NOeCAqsIaAubZ39HS/Ys9TrN605gU+SlwA+606PvVMV/ZIjneYxJbIl8oA==","signatures":[{"sig":"MEUCIBOIyJB2FAxH+bUcevrL6s9pO6qms4sYWlGfraM3eHJoAiEAzbQeue1QKhPAv28X8SnveFf50R48tdFq00rJ6MeZSVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37866,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZBfJCRA9TVsSAnZWagAASKIP/2rNDtFwPQu26UVHIhTs\nQ9l4dPJDfoha1m+YDdXWIxe5emmKsVsDv7edl87GyVI+BA0fHmzq8t1/HnJn\nlpnDe+cOYCgNEigrV4BvSghzpS1pSD4pkiSSVRLe6WJerztL/5SDAarK0bNo\nGl/YJJI54wgYlu+ujjWkDuE16vJW0g2ryXBk1ps6+Eny8VbVmzct69JjhD4g\npz27TPBu9h8SjBSgE8wxSz8+aHRX/bDtALsQoX/Xviza+4eHCTlJppm35624\nQyYkj2uX/jrf1H39upyKFihjAXWF5SGHsrp7mlYkYKW0sS6pUTbi9V7o2Pse\n9nbdN02plEzoV03OgF3Kf6FQ+APTDhzZkkwa9KQRjRF7LQOxVXbnFW8NA0gA\n8awqCEPEBklx1trUU4EVuLK6SGZJ0bySXFYNzY7Z+C30atXk9QQtwR3XvT1a\nmYn5otoZPXaNljQj/AoAYX4So25CUquy13rdDsSfzqQ4FmKsR3eirk/s769S\nvNF7i7cyqR0a4sqdwkWEvS5i9wQspssmTf6YG95T3Tt/NZ8YV8n6ZhA5vh54\n549Asx1q/1VqNbvX6V3ku5nXCD4l/0J1TOhhH4GDl+oYDibDRVbirSFhfV0c\n+gGybAl0+nlJb/FiDLbc/9d87QUHkfpGPCrfx4PDix6oC+Sq8Has/Q5CVXFK\nBmco\r\n=XpNs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=8.3"},"gitHead":"8248d362d231274909d207c6e7582d87b9030581","scripts":{"test":"mocha","pretest":"tsc","prepublishOnly":"tsc"},"_npmUser":{"name":"hyurl","email":"i@hyurl.com"},"repository":{"url":"git+https://github.com/hyurl/better-lookup.git","type":"git"},"_npmVersion":"6.14.8","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"13.12.0","dependencies":{"@hyurl/utils":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","@types/node":"^14.11.1","https-proxy-agent":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.1.3_1600395209354_0.38609883784847865","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"better-lookup","version":"1.2.0","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"A-yon Lee","email":"the@ayon.li"},"license":"MIT","_id":"better-lookup@1.2.0","maintainers":[{"name":"ayonli","email":"the@ayon.li"}],"homepage":"https://github.com/ayonli/better-lookup#readme","bugs":{"url":"https://github.com/ayonli/better-lookup/issues"},"dist":{"shasum":"c33e49d7ea73c427fa377e8048542adddbd47ab7","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.2.0.tgz","fileCount":6,"integrity":"sha512-OpFvjPGwd+1Ujynm0NqFUa+vIJQNL/D73iU3cSx5OPEo6uS+T70TlMDHV3eO2CA+DelL6jGfwed1EzPPxIoe8A==","signatures":[{"sig":"MEQCIBTXSbNE5XAZMwKgFeAW46qLWS8d0s9oaAq/VNJD2mjEAiAJQNVKb7bmon5Q6lx1BfkI4Yn2ykQ51lkNKq5DQeuhwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39412},"main":"dist/index.js","types":"src/index.ts","engines":{"node":">=10"},"gitHead":"8b565e3e467bceca4b2fb070d0aa2c627560eb58","scripts":{"test":"mocha","pretest":"tsc","prepublishOnly":"tsc"},"_npmUser":{"name":"ayonli","email":"the@ayon.li"},"repository":{"url":"git+https://github.com/ayonli/better-lookup.git","type":"git"},"_npmVersion":"9.6.6","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"@hyurl/utils":"^0.2.26"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","typescript":"^4.9.5","@types/node":"^14.11.1","https-proxy-agent":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.2.0_1685824094093_0.5045660631015036","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"better-lookup","version":"1.3.0","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"A-yon Lee","email":"the@ayon.li"},"license":"MIT","_id":"better-lookup@1.3.0","maintainers":[{"name":"ayonli","email":"the@ayon.li"}],"homepage":"https://github.com/ayonli/better-lookup#readme","bugs":{"url":"https://github.com/ayonli/better-lookup/issues"},"dist":{"shasum":"06b5f4d6c605de7344dcf297076775f1955a8e51","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.3.0.tgz","fileCount":6,"integrity":"sha512-CVapgmbzGGX+IolijnGSftbazZfrWwdYGM/yctYzvgZOH2Xl7XerAihFjXMAhCWZNVZk0XxaFkmGfGgmKvr8yA==","signatures":[{"sig":"MEUCIQD62bOPef/w0Un9KYQh+I1EaViTOGhPYXpape+RUM7KNAIgPxTVfkegl7oSNOElKayxIVh9cd4CfYaExXtW9hP4nxA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":30668},"main":"index.js","types":"index.d.ts","engines":{"node":">=10"},"gitHead":"6b09987341386abbdb1342c8ce5270d7ee8487e2","scripts":{"test":"mocha","pretest":"tsc --module commonjs --target es2015 --esModuleInterop true test.ts","posttest":"rm -f test.js* && rm -f index.js*","postpublish":"ls index.* | grep -v index.ts | xargs rm -f","prepublishOnly":"tsc --module commonjs --target es2015 --declaration true --sourcemap true --noImplicitThis true index.ts"},"_npmUser":{"name":"ayonli","email":"the@ayon.li"},"repository":{"url":"git+https://github.com/ayonli/better-lookup.git","type":"git"},"_npmVersion":"9.6.6","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"20.2.0","dependencies":{"@hyurl/utils":"^0.2.26"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^7.2.0","typescript":"^4.9.5","@types/node":"^14.11.1","@types/mocha":"^7.0.2","https-proxy-agent":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.3.0_1685890931433_0.9259448338801317","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"better-lookup","version":"1.4.0","keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"A-yon Lee","email":"the@ayon.li"},"license":"MIT","_id":"better-lookup@1.4.0","maintainers":[{"name":"ayonli","email":"the@ayon.li"}],"homepage":"https://github.com/ayonli/better-lookup#readme","bugs":{"url":"https://github.com/ayonli/better-lookup/issues"},"dist":{"shasum":"21b3bb18fa6bcb0fd48e3f6b8b3144b955249f0b","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.4.0.tgz","fileCount":11,"integrity":"sha512-kM6SayJzuKT0ELdvpoCnb0KEWfjVh87zq/34dhUSznyTjtZhIOhICPReFMNXWowvINRGXgIm8CmGFt6uDmAo+w==","signatures":[{"sig":"MEUCIBS0fDOEiA72dySGTjk2MUfRvR6ZO5x5w1j6bGXNHjCcAiEA0qrFWPhDop17/a4oaV06A38VjRcBMonvOg+IfMWO6YM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61489},"main":"./cjs/index.js","types":"./cjs/index.d.ts","module":"./esm/index.js","engines":{"node":">=14"},"exports":{"types":"./cjs/index.d.ts","import":"./esm/index.js","require":"./cjs/index.js"},"gitHead":"3fe1bcd2581a48f0aa970af1d175bc791aefe938","scripts":{"test":"mocha -r ts-node/register test.ts","build":"tsc --module esnext --outDir esm && tsc --module commonjs --outDir cjs --declaration && node postbuild.js","prepack":"npm run build"},"_npmUser":{"name":"ayonli","email":"the@ayon.li"},"repository":{"url":"git+https://github.com/ayonli/better-lookup.git","type":"git"},"_npmVersion":"10.5.1","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","directories":{},"_nodeVersion":"22.0.0","dependencies":{"@ayonli/jsext":"^0.9.55"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.7.0","ts-node":"^10.9.2","typescript":"^4.9.5","@types/node":"^22.1.0","@types/mocha":"^10.0.7","https-proxy-agent":"^5.0.1"},"_npmOperationalInternal":{"tmp":"tmp/better-lookup_1.4.0_1722767885547_0.9697956875099485","host":"s3://npm-registry-packages"}},"1.4.1":{"name":"better-lookup","version":"1.4.1","description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","main":"./cjs/index.js","module":"./esm/index.js","types":"./cjs/index.d.ts","exports":{"require":"./cjs/index.js","import":"./esm/index.js","types":"./cjs/index.d.ts"},"scripts":{"build":"tsc --module esnext --outDir esm && tsc --module commonjs --outDir cjs --declaration && node postbuild.js","prepack":"npm run build","test":"mocha -r ts-node/register test.ts"},"repository":{"type":"git","url":"git+https://github.com/ayonli/better-lookup.git"},"keywords":["dns","lookup","atomic","async","cache"],"author":{"name":"A-yon Lee","email":"the@ayon.li"},"license":"MIT","bugs":{"url":"https://github.com/ayonli/better-lookup/issues"},"homepage":"https://github.com/ayonli/better-lookup#readme","devDependencies":{"@types/mocha":"^10.0.7","@types/node":"^22.1.0","https-proxy-agent":"^5.0.1","mocha":"^10.7.0","ts-node":"^10.9.2","typescript":"^4.9.5"},"dependencies":{"@ayonli/jsext":"^0.9.56"},"engines":{"node":">=14"},"_id":"better-lookup@1.4.1","gitHead":"d5b63e1334be3af4d32fcb47c8e03002156e3448","_nodeVersion":"22.0.0","_npmVersion":"10.5.1","dist":{"integrity":"sha512-anGRewBGbO+9Gv9+y7nXcau78t0mo06a8JqY2oj+VeaIrNV9Kkv7k0+OOMCBnKVKvHkAopelmwil3czt3lsWog==","shasum":"e8cbe22f1bb487c054b3871477d5b262b8ede42c","tarball":"https://registry.npmjs.org/better-lookup/-/better-lookup-1.4.1.tgz","fileCount":11,"unpackedSize":61489,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOIA/Qvdy/EGCSXpr5TKMpLpDuh6igaA8CNh1ixyjheQIgdcrOxxOY4MJbJupHTUthrMEcAO01mfpink6uDau/UU8="}]},"_npmUser":{"name":"ayonli","email":"the@ayon.li"},"directories":{},"maintainers":[{"name":"ayonli","email":"the@ayon.li"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/better-lookup_1.4.1_1722790952169_0.6928706846653985"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-25T09:45:16.722Z","modified":"2024-08-04T17:02:32.537Z","1.0.0":"2020-07-25T09:45:16.826Z","1.0.1":"2020-07-27T07:45:27.721Z","1.1.0":"2020-08-26T11:06:30.821Z","1.1.1":"2020-09-08T09:02:27.615Z","1.1.2":"2020-09-09T06:35:30.759Z","1.1.3":"2020-09-18T02:13:29.455Z","1.2.0":"2023-06-03T20:28:14.265Z","1.3.0":"2023-06-04T15:02:11.595Z","1.4.0":"2024-08-04T10:38:05.725Z","1.4.1":"2024-08-04T17:02:32.351Z"},"bugs":{"url":"https://github.com/ayonli/better-lookup/issues"},"author":{"name":"A-yon Lee","email":"the@ayon.li"},"license":"MIT","homepage":"https://github.com/ayonli/better-lookup#readme","keywords":["dns","lookup","atomic","async","cache"],"repository":{"type":"git","url":"git+https://github.com/ayonli/better-lookup.git"},"description":"A better async DNS lookup function for Node.js that implements atomic cache operation.","maintainers":[{"name":"ayonli","email":"the@ayon.li"}],"readme":"# Better Lookup\n\n**A better async DNS lookup function for Node.js that implements atomic**\n**cache operation.**\n\n## The problem of `dns.lookup`\n\nThis is a quotation from the Node.js official website:\n\n> Though the call to `dns.lookup()` will be asynchronous from JavaScript's\n> perspective, it is implemented as a synchronous call to `getaddrinfo(3)`\n> that runs on libuv's threadpool. This can have surprising negative performance\n> implications for some applications.\n\nIt is very unfortunate that I have been suffering from this problem for quite a\nlong time before I realized it. Then I found some solutions on NPM:\n\n- [cacheable-lookup](https://www.npmjs.com/package/cacheable-lookup)\n- [dns-lookup-cache](https://www.npmjs.com/package/dns-lookup-cache)\n\nBut after trying them out, I found there are still some problems in them, for \nexample, they don't implements atomic operation, which means the cache \nwrite-procedure may happen many times when firing multiple requests at the \nsame time.\n\nSo I decided to write my own lookup function and after using it for a while, I\ndecided to share it on NPM.\n\n### How to perform atomic operation\n\nThis package uses a throttle method to queue operations of the same \nsource/tag, which guarantees an atomic operation in async scenarios, and that\nwill ensure no matter how many requests are fired at the same time, there will \nalways be only one write-procedure for the cache.\n\nThis package uses `dns.resolve4()` and `dns.resolve6()` under the hood, which is\nthe real-async replacements for `dns.lookup()`, and implements the `/etc/hosts`\nfile support (both on Unix-like and WinNT platforms).\n\n## Example\n\n### Using `lookup`\n\n```ts\nimport * as https from \"https\";\nimport { lookup } from \"better-lookup\";\n\nvar req = https.get(\"https://github.com/ayonli/better-lookup\", {\n    lookup\n}, res => {\n    // ...\n});\n\n// Or only resolve to Ipv4 records, works better for most of the websites.\nvar req = https.get(\"https://github.com/ayonli/better-lookup\", {\n    family: 4,\n    lookup\n}, res => {\n    // ...\n});\n```\n\n### Using `install`\n\nOther than using the `lookup` option for requests (some packages, like Axios,\nmay not support it), we can attach the lookup functionality to the HTTP(S)\nagent via `install()`.\n\n```ts\nimport * as https from \"https\";\nimport { install } from \"better-lookup\";\n\ninstall(https.globalAgent);\n\nvar req = https.get(\"https://github.com/ayonli/better-lookup\", res => {\n    // ...\n});\n```\n\n## API\n\n## Types\n\n```ts\ntype AddressInfo = { address: string, family: 4 | 6; };\ntype LookupCallback<T extends string | AddressInfo[]> = (\n    err: NodeJS.ErrnoException,\n    address: T,\n    family?: 4 | 6\n) => void;\n```\n\n### lookup\n\n```ts\n/**\n * Queries IP addresses of the given hostname, this operation is async and\n * atomic, and uses cache when available. When `family` is omitted, both\n * `A (IPv4)` and `AAAA (IPv6)` records are searched, however only one address\n * will be returned if `options.all` is not set.\n * \n * NOTE: TTL is support by this function, but it will enforce refreshing after\n * 10 seconds.\n */\nexport function lookup(hostname: string, family?: 0 | 4 | 6): Promise<string>;\nexport function lookup(hostname: string, callback: LookupCallback<string>): void;\nexport function lookup(\n    hostname: string,\n    family: 0 | 4 | 6,\n    callback: LookupCallback<string>\n): void;\nexport function lookup(\n    hostname: string,\n    options: { family?: 0 | 4 | 6; }\n): Promise<string>;\nexport function lookup(\n    hostname: string,\n    options: { family?: 0 | 4 | 6; },\n    callback: LookupCallback<string>\n): void;\nexport function lookup(\n    hostname: string,\n    options: { family?: 0 | 4 | 6; all: true; }\n): Promise<AddressInfo[]>;\nexport function lookup(\n    hostname: string,\n    options: { family?: 0 | 4 | 6; all: true; },\n    callback: LookupCallback<AddressInfo[]>\n): void;\n```\n\n### install\n\n```ts\n/**\n * Attaches the custom lookup functionality to the given `agent`, the `family` \n * argument configures the default IP family used to resolve addresses when no\n * `family` option is specified in the `http.request()`, the default value is\n * `0`. \n */\nexport function install<T extends HttpAgent | HttpsAgent>(\n    agent: T,\n    family?: 0 | 4 | 6\n): T;\n```\n","readmeFilename":"README.md"}