UNPKG

@dillonkearns/elm-graphql

Version:

<img src="https://cdn.jsdelivr.net/gh/martimatix/logo-graphqelm/logo.svg" alt="dillonearns/elm-graphql logo" width="40%" align="right">

1 lines 1.99 kB
{"id":"/3Ws","dependencies":[{"name":"/home/travis/build/dillonkearns/elm-graphql/package.json","includedInParent":true,"mtime":1558740283663},{"name":"/home/travis/build/dillonkearns/elm-graphql/node_modules/iconv-lite/package.json","includedInParent":true,"mtime":1534968147000}],"generated":{"js":"\"use strict\";var t=require(\"buffer\").Buffer,n=require(\"stream\").Transform;function e(t,e){this.conv=t,(e=e||{}).decodeStrings=!1,n.call(this,e)}function o(t,e){this.conv=t,(e=e||{}).encoding=this.encoding=\"utf8\",n.call(this,e)}module.exports=function(t){t.encodeStream=function(n,o){return new e(t.getEncoder(n,o),o)},t.decodeStream=function(n,e){return new o(t.getDecoder(n,e),e)},t.supportsStreams=!0,t.IconvLiteEncoderStream=e,t.IconvLiteDecoderStream=o,t._collect=o.prototype.collect},e.prototype=Object.create(n.prototype,{constructor:{value:e}}),e.prototype._transform=function(t,n,e){if(\"string\"!=typeof t)return e(new Error(\"Iconv encoding stream needs strings as its input.\"));try{var o=this.conv.write(t);o&&o.length&&this.push(o),e()}catch(r){e(r)}},e.prototype._flush=function(t){try{var n=this.conv.end();n&&n.length&&this.push(n),t()}catch(e){t(e)}},e.prototype.collect=function(n){var e=[];return this.on(\"error\",n),this.on(\"data\",function(t){e.push(t)}),this.on(\"end\",function(){n(null,t.concat(e))}),this},o.prototype=Object.create(n.prototype,{constructor:{value:o}}),o.prototype._transform=function(n,e,o){if(!t.isBuffer(n))return o(new Error(\"Iconv decoding stream needs buffers as its input.\"));try{var r=this.conv.write(n);r&&r.length&&this.push(r,this.encoding),o()}catch(c){o(c)}},o.prototype._flush=function(t){try{var n=this.conv.end();n&&n.length&&this.push(n,this.encoding),t()}catch(e){t(e)}},o.prototype.collect=function(t){var n=\"\";return this.on(\"error\",t),this.on(\"data\",function(t){n+=t}),this.on(\"end\",function(){t(null,n)}),this};"},"sourceMaps":null,"error":null,"hash":"0b75a5217b69f3d3642ff8209c7ad374","cacheData":{"env":{}}}