{"_id":"ymaps","_rev":"3-3f579ccadd7fc28bce758dd20b874237","name":"ymaps","description":"Yandex Maps on-demand promise-based widget loader","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.1":{"name":"ymaps","version":"0.1.1","description":"Yandex Maps on-demand promise-based widget loader","main":"dist/ymaps.js","scripts":{"test":"jest --env=jsdom","clean":"del-cli dist","prebuild":"npm run clean","build":"babel src -d dist","publishOnly":"npm run build"},"keywords":["ymaps","yandex","maps","yandex-maps"],"repository":{"type":"git","url":"git+https://github.com/sergeysolovev/ymaps.git"},"bugs":{"url":"https://github.com/sergeysolovev/ymaps/issues"},"homepage":"https://github.com/sergeysolovev/ymaps#readme","author":{"name":"Sergey Solovev","email":"me@sergeysolovev.com"},"license":"MIT","devDependencies":{"babel-cli":"6.24.1","babel-jest":"20.0.3","babel-preset-es2015":"6.24.1","del-cli":"1.1.0","file-url":"2.0.2","jest":"20.0.4"},"dependencies":{},"gitHead":"ae6e6d24e88859a5b4eec419f7fe5b2c2d60a5bf","_id":"ymaps@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"sergees","email":"me@sergeysolovev.com"},"dist":{"integrity":"sha512-LCMgNCvPqRjwW4FWUT+Ly6T93W44OCYWFzFnTkUwMq0uy4B3VIRUN+uinX++idXtrJCnA/32FxEb/E505a0YUQ==","shasum":"aab7707f3f1c998e05e6c935087b32998e92d98e","tarball":"https://registry.npmjs.org/ymaps/-/ymaps-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHA/ITkup4KjJjL8eaMXNQX1wT2IxzaBlFF2/V41p0b/AiEAhHkf7gaDj/lsDNTxod6iX57aciv79fjJj8iNOPDgjCk="}]},"maintainers":[{"name":"sergees","email":"me@sergeysolovev.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ymaps-0.1.1.tgz_1502651758258_0.6264489283785224"},"directories":{}},"0.2.0":{"name":"ymaps","version":"0.2.0","description":"Yandex Maps on-demand promise-based widget loader","keywords":["maps","yandex","yandex-maps","ymaps"],"homepage":"https://github.com/sergeysolovev/ymaps#readme","bugs":{"url":"https://github.com/sergeysolovev/ymaps/issues"},"repository":{"type":"git","url":"git+https://github.com/sergeysolovev/ymaps.git"},"license":"MIT","author":{"name":"Sergey Solovev","email":"me@sergeysolovev.com"},"main":"dist/ymaps.cjs.js","module":"dist/ymaps.esm.js","scripts":{"prebuild":"yarn clean","build":"rollup -c","clean":"del-cli dist","prettier":"prettier --write \"**/*.{js,json,md}\"","prettier-check":"prettier --check \"**/*.{js,json,md}\"","publishOnly":"yarn build","test":"jest"},"jest":{"testEnvironmentOptions":{"runScripts":"dangerously","resources":"usable"}},"devDependencies":{"@babel/core":"7.4.5","@babel/preset-env":"7.4.5","babel-jest":"24.8.0","del-cli":"2.0.0","file-url":"3.0.0","jest":"24.8.0","prettier":"1.18.2","rollup":"1.15.6","rollup-plugin-babel":"4.3.2"},"licenseText":"MIT License\n\nCopyright (c) 2017 Sergey Solovev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"ymaps@0.2.0","dist":{"shasum":"3f75c2182a3dcb3b3ee621917a91bdde7f042a6f","integrity":"sha512-Sj2+4YLLTMIOJG6JV4BhvMDjU+6pGB44MeLoK2rzuqznvB4MrwiXGjkZi+9TWxodyVLRyWgU1hWyOhjwEW5xRw==","tarball":"https://registry.npmjs.org/ymaps/-/ymaps-0.2.0.tgz","fileCount":7,"unpackedSize":6599,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdC4qfCRA9TVsSAnZWagAA2X0P/2L8PgdxWCA3YCmBEsby\noUHlHVGLJ+FacuMlpkTnYcvyj4h0AaZqFrgbeyJPOvwnWG2VORvYpotYJzSH\n6Xv94yAXAlvGL0iuMZSsh/ePt0DXecpzVf/20mBrk+UQVQ3D3hXAcpTUlq4t\nmsd9rSnHbFhyKbCiOmnVk5DIuYXVIPZ59R/hRI75KVd4ALv2QmutvjPAw9h3\nSfpCKvW1u8tACeeoDYXcNHVtARDVfmPq0iuNJbW5N96lS4t5Cd8tw7UYRJAB\n7pZxc7P2NSIQdGH9aUA9WTJPvmz6MhMvvrgo2VmsqIPNMJzlhsZvelji1kf7\nCg42T06231TLaAobjzsEAqLW5VqLvHUHUDjJ3myyt3ztyKlOG/ggwdayCGUs\n38N7IZb53k/3btzTQY8ZQvV4Cx4f7owVhnKiyta0jwPO7TgwNG/4NEX3Tk4G\nmdxdoM8bDHIDP6qQ2yoPVI3a/3DAueBn3J8cYVuUWu6QhcUgV7IUGWZZsScR\nP0BOFWE58d1AbCj27zGHsD4DIOvV7EgAUYPfCaKXEZtv92VDIKpBZxuiaLT/\nHjmTRkeB2xx+VQUMU/TT4M8pltjZElK89WJetL+TBQJNytLvo14OpKEtOB+/\n88EUrDMiJVird6/bgxC69dP7qyfHjlXFsSM+PuXzGvn/NgZ7lB53X0f3ITmt\ndj8l\r\n=Yz/d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbbl5N+wsT7CqeCeo7BrtifoMBKU8QZ9Qq1RTfSBGiwwIgC1rfd4tXHFI/Z3RbFI7sFHWHjJaiPbKeXU9yggpHooM="}]},"maintainers":[{"name":"sergees","email":"me@sergeysolovev.com"}],"_npmUser":{"name":"sergees","email":"me@sergeysolovev.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ymaps_0.2.0_1561037471126_0.14089329096973624"},"_hasShrinkwrap":false},"0.2.1":{"name":"ymaps","version":"0.2.1","description":"Yandex Maps on-demand promise-based widget loader","keywords":["maps","yandex","yandex-maps","ymaps"],"homepage":"https://github.com/sergeysolovev/ymaps#readme","bugs":{"url":"https://github.com/sergeysolovev/ymaps/issues"},"repository":{"type":"git","url":"git+https://github.com/sergeysolovev/ymaps.git"},"license":"MIT","author":{"name":"Sergey Solovev","email":"me@sergeysolovev.com"},"main":"dist/ymaps.cjs.js","module":"dist/ymaps.esm.js","scripts":{"prebuild":"yarn clean","build":"rollup -c","clean":"del-cli dist","prettier":"prettier --write \"**/*.{js,json,md}\"","prettier-check":"prettier --check \"**/*.{js,json,md}\"","publishOnly":"yarn build","test":"jest"},"jest":{"testEnvironmentOptions":{"runScripts":"dangerously","resources":"usable"}},"devDependencies":{"@babel/core":"7.4.5","@babel/preset-env":"7.4.5","babel-jest":"24.8.0","del-cli":"2.0.0","file-url":"3.0.0","jest":"24.8.0","prettier":"1.18.2","rollup":"1.15.6","rollup-plugin-babel":"4.3.2"},"licenseText":"MIT License\n\nCopyright (c) 2017 Sergey Solovev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"ymaps@0.2.1","dist":{"shasum":"eaefa6063255ca0183f7d17e5f9bd668cdd22a26","integrity":"sha512-7PXl4mwipFyqBuyWsphOEEP+9wlkIyNKcXlhrWi+mX8R9m9Fz1bNdPGSMdAw3zTZRq4vjOQ7WIFFCvf7Q5UX/A==","tarball":"https://registry.npmjs.org/ymaps/-/ymaps-0.2.1.tgz","fileCount":7,"unpackedSize":6765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdC5TvCRA9TVsSAnZWagAA3DAP/3KnVrYJpBGbEOyVaurn\n2oonLNI9efwr6Gs3LdNgvtu+azvHI9HVzisBKM37uaNasAs2mNzHgUMOVX9D\ngAb4dGy5j6hVAau8XTOtXIAP8cVV556aMhZotSYFypXWfUdt/dB6xX3fHEXX\nHOd8Lt7zpcJf6fWqdwNN+FWzYMUMQfH7wj8LimFrHPOR2cYXN4MKwlDOShL/\nMCKDU5gk1TYGFMmCqIxJe3t8zA4dOsmQOaU//le3PS1iGA4hAy3VwU1R7PkO\n0ectMzqjxCuMAFRGRDij/pP91EHBvy9WWujHGsWISYnTCLSPE/yTixJvUkzF\nYyIMeyL2RPsW2E0bWJMiBJJZF1fxX00qupZmbEWd9gI+xmBWFul3utWNQGit\n8u0C7QDzsq0PHPexukId5CENVRI8IjF8kqml5mziDqAsSeG23Z1O8kwhBFtF\ntHaVCMZ4mu5h35Rei/scoaAqd2kMEtJptrZzVBvbumvlSNtW/+gmKTHnNI1z\nXejy80KRGWRLfHxt4mEYPPRwzVNdG4VgBvd/vxFBXr7cFO5iU/MbiGIMXvOS\nibDaxsd/ARahRvICt7FIuoNDvGloZakx2xG+IDhc/jaeDlk47MCmC4PWLmpy\n85Lu8UR2GXsjqRmlRBXzVV3EjFPUNSSLyMcC0bspJxisHJB9f72L8+EQ66IV\n7KfT\r\n=ta0b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFloYzRF7Rq4+hJpwHRU88YU1jjePvtwLVqFApzYKsgSAiBeKnivxHdI0Y9maJEWIXxyesjoOqu2KMnFkoOMW8/QVg=="}]},"maintainers":[{"name":"sergees","email":"me@sergeysolovev.com"}],"_npmUser":{"name":"sergees","email":"me@sergeysolovev.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ymaps_0.2.1_1561040110485_0.22475904774738198"},"_hasShrinkwrap":false}},"readme":"# ymaps\n\n[![npm version](https://img.shields.io/npm/v/ymaps.svg?style=flat)](https://npmjs.org/package/ymaps)\n[![CircleCI](https://circleci.com/gh/sergeysolovev/ymaps.svg?style=shield)](https://circleci.com/gh/sergeysolovev/ymaps)\n\nYandex Maps on-demand promise-based widget loader.\n\n- Appends [Yandex Maps API](https://tech.yandex.com/maps/jsapi/) script to the\n  document body.\n- Returns a promise which resolves as soon as the script has loaded and the\n  [API is ready](https://tech.yandex.com/maps/doc/jsapi/2.1/dg/concepts/load-docpage/#api-ready).\n\nThis way the widget doesn’t load until it’s needed to decrease page load time.\n\n[View on CodeSandbox →](https://codesandbox.io/s/ymaps-v1cb6)\n\n## Quickstart\n\nInstall from the command line:\n\n```shell\nnpm install ymaps\n```\n\nUse in your code to load the widget:\n\n```javascript\nimport ymaps from 'ymaps';\n\nymaps\n  .load()\n  .then(maps => {\n    const map = new maps.Map('your-map-container', {\n      center: [-8.369326, 115.166023],\n      zoom: 7\n    });\n  })\n  .catch(error => console.log('Failed to load Yandex Maps', error));\n```\n\nTo use another language simply pass a valid `src` to `ymaps.load`\n\n```javascript\nymaps.load('https://api-maps.yandex.ru/2.1/?lang=en_US').then(maps => {\n  /* ... */\n});\n```\n\nThe information about other options is available in the\n[API docs](https://tech.yandex.com/maps/doc/jsapi/2.1/dg/concepts/load-docpage/).\nPlease check out [known issues](#known-issues) to see not supported options.\n\n## Running the tests\n\n```shell\nnpm test\n```\n\n## Known issues\n\n- `load` parameter, except when it's set to `package.full` is causing an error\n  \"TypeError: s is not a constructor\". To reproduce, try to pass\n  `\"//api-maps.yandex.ru/2.1/?lang=en_US&load=Map\"` to `ymaps.load` in the\n  [example above](#usage). PR is welcome!\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of\nconduct, and the process for submitting pull requests to us.\n\n## Versioning\n\n[SemVer](http://semver.org/) is used for versioning. For the versions available,\nsee the [tags on this repository](https://github.com/sergeysolovev/ymaps/tags).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file\nfor details.\n","maintainers":[{"name":"sergees","email":"me@sergeysolovev.com"}],"time":{"modified":"2022-05-25T06:28:14.873Z","created":"2017-08-13T19:15:58.335Z","0.1.1":"2017-08-13T19:15:58.335Z","0.2.0":"2019-06-20T13:31:11.234Z","0.2.1":"2019-06-20T14:15:10.628Z"},"homepage":"https://github.com/sergeysolovev/ymaps#readme","keywords":["maps","yandex","yandex-maps","ymaps"],"repository":{"type":"git","url":"git+https://github.com/sergeysolovev/ymaps.git"},"author":{"name":"Sergey Solovev","email":"me@sergeysolovev.com"},"bugs":{"url":"https://github.com/sergeysolovev/ymaps/issues"},"license":"MIT","readmeFilename":"README.md"}