{"_id":"@deliverables/capacitor-location","_rev":"1-f3693bf9340836960077ba9161ab8350","name":"@deliverables/capacitor-location","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@deliverables/capacitor-location","version":"1.0.0","description":"Package for the Capacitor Location for web and mobile","author":{"name":"hitesh-webRepo"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Deliverable-Services/capacitor-location.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.tsx","engines":{"node":">=12"},"scripts":{"build":"microbundle-crl --no-compress --format modern,cjs","start":"microbundle-crl watch --no-compress --format modern,cjs","prepare":"run-s build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd documentation && yarn install && yarn run build","deploy":"gh-pages -d documentation/build"},"peerDependencies":{"@capacitor-community/background-geolocation":"^1.2.2","@capacitor/core":"^3.6.0","@capacitor/geolocation":"^1.3.1","react":"^16.0.0"},"devDependencies":{"@testing-library/jest-dom":"^4.2.4","@testing-library/react":"^9.5.0","@testing-library/user-event":"^7.2.1","@types/jest":"^25.1.4","@types/node":"^12.12.38","@types/react":"^16.9.27","@types/react-dom":"^16.9.7","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle-crl":"^0.13.10","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1","typescript":"^3.7.5"},"gitHead":"977b66a2effb8a20caac2a1837dceb7e7238282e","bugs":{"url":"https://github.com/Deliverable-Services/capacitor-location/issues"},"homepage":"https://github.com/Deliverable-Services/capacitor-location#readme","_id":"@deliverables/capacitor-location@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-fUrA1hnzL/4e+kVHbhnrka7YDm0jlQsmrZroaHhs6xuHFVkkkVeCiAO274kro9jh68UboKXjsnGdsSctAaq60A==","shasum":"94e44ea058138a0b51728e26129de6c1f60aec90","tarball":"https://registry.npmjs.org/@deliverables/capacitor-location/-/capacitor-location-1.0.0.tgz","fileCount":17,"unpackedSize":28247,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDA9b9/bS8Idu60wV9jMSvyBgf8wMvRHg5GqSXRQTFRDAiEAjHbHo/xngoqHdhM/GrBhLJnCBEURKQohaEeZacdQIH0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiruC8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfLBAAmeMTDeIKltpqnQLa0XD5JtuVTMF0Cjhn17SsYiQ8/9ED+JKZ\r\nKpeyEyF4J+xZZC0vfv4fzi2lnKmuUyqf9Reb2e41JxBLEAHuiChkl1xCT6vO\r\n5GWnR4LPNcgpSfONUzL4o28X+lx4ziGUM7/MCElLKoSl5C7ZzQJIuDw2wSG6\r\nfwsbM4urEGjlT4Nk2osY9ZvIRwlgqy8U1FwXN+SsPqH9NZHVdHNRzV21DpXc\r\nO8nbc2Pz34IV61UxaG5vyIBaLjtebzXGumU0cZQi3yUgOldeXmfHc6jP5osY\r\nAlQp+6LHKBiqRWxw7s5Ve9xU+jtsIOzKPem9X/02psLk5pZjmxxlvEIlUy7J\r\nWHlqHcSwaNlzhCLrw3B65iKfjC+YF3bIwk73k7bSnnbIDF4kgLezz4B02ZWh\r\nj6iP9IZ8kHTFsh4uYHkqnjonsrPcDGps8f8ZhKwlGRlztsk2hxuWZKP/MQvf\r\nqqAMw0kyMdlnYoSgV0rHCiDTlA5sgEWkMbHC52e/T0cFUfslV28Vv3dyGK0n\r\ngELakUkLm3kWcd/Y3fortTMwowNuQdUDAwjHuoZvyfnWkTODSg26TGJJZJq2\r\nXfWE7OOYSqvy7zvgrhhMu7br8h7CR7ahUdPiDhW2S4tIVJadfn0JLbgwU1lK\r\nDRH6dt/xusKrfMf66ko+j+WvJDhbPDaiLy8=\r\n=ofoV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"webdev.hitesh","email":"webdev.hitesh@gmail.com"},"directories":{},"maintainers":[{"name":"webdev.hitesh","email":"webdev.hitesh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-location_1.0.0_1655627964414_0.30089724356715153"},"_hasShrinkwrap":false},"1.0.1":{"name":"@deliverables/capacitor-location","version":"1.0.1","description":"Package for the Capacitor Location for web and mobile","author":{"name":"hitesh-webRepo"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Deliverable-Services/capacitor-location.git"},"main":"dist/index.js","module":"dist/index.modern.js","source":"src/index.tsx","engines":{"node":">=12"},"scripts":{"build":"microbundle-crl --no-compress --format modern,cjs","start":"microbundle-crl watch --no-compress --format modern,cjs","prepare":"run-s build","test":"run-s test:unit test:lint test:build","test:build":"run-s build","test:lint":"eslint .","test:unit":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","predeploy":"cd documentation && yarn install && yarn run build","deploy":"gh-pages -d documentation/build"},"peerDependencies":{"@capacitor-community/background-geolocation":"^1.2.2","@capacitor/core":"^3.6.0","@capacitor/geolocation":"^1.3.1","react":"^16.0.0"},"devDependencies":{"@testing-library/jest-dom":"^4.2.4","@testing-library/react":"^9.5.0","@testing-library/user-event":"^7.2.1","@types/jest":"^25.1.4","@types/node":"^12.12.38","@types/react":"^16.9.27","@types/react-dom":"^16.9.7","@typescript-eslint/eslint-plugin":"^2.26.0","@typescript-eslint/parser":"^2.26.0","babel-eslint":"^10.0.3","cross-env":"^7.0.2","eslint":"^6.8.0","eslint-config-prettier":"^6.7.0","eslint-config-standard":"^14.1.0","eslint-config-standard-react":"^9.2.0","eslint-plugin-import":"^2.18.2","eslint-plugin-node":"^11.0.0","eslint-plugin-prettier":"^3.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-react":"^7.17.0","eslint-plugin-standard":"^4.0.1","gh-pages":"^2.2.0","microbundle-crl":"^0.13.10","npm-run-all":"^4.1.5","prettier":"^2.0.4","react":"^16.13.1","react-dom":"^16.13.1","react-scripts":"^3.4.1","typescript":"^3.7.5"},"gitHead":"e4bc09359c6927b6b38185972f8ca695d49af3c1","bugs":{"url":"https://github.com/Deliverable-Services/capacitor-location/issues"},"homepage":"https://github.com/Deliverable-Services/capacitor-location#readme","_id":"@deliverables/capacitor-location@1.0.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-r4F2LDUNhpMvsoQRvP/eL1hteDpL0cg3hHPTaU+jEMjglTVG+Xu4GlEI0nTsox+C7NOvMlgTfPQOBHIKdaZ0IA==","shasum":"d4f5211526654a044dc8b3f4a8dab6039e8c0bf8","tarball":"https://registry.npmjs.org/@deliverables/capacitor-location/-/capacitor-location-1.0.1.tgz","fileCount":17,"unpackedSize":28343,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDLw7aLhVWplba/5TYxmaQVz8+rfQYelJ07wiy2nQQlFAiEA2oCRfsXzz8ypqKU9QiUBAVLyTcGCUtevQzHEF/UlvmQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiruPlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmri9A//czNOQYU0eEssLUXQkzR7lrg8bEL8ljzp2PG1s0QsogvYl8pP\r\nuNgR2VBKCjCpYMRo3auQ5+GGGmhhTZewY6WbqlFhQvzQt4e6qsF2mlgK29dm\r\nSKPIsA3/STP9AMWmBKnzZaSFH65vJKlqkWn8DSVaTqByI8CTsJvnz6r7qmDv\r\nTcsZZNCENQqn7PZ2Fj4c2lGA31jDEMSbyYV+b7zlNXISe4FCBJnt/p6mINVS\r\nGV4hadJBiCyryuZzxe2RtU11Wk2xvgeZgwTQKTnHPTD/rIQq98g6ghAa1sIp\r\nEFC7/s4vSkHB7DR6kqLgN7RXAokiVHRom1esYYMU+pRstXOC5SCftmv/411u\r\nErACCt0LalRK57VeViYiBGEFJ5mRz0796Nvr5SyfSZOzQs1uEneS5XHU0z4G\r\nb7zdKF3uQTZB6Cw6r56sDuPZsG8O6eVmE78If1nx+5e3OvRbqwmyWTcUk3Zu\r\nK7SNJA/id02Hm4B85wR4gl4I2SN7HxquvldTapP5z2cUM4cFbCdON8S9H1VW\r\nWQBeBkNxcVxPqK2ucbgTbij5SRnDR0AMHI06XRX4kGx5imc6RtbIQWe37imr\r\nr2arPr3qnOZCxD5CHImQnzcalfiUn02CLbIuIkTcDtsMmwukBT3g/idvC+Me\r\nWj7gJFeLd/oXQwhJnrX/3gC1BNH6BJGoEUI=\r\n=yAdG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"webdev.hitesh","email":"webdev.hitesh@gmail.com"},"directories":{},"maintainers":[{"name":"webdev.hitesh","email":"webdev.hitesh@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/capacitor-location_1.0.1_1655628772932_0.0072619953570112195"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-19T08:39:24.357Z","1.0.0":"2022-06-19T08:39:24.547Z","modified":"2022-06-19T08:52:53.162Z","1.0.1":"2022-06-19T08:52:53.089Z"},"maintainers":[{"name":"webdev.hitesh","email":"webdev.hitesh@gmail.com"}],"description":"Package for the Capacitor Location for web and mobile","homepage":"https://github.com/Deliverable-Services/capacitor-location#readme","repository":{"type":"git","url":"git+https://github.com/Deliverable-Services/capacitor-location.git"},"author":{"name":"hitesh-webRepo"},"bugs":{"url":"https://github.com/Deliverable-Services/capacitor-location/issues"},"license":"MIT","readme":"# Geolocation for web, android and ios.\n\n> React library for fetching location on web, android and ios using capacitor js.\n\n[![NPM](https://img.shields.io/npm/v/@deliverables/capacitor-location.svg)](https://www.npmjs.com/package/@deliverables/capacitor-location) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save @deliverables/capacitor-location\n\nyarn add @deliverables/capacitor-location\n\n```\n\n## Usage\n\n```tsx\nimport { useCapacitorLocation } from '@deliverables/capacitor-location'\n\nconst { coords, removeLocationWatcher, removeBackgroundLocationWatcher } =\n  useCapacitorLocation({\n    watchForBackgroundLocation: true,\n    onBackgroundLocationChange: (location) => {\n      console.log('Background location changed', location)\n    },\n    onError: (error) => {\n      alert('Error: ' + error.message)\n    },\n    onBackgroundLocationError(error) {\n      alert('Background location error: ' + error.message)\n    }\n  })\n```\n\n## License\n\nMIT © [hitesh-webRepo](https://github.com/hitesh-webRepo)\n","readmeFilename":"README.md"}