{"versions":{"0.1.0-alpha.1":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0-alpha.1","description":"","main":"dist/web-streams-adapter.js","module":"dist/web-streams-adapter.mjs","types":"types/index.d.ts","files":["dist/","types/"],"scripts":{"build-bundle":"rollup -c","build-types":"tsc -p ./src/tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./types","build":"npm run build-bundle && npm run build-types","test":"cd test && ts-node --expose_gc --project tsconfig.json run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","peerDependencies":{"@mattiasbuelens/web-streams-polyfill":"^0.1.0-alpha.3"},"devDependencies":{"@mattiasbuelens/web-streams-polyfill":"^0.1.0-alpha.3","@types/minimatch":"^3.0.3","@types/node":"^9.6.7","minimatch":"^3.0.4","rollup":"^0.58.2","rollup-plugin-typescript2":"^0.13.0","ts-node":"^6.0.1","typescript":"^2.8.3","wpt-runner":"^2.4.0"},"gitHead":"8e8b653d42b9006b809d35bf9110aa85b9e08e3b","_id":"@mattiasbuelens/web-streams-adapter@0.1.0-alpha.1","_npmVersion":"5.8.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"dist":{"integrity":"sha512-8YK2ZY6CAgrzFGfW2uPyNDMYvh7OmWjrlbdP+GeHiMJhzPF3XwrQaHyLQ4IZqGTj8NW879ttfbcqbLqQxWvtsw==","shasum":"b10ea6cce1456c5e65cad957bad940395e5f4d5b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0-alpha.1.tgz","fileCount":16,"unpackedSize":52243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8aIlCRA9TVsSAnZWagAAnncQAIJdV/zWHFOIGnAVDcde\nV2AzKg6FOHGVV+Q19iuWNV830GG2LrE/oinbmqBa8kF/46HhIA9yeSE3kTke\nQLbJDGT1O3+WAHw29DUVqGEcQAu99s53MW6BrBQze2F/NQDu9sr6ey4Zlkic\nicF9zoEf7l58d5CPlR3RN66cGVWaxgHMkAQqID07gc7N++xgqtfTkt79xXFh\npQFuIDeZNTq7knhcdwT++LKtZAF2drreSJjdz8s/EqNIvOu9ULe3kO/Cea7B\neyDUmE+26SZdPE17Sbe7grRGLn7J8+pLhXS2CLquCvMwGHRfWUM6e/KPyjLd\nTMvSnsi3McnXovRnumTtvbCPhww0uHbTfU0zrnP3LeYzENszNyUWFdeMExI8\nuNdqv8rO+M36GJXgPMFRGnBWv5J4fmAmatllE5Cnr83EPBGtvKVHv8dlXcFb\nr/AtChywFi3X1wQVqPq0PO3FTjtwGc/GqCT3AxkXF8reYC6809dDgDif/x8b\nGojggNGtG9TJwcI7VSoCYr74Ws7bRkxu5PQN5ZR4zFdBds54wDu3YnCJU2eP\nysz4ogsNaNs8fmakGs5LZSIGVK1rmtyTD8gAJtQUUjdVe8vrygEmlYM/iVW7\nX7hi/zGkodNa/FOBB4iI74RvyFEt9T15lYxkH303sBjLAM0iMKlOT/pVL8jP\n/6b6\r\n=/yQJ\r\n-----END PGP SIGNATURE-----\r\n","size":7780},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0-alpha.1_1525785124828_0.12853341342690827"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:24:58.722Z","contributors":[]},"0.1.0-alpha.2":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0-alpha.2","description":"Adapters for converting between different implementations of WHATWG Streams","main":"dist/web-streams-adapter","module":"dist/web-streams-adapter.mjs","types":"types/index.d.ts","files":["dist/","types/"],"scripts":{"build-bundle":"rollup -c","build-types":"tsc -p ./src/tsconfig.json --emitDeclarationOnly --declaration --declarationDir ./types","build":"npm run build-bundle && npm run build-types","test":"cd test && ts-node --expose_gc --project tsconfig.json run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","dependencies":{"@types/whatwg-streams":"^0.0.7"},"devDependencies":{"@mattiasbuelens/web-streams-polyfill":"^0.1.0","@types/minimatch":"^3.0.3","@types/node":"^9.6.7","minimatch":"^3.0.4","rollup":"^0.58.2","rollup-plugin-typescript2":"^0.13.0","ts-node":"^6.0.1","typescript":"^2.8.3","wpt-runner":"^2.4.0"},"gitHead":"473b3a8e7b60601fc43b33d22c8c7822fe5d7c8a","_id":"@mattiasbuelens/web-streams-adapter@0.1.0-alpha.2","_npmVersion":"6.3.0","_nodeVersion":"8.11.1","_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"dist":{"integrity":"sha512-k0l1la8RiXJXR2eHl1yAw76myB9eTlMnmRrkqqjGk1TnMCC10QY8rD00aELF23IiSrAV/3P8aKpySvZVxo7/jA==","shasum":"b17d6118f469c9873f44d7bb8bf42ec144e0a005","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0-alpha.2.tgz","fileCount":17,"unpackedSize":55942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfYDiCRA9TVsSAnZWagAA0K0P/j5qpsRuX1oYjyVykZLI\no+XAATVNWkuNrqKyxV2tQe/dFnPY3ejP+N9FzTU3bg1dQ//3KmeB9jZtfBNf\njm/mdPXXFE5pyRBTiuNQtKjDVOJ4X+8nYcWHfo1148AdrRNLV/SEHJV95p2n\nz17yVZkmsPuUB0dJVtoie/qWbAOCrzBz8Dklod92nCrDV2PMB20lg7yncGS8\nZ/yc7J5Jtzf/hRVvP9x3Pogi3Bik0GlB6lK9FFeKomgTgozShHlzpMz0vMZB\nTRW2KoQe+8Y09G3BBHltBcOKjZpN+24WzzkVF7kN944Jvpilx1nX4ljRnF+u\n8qNxjcW3pvrFg8shA00s2PVi027QoNnnqhpGeVuDBIakgeEThwLcOG1rJ8lm\n5az5w9x65fUEGhFe/17WpMu+O59ygFYNEKGa80mxY8C8CJE+p0cpaiow/JOT\nAlWoz0UMNA89iDvcYoaL72pMzhCA2596REP+YITCc45wYcqSnFHHhnVVAVmq\nJNF0yoFeV4MKPh+W2asNBzc6rWVISjTC6tPG71szc/ZabycNsrMkZvWuCUiq\nd0+A9kUmZfcbY5Is4+nMuWffH7JlDIv8cdFtinHLv4wHqBwBoIBTYMrFWdui\n0o8ufRXCWXhieGsd5ggEQqlx0DxfRCb7IKk8uC5uvpltxV+KlwPBIWzp1eKf\nc6xt\r\n=stIn\r\n-----END PGP SIGNATURE-----\r\n","size":9588},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0-alpha.2_1534951649659_0.21337520089704154"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:25:00.615Z","contributors":[]},"0.1.0-alpha.3":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0-alpha.3","description":"Adapters for converting between different implementations of WHATWG Streams","main":"dist/web-streams-adapter","module":"dist/web-streams-adapter.mjs","types":"dist/web-streams-adapter.d.ts","scripts":{"build":"rollup -c","prebuild":"tsc --noEmit -p ./src/tsconfig.json","test":"cd test && node -r ts-node/register --expose_gc run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","devDependencies":{"@types/micromatch":"^3.1.0","@types/node":"^10.12.30","micromatch":"^3.1.10","rollup":"^1.6.0","rollup-plugin-dts":"^0.12.0","ts-node":"^8.0.3","tslib":"^1.9.3","typescript":"^3.3.3","web-streams-polyfill":"^2.0.0","wpt-runner":"^2.7.1"},"gitHead":"0fc0f80e0a70f44c3e910b0a8fc68623de8b3b3c","_id":"@mattiasbuelens/web-streams-adapter@0.1.0-alpha.3","_nodeVersion":"10.15.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-zZ5DOPokJLzmvklk151Rk9e79+xos5d9V0azVLy6jX+28113ffoCR0FYUVu0YQr+J4L/qFZI46jXsbv1a9velA==","shasum":"8b79a15ff88f68f618a3a2ffc19ee63c04efbf7b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0-alpha.3.tgz","fileCount":8,"unpackedSize":79147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcm+hNCRA9TVsSAnZWagAANjgP/1QN1G+owGsPNvLJ+Lls\naE7l69QSG95t7bHVzTadYT/qEsidhYgA29H3CAFqoCpBK2634g5lGoU/bBQe\n2svRR8jKbV9ll1hQ8vF22vH//vpvGkTj3nKf/708CR0m43knG/W3JNxxP0fL\nSgzIT7DhC6b7mY8UN5lAsaLvPoDryLyFfqKsjT/sTDpMSgqSgA68dmqf1AtP\nGP9WgRuJSdbeYy0FKz62slnQ9FjR2V+sscm6N6CL3Fhkkxh89j6JImTBqJJE\nBS59DyGom+omwIkMrIKthno+ENsbg7ZKK+5Iaec5l+kvrcwi35UkIphx7MhB\npv4w2WJF8ucdbHd6G2GZZj1y6Q8I6dyaBROPdV0QcVZEoIo/V7XUzPf1QhQr\nZHqGAoEqIfv4spDzl0WOCyAATpW0Id2FwpEwMaR7tkRezsbgLvmopNWNBsYj\ntGf5fF6jFqYTY2CTWECavhw72McRu1ZTTyzrKU8fZ7kgK+oV0T9Nvc0pbNL6\nOuW7uyIHRXmRP+hLfyVcwnB4XxMrCDG99htZVzAKspfN1QunV1q6sqQKlSa4\npFsn6uGB0NPoX141QJJ//3e37Y3Qf/f8Qr3erV9gaCsPw1qBIla+hAU6N8WB\nNWE5vQQ3smFCKOasv/A70w+rQsHDbXKDEBUVgMlZ6gyZ9QGH6/ZTNqiKecmW\nH+mS\r\n=yTEm\r\n-----END PGP SIGNATURE-----\r\n","size":16896},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0-alpha.3_1553721420404_0.24254549727904484"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:25:02.482Z","contributors":[]},"0.1.0-alpha.4":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0-alpha.4","description":"Adapters for converting between different implementations of WHATWG Streams","main":"dist/web-streams-adapter","module":"dist/web-streams-adapter.mjs","types":"dist/web-streams-adapter.d.ts","scripts":{"build":"rollup -c","test":"cd test && node -r ts-node/register --expose_gc run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","devDependencies":{"@rollup/plugin-typescript":"^4.1.1","@types/micromatch":"^4.0.1","@types/node":"^10.17.21","@types/resolve":"^1.14.0","micromatch":"^4.0.2","resolve":"^1.17.0","rollup":"^2.7.2","rollup-plugin-dts":"^1.4.0","ts-node":"^8.9.0","tslib":"^1.11.1","typescript":"^3.8.3","web-streams-polyfill":"^2.1.1","wpt-runner":"^2.8.0"},"gitHead":"65ba5012b9c5ce0c2e21ec754e6629e45f8da156","_id":"@mattiasbuelens/web-streams-adapter@0.1.0-alpha.4","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-bz2/tU6xFQGOeIHnrxQpt7r8kiu9J09+XjOD1yv7FrlYSLIl9lvRUve5eOvnUhS0d72YdmtY2LbVvudFP/BEBQ==","shasum":"42a9dbad2568acfbcff433102790f49f51b82435","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0-alpha.4.tgz","fileCount":8,"unpackedSize":139872,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeo0ECCRA9TVsSAnZWagAA7DsP+wePVh+7O1qy7vuGUMHG\nctIc6BYFPhFIoynZjer14wcpXy0t4P2D5akq1CkQ6C/VLY/LdlPJNsyELnG0\nkmB5Gz0H3EUVc0NyZnFFvDB1XsioexuT419UsCwmrKhyJonMrTmW3lx01RUK\nZez5kQwrehSh4rlxOyoZAo5U+NNej3QjrCLfwafywGuf0i36MoSXeQ/ICAvQ\nAwKeBi3jyoFxPz/tAjF5qkFAuZ0OYQHvD0/nOMNAw0hqjxKRdlQupNWKeJbZ\nqYo54eFe1QE0POtWBmQrUvOrzxnki3K/EkBeZSumkmfA/3RqTFk7dy3vMzin\nNQKmPFIZI5xChJSDk0rlivfYsOLUqifc435z+Rwif1jwuXvUpkXKzZ3C9oPp\nPnj2lv2glFgwkruZPnDQsSEBS7hPY4QTSg1LcilZQ76AECu4sqVT08//Y7hB\n1PysdARBfHxHPJat5SxBcoPzIrS2GgAIgc0CMol5FUn1yGPibo5FqqDRrzFK\ntS/xdikBKHiUsJnjAUbrXrG2p8nvVEiYpIkZQEZBH5xaOggq+Al9DEFUjGcJ\ntNq+PIQwYogRXTb/r8PfOSZVOM8Eq+TNbWQ5RNFb/xwC+q6r3Y6DO0iYr+bv\nT+2sWTdEHLKhJYNSjFoSOoSbAORMwsjx4IYixUu6860FzsQXG580PJDvdf5H\n2CIK\r\n=mYV+\r\n-----END PGP SIGNATURE-----\r\n","size":30363},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0-alpha.4_1587757313988_0.28417076209973935"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:25:04.532Z","contributors":[]},"0.1.0-alpha.5":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0-alpha.5","description":"Adapters for converting between different implementations of WHATWG Streams","main":"dist/web-streams-adapter","module":"dist/web-streams-adapter.mjs","types":"dist/web-streams-adapter.d.ts","scripts":{"build":"rollup -c","test":"cd test && node -r ts-node/register --expose_gc run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","devDependencies":{"@rollup/plugin-typescript":"^4.1.1","@types/micromatch":"^4.0.1","@types/node":"^10.17.21","@types/resolve":"^1.14.0","micromatch":"^4.0.2","resolve":"^1.17.0","rollup":"^2.7.2","rollup-plugin-cleanup":"^3.1.1","rollup-plugin-dts":"^1.4.0","ts-node":"^8.9.0","tslib":"^1.11.1","typescript":"^3.8.3","web-streams-polyfill":"^2.1.1","wpt-runner":"^2.8.0"},"gitHead":"f1be3b8636700714698a26034926f78e5b65d5d1","_id":"@mattiasbuelens/web-streams-adapter@0.1.0-alpha.5","_nodeVersion":"12.16.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-OIfunNt/fTjIgDtUqXhBYOKtgaxm30ZWkMWegI9iS3xUHy2/A3AXki6/k+z40+BywNMi+spON/jSE0FF9WmUKA==","shasum":"091a6256fdada3d53dc0a70501bcc6f3a46add05","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0-alpha.5.tgz","fileCount":8,"unpackedSize":139825,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepyV/CRA9TVsSAnZWagAAOK0P+gICUQXXBs2zBXHmB60U\nvD9zZuyuq25Bl4cQUtKMd/lXRuAV7OdHY8vKtKgatAHKxIKOPZKg6bURZkvx\niMFGbzK3EKIFPAeTYVKUMAc9ylpk9B7DJxCAPoRM797oMYHcWPtkal+kZUEN\nHcVKd2yDwQX7HRL8Erq0q/Hqxh25v6WmHwEQqMsAvrei3zlTdyucbzspghlq\nT6sbI3uwqK0xYWx5HsxKJwg2jzO/PcvfCUh+m5zQ68cAduhforbK3m5qNsra\n/vJIfXu+0jrS5jX/lNraTHiyw6Y3dC/v4UL8ub+7Ph9Oj0yEco029oDJvXjc\nY8XATsG+P/cJB7X4m24rVRq/3/lV3EatEVwdmKn3gzCPtPjst4IrKU59zx3q\n5WzqZ+T9SfeKu4HvGiZcCn5/16gznHViHP4NkYzCCxspZl3HcKDOttx3cvvT\npxnAYPJ25f8JtPrSjuhtNa9XPcfE9CJoAiWXFhkzA/E4cqN9jnjoUY1Ix5On\nY2p8U0j4gI9hUQHPkpQ+PzjWtWgCXHaw1v/VVo76YYpzoJv5xfOKdb/djKbL\naC9kmzzMuLk9XxpehebFZQ3BuiZZ4xvg8bVUIrAm6DcQFQ9RllqT1m9FXm4+\nSEsWsnWPnCksYAKpkmGEGTkiqE+dXje09oQFd48aBVEOYCoa21V86Jy5KDzr\nnJLl\r\n=Vg33\r\n-----END PGP SIGNATURE-----\r\n","size":30325},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0-alpha.5_1588012414839_0.397307444271525"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:25:06.987Z","contributors":[]},"0.1.0":{"name":"@mattiasbuelens/web-streams-adapter","version":"0.1.0","description":"Adapters for converting between different implementations of WHATWG Streams","main":"dist/web-streams-adapter","module":"dist/web-streams-adapter.mjs","types":"dist/web-streams-adapter.d.ts","engines":{"node":">= 12"},"scripts":{"build":"rollup -c","test":"cd test && node -r ts-node/register --expose_gc run-web-platform-tests.ts"},"repository":{"type":"git","url":"git+https://github.com/MattiasBuelens/web-streams-adapter.git"},"author":{"name":"Mattias Buelens","email":"mattias@buelens.com"},"license":"MIT","bugs":{"url":"https://github.com/MattiasBuelens/web-streams-adapter/issues"},"homepage":"https://github.com/MattiasBuelens/web-streams-adapter#readme","devDependencies":{"@rollup/plugin-typescript":"^8.2.1","@types/micromatch":"^4.0.1","@types/node":"^14.14.44","@types/resolve":"^1.20.0","@ungap/promise-all-settled":"^1.1.2","micromatch":"^4.0.4","resolve":"^1.20.0","rollup":"^2.47.0","rollup-plugin-cleanup":"^3.2.1","rollup-plugin-dts":"^3.0.1","ts-node":"^9.1.1","tslib":"^2.2.0","typescript":"^4.2.4","web-streams-polyfill":"^3.0.3","wpt-runner":"^3.2.1"},"gitHead":"4441a8bceb32df5ecc344d11ecd2aa4c3b66490e","_id":"@mattiasbuelens/web-streams-adapter@0.1.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.13","dist":{"integrity":"sha512-oV4PyZfwJNtmFWhvlJLqYIX1Nn22ML8FZpS16ZUKv0hg7414xV1fjsGqxQzLT2dyK92TKxsJSwMOd7VNHAtPmA==","shasum":"607b5a25682f4ae2741da7ba6df39302505336b3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mattiasbuelens/web-streams-adapter/-/web-streams-adapter-0.1.0.tgz","fileCount":8,"unpackedSize":148867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgnFNGCRA9TVsSAnZWagAA7GcP/i10V7qOVoil25xDjxvp\n+X6ewtcb4huoUgtzC/ldi2VtSuUoZ77qR1Rf2l0zn9FkrXDT37l4oyNLOAp7\nvjDx31V/jxtm9d+7avsVy1S/1YIWw520ZHa3//OFjC5tR24sQFvs85XlatbC\nPq3HjPBDubZSJeGmUm8M4JbocboSQTDaCWw/2ad7W3Fblht+O0h/BRrm2cKQ\n0bvAWc0IjCQK3lFbYp8y+SjL2+/IWeIt2uTs5L8joxhMSl+Lo+lZlCd395So\n911T3JJUWDAVrfAuXoFDWxyPzJ3siqMe/gCJnQezUj/B9ImBybpyoDxQW0wN\nV21fXdH7Uc5HrfbjVTi8UU1fAr3jdqSVInHZ3EiOaW/0qxv2PSZiSb8DFsmE\nU8B4xKj1xelSXzIYaYfrVtn5tLUDF3vRo3vLeKagMEAhUst5WUK/98Q1aIvA\nqwWPoG9R7PkLQp+3pDs9NUWV0IFAVmaSuNuaZL4ydO+Z6lEji99ZPquw9aXo\nsES7D0nieHrw77RyckFLBTF1KJ+Fl2aB3Jf/0Ffzh25USQWyTojnBZ2OWrBL\ngNQNd0WyRSZRPIVPSVMA24UpO4rgx52gIpz9nZHWSSCydaRlvkyq7CFsKpE4\nTdczBd32Nk2lrlJ4V6SSZXNRCY648rMqfZU4AYlCxcUVV97lEviEyulkIdtV\ncvVl\r\n=cJpC\r\n-----END PGP SIGNATURE-----\r\n","size":32215},"_npmUser":{"name":"anonymous","email":"mattias.buelens@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mattias.buelens@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web-streams-adapter_0.1.0_1620857670170_0.9766064931241634"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-24T21:25:09.512Z","contributors":[]}},"dist-tags":{"latest":"0.1.0"},"name":"@mattiasbuelens/web-streams-adapter","time":{"created":"2022-01-27T17:40:28.271Z","modified":"2022-01-27T17:40:28.271Z","0.1.0-alpha.1":"2018-05-08T13:12:04.926Z","0.1.0-alpha.2":"2018-08-22T15:27:29.726Z","0.1.0-alpha.3":"2019-03-27T21:17:00.525Z","0.1.0-alpha.4":"2020-04-24T19:41:54.150Z","0.1.0-alpha.5":"2020-04-27T18:33:34.970Z","0.1.0":"2021-05-12T22:14:30.462Z"},"readme":"# web-streams-adapter\nAdapters for converting between different implementations of [WHATWG Streams][spec].\n\n## Why?\nWhen you've got a `ReadableStream` from a native web API, you might be disappointed to find out\nthat not all browser support the latest and greatest features from the streams spec yet:\n```js\nconst response = await fetch('http://example.com/data.txt');\nconst readable = response.body;\nconst writable = new WritableStream({ write(chunk) { console.log(chunk) } });\nawait readable.pipeTo(writable); // TypeError: Object doesn't support property or method 'pipeTo'\n```\n\nThis is because although many browsers have already started implementing streams,\nmost of them are not yet fully up-to-date with the latest specification:\n* Chrome 67 [supports][ts-chrome-status] `ReadableStream`, `WritableStream` and `TransformStream`.\n  Readable byte streams are [supported][byte-stream-chrome-status] as of Chrome 89.\n  However, async iteration is [not yet supported][async-iterator-crbug].\n* Edge 89 has the same support as Chrome 89.\n* Firefox 65 supports `ReadableStream`, but no readable byte streams or writable streams yet.\n  As such, methods like `pipeTo()` and `pipeThrough()` that take a `WritableStream` are not yet supported either.\n* Safari supports `ReadableStream`, but no readable byte streams or writable streams.\n\nFor up-to-date information, check [caniuse.com][caniuse]\nand the browser compatibility tables on MDN for [`ReadableStream`][rs-compat] and [`WritableStream`][ws-compat].\n\n## What?\n`web-streams-adapter` provides adapter functions that take any readable/writable/transform stream\nand wraps it into a different readable/writable/stream with a different (more complete) implementation of your choice,\nfor example [web-streams-polyfill].\n```js\n// setup\nimport { ReadableStream as PolyfillReadableStream } from 'web-streams-polyfill';\nimport { createReadableStreamWrapper } from '@mattiasbuelens/web-streams-adapter';\nconst toPolyfillReadable = createReadableStreamWrapper(PolyfillReadableStream);\n\n// when handling a fetch response\nconst response = await fetch('http://example.com/data.txt');\nconst readable = toPolyfillReadable(response.body);\nconsole.log(readable instanceof PolyfillReadableStream); // -> true\nawait readable.pipeTo(writable); // works!\n```\n\nYou can also use an adapter to convert from your polyfilled stream back to a native stream:\n```js\n// setup\nconst toNativeReadable = createReadableStreamWrapper(self.ReadableStream);\n\n// when starting a fetch with a streaming POST body\nconst readable = new PolyfillReadableStream({ /* amazingness */ });\nconst response = await fetch(url, {\n  method: 'POST',\n  body: toNativeReadable(readable) // works!\n});\n```\n\n## How?\nFor readable streams, `web-streams-adapter` creates an underlying source that pulls from the given readable stream\nusing the primitive reader API. This source can then be used by *any* other readable stream implementation,\nboth native and polyfilled ones.\n\nFor writable and transform streams, it uses a very similar approach to create an underlying sink or transformer\nusing primitive reader and writer APIs on the given stream.\n\n[spec]: https://streams.spec.whatwg.org/\n[ts-chrome-status]: https://www.chromestatus.com/feature/5466425791610880\n[byte-stream-chrome-status]: https://chromestatus.com/feature/4535319661641728\n[async-iterator-crbug]: https://crbug.com/929585\n[caniuse]: https://www.caniuse.com/#feat=streams\n[rs-compat]: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#Browser_Compatibility\n[ws-compat]: https://developer.mozilla.org/en-US/docs/Web/API/WritableStream#Browser_Compatibility\n[web-streams-polyfill]: https://github.com/MattiasBuelens/web-streams-polyfill","users":{}}