{"name":"webrtc-adapter","version":"7.4.0","description":"A shim to insulate apps from WebRTC spec changes and browser prefix differences","license":"BSD-3-Clause","main":"./dist/adapter_core.js","types":"./index.d.ts","module":"./src/js/adapter_core.js","repository":{"type":"git","url":"git+https://github.com/webrtchacks/adapter.git"},"authors":["The WebRTC project authors (https://www.webrtc.org/)","The adapter.js project authors (https://github.com/webrtchacks/adapter/)"],"scripts":{"preversion":"git stash && npm install && npm update && BROWSER=chrome BVER=stable CI=true npm test && git checkout -B bumpVersion && grunt build && grunt copyForPublish && git add package.json release/* && git commit -m 'Add adapter artifacts' --allow-empty","version":"","postversion":"export GITTAG=\"echo $(git describe --abbrev=0 --tags | sed 's/^v//')\" && git push --force --set-upstream origin bumpVersion --follow-tags && git checkout gh-pages && git pull && cp out/adapter.js adapter.js && cp adapter.js adapter-`$GITTAG`.js && rm adapter-latest.js && ln -s adapter-`$GITTAG`.js adapter-latest.js && mkdir -p adapter-`$GITTAG`-variants && cp out/adapter.js adapter-`$GITTAG`-variants/ && cp out/adapter_*.js adapter-`$GITTAG`-variants/ && git add adapter.js adapter-latest.js adapter-`$GITTAG`.js adapter-`$GITTAG`-variants && git commit -m `$GITTAG` && git push --set-upstream origin gh-pages && git checkout master","prepare":"grunt build","prepublishonly":"npm test","test":"grunt && grunt downloadBrowser && mocha test/unit && karma start test/karma.conf.js"},"dependencies":{"rtcpeerconnection-shim":"^1.2.15","sdp":"^2.12.0"},"engines":{"npm":">=3.10.0","node":">=6.0.0"},"devDependencies":{"babel-core":"^6.26.3","babel-preset-env":"^1.7.0","brfs":"^1.5.0","chai":"^3.5.0","grunt":"^1.0.4","grunt-babel":"^7.0.0","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.1","grunt-contrib-clean":"^1.1.0","grunt-contrib-copy":"^1.0.0","grunt-eslint":"^19.0.0","grunt-shell":"^2.1.0","karma":"^4.4.1","karma-browserify":"^5.2.0","karma-chai":"^0.1.0","karma-chrome-launcher":"^2.2.0","karma-edge-launcher":"^0.4.1","karma-firefox-launcher":"^1.3.0","karma-mocha":"^1.3.0","karma-mocha-reporter":"^2.2.3","karma-safari-launcher":"^1.0.0","karma-stability-reporter":"^3.0.1","mocha":"^5.2.0","sinon":"^2.2.0","sinon-chai":"^2.14.0","travis-multirunner":"^4.6.0"},"readme":"[![Build Status](https://travis-ci.org/webrtcHacks/adapter.svg)](https://travis-ci.org/webrtcHacks/adapter)\n\n# WebRTC adapter #\nadapter.js is a shim to insulate apps from spec changes and prefix differences. In fact, the standards and protocols used for WebRTC implementations are highly stable, and there are only a few prefixed names. For full interop information, see [webrtc.org/web-apis/interop](https://www.webrtc.org/web-apis/interop).\n\nThis repository used to be part of the WebRTC organisation on github but moved. We aim to keep\nthe old repository updated with new releases.\n\n## Install ##\n\n#### NPM\n```bash\nnpm install webrtc-adapter\n```\n\n#### Bower\n```bash\nbower install webrtc-adapter\n```\n\n## Usage ##\n##### Javascript\nJust import adapter:\n```\nimport adapter from 'webrtc-adapter';\n```\nNo further action is required.\n\n##### NPM\nCopy to desired location in your src tree or use a minify/vulcanize tool (node_modules is usually not published with the code).\nSee [webrtc/samples repo](https://github.com/webrtc/samples) as an example on how you can do this.\n\n#### Prebuilt releases\n##### Web\nIn the [gh-pages branch](https://github.com/webrtcHacks/adapter/tree/gh-pages) prebuilt ready to use files can be downloaded/linked directly.\nLatest version can be found at https://webrtc.github.io/adapter/adapter-latest.js.\nSpecific versions can be found at https://webrtc.github.io/adapter/adapter-N.N.N.js, e.g. https://webrtc.github.io/adapter/adapter-1.0.2.js.\n\n##### Bower\nYou will find `adapter.js` in `bower_components/webrtc-adapter/`.\n\n##### NPM\nIn node_modules/webrtc-adapter/out/ folder you will find 4 files:\n* `adapter.js` - includes all the shims and is visible in the browser under the global `adapter` object (window.adapter).\n* `adapter_no_edge.js` - same as above but does not include the Microsoft Edge (ORTC) shim.\n* `adapter_no_edge_no_global.js` - same as above but is not exposed/visible in the browser (you cannot call/interact with the shims in the browser).\n* `adapter_no_global.js` - same as `adapter.js` but is not exposed/visible in the browser (you cannot call/interact with the shims in the browser).\n\nInclude the file that suits your need in your project.\n\n## Development ##\nHead over to [test/README.md](https://github.com/webrtcHacks/adapter/blob/master/test/README.md) and get started developing.\n\n## Publish a new version ##\n* Go to the adapter repository root directory\n* Make sure your repository is clean, i.e. no untracked files etc. Also check that you are on the master branch and have pulled the latest changes.\n* Depending on the impact of the release, either use `patch`, `minor` or `major` in place of `<version>`. Run `npm version <version> -m 'bump to %s'` and type in your password lots of times (setting up credential caching is probably a good idea).\n* Create and merge the PR if green in the GitHub web ui\n* Go to the releases tab in the GitHub web ui and edit the tag.\n* Add a summary of the recent commits in the tag summary and a link to the diff between the previous and current version in the description, [example](https://github.com/webrtcHacks/adapter/releases/tag/v3.4.1).\n* Go back to your checkout and run `git pull`\n* Run `npm publish` (you need access to the [webrtc-adapter npmjs package](https://www.npmjs.com/package/webrtc-adapter)). For big changes, consider using a [tag version](https://docs.npmjs.com/adding-dist-tags-to-packages) such as `next` and then [change the dist-tag after testing](https://docs.npmjs.com/cli/dist-tag).\n* Done! There should now be a new release published to NPM and the gh-pages branch.\n\nNote: Currently only tested on Linux, not sure about Mac but will definitely not work on Windows.\n\n### Publish a hotfix patch versions\nIn some cases it may be necessary to do a patch version while there are significant changes changes on the master branch.\nTo make a patch release,\n* checkout the latest git tag using `git checkout tags/vMajor.minor.patch`.\n* checkout a new branch, using a name such as patchrelease-major-minor-patch. \n* cherry-pick the fixes using `git cherry-pick some-commit-hash`.\n* run `npm version patch`. This will create a new patch version and publish it on github.\n* check out `origin/bumpVersion` branch and publish the new version using `npm publish`.\n* the branch can now safely be deleted. It is not necessary to merge it into the main branch since it only contains cherry-picked commits.\n","readmeFilename":"README.md","gitHead":"8a4cb36a0403f6fabe9802eccbec738b348cf465","bugs":{"url":"https://github.com/webrtchacks/adapter/issues"},"homepage":"https://github.com/webrtchacks/adapter#readme","_id":"webrtc-adapter@7.4.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-YeflMTsqnQ6/7satrJzjzN9RjpkDDsEdoRuEkIhk+oOmWgDL1ocdWhZ1lPdB21ZXXY/AmEih4cHgKoW3SYw20A==","shasum":"db7238e9946fed3df2bbcc8a2d3b624bf1d4568b","tarball":"http://registry-npm.ywwl.com/webrtc-adapter/download/webrtc-adapter-7.4.0.tgz","fileCount":46,"unpackedSize":892003,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFe0NCRA9TVsSAnZWagAAL14P/2HJdUrwhO0/Y+ch6UFN\nIt8Fqs8QN1aEMfkrmXIKttn3AIY3iYRZKaAcsmc7RuqdrTiwRpXOhXQTG+5M\nGaK9gEHMGbd5mNLcXfBi/5Hrt+dPZLHDTik/TJzZIuIZyrmZb2lt9+GFcaK8\n+KyYSgD0dA0jWq4d+s3SCCEWYaiNDZpNWYJYSz9X5vaUzLgDPWfPPvYOIs2o\nyVvsHkX5oA/eEF8xhs4wShm8RU220hnrFyXBS+P1tBTTJGnqTtEmUIjmOlTs\nEkLitjApUfSNAU5XrdZSdb/jQdfzVIS6l/ZueVieFGl0h4GPNGS0f7OIBbEo\nM6k6xvcnf6NkKfT1ArdjvzleWkb4Qvfus6674r3A1+7SqFVehL+ewcKQJxkl\n6uWOOks2mskgRZ/88mak1U/x6oOTbHqmcYrhDLf1OBSCstCxppqWbzn6aup9\nr6a4DZtO1d+tsQbZDkuWYLegt2HSkDDhhkz3mHbJZuxAlO0hDocmpWO47jx5\n0A6jsAUy/djv9r58tz0SB8IyNO7Fo70fiWSDMU5lFsbigFTSbyPdCCn/WvHi\n69rCbMmrJ2HkZLtrpuzghDSimEsKrOhpw3RoJrdTjxPDXDtOOyoucbTW/ad3\nOj1OMYWtls+YF7bTS+xuNB9NW3ItLXpvGdiNWT44TQuVHuIFTHHYEew+6hF/\n6YNM\r\n=dFoh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyxPEUY1q0c5LEwY2/vEytDewFWzfQqszKVbAQZYBxOAiEAsHrpbbs0HVf/8EzH1kwU2lmZIOc+YmTjq8nJh/jAgEw="}],"size":199127,"noattachment":false,"key":"/webrtc-adapter/-/webrtc-adapter-7.4.0.tgz"},"maintainers":[{"email":"harald@alvestrand.no","name":"alvestrand"},{"email":"daginge@gmail.com","name":"daginge"},{"email":"cjansss@gmail.com","name":"kaptenjansson"},{"email":"mirko.bonadei@gmail.com","name":"mirko.bonadei"}],"_npmUser":{"name":"fippo","email":"fippo@goodadvice.pages.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/webrtc-adapter_7.4.0_1578495244818_0.8196277201624069"},"_hasShrinkwrap":false,"publish_time":1578495244967,"_cnpm_publish_time":1578495244967,"dist-tags":{"latest":"9.0.6"}}