UNPKG

renew-ip

Version:

A module for renewing 4G/LTE IP addresses on tethered Android phones from Node JS.

1 lines 622 B
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../src/factory.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAGjC;;;;;GAKG;AACI,MAAM,SAAS,GAAG,CAAC,MAA2B,EAAW,EAAE,CAChE,IAAI,eAAM,CAAC,MAAM,CAAC,CAAC,KAAK,CAAA;AADb,QAAA,SAAS,aACI","sourcesContent":["import { Router } from \"./router\"\nimport { PartialRouterConfig, RenewIp } from \"./types\"\n\n/**\n * Factory interface which creates new renewal router and returns the renewal function.\n *\n * @param {PartialRouterConfig} config\n * @return {RenewIp}\n */\nexport const useRouter = (config: PartialRouterConfig): RenewIp =>\n new Router(config).renew\n"]}