@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 • 7.34 kB
JSON
{"id":"oz07","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},{"name":"safer-buffer","loc":{"line":2,"column":21},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/iconv-lite/encodings/dbcs-codec.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/safer-buffer/safer.js"}],"generated":{"js":"\"use strict\";var e=require(\"safer-buffer\").Buffer;exports._dbcs=d;for(var t=-1,o=-2,i=-10,r=-1e3,a=new Array(256),h=-1,n=0;n<256;n++)a[n]=t;function d(e,i){if(this.encodingName=e.encodingName,!e)throw new Error(\"DBCS codec is called without the data.\");if(!e.table)throw new Error(\"Encoding '\"+this.encodingName+\"' has no data.\");var h=e.table();this.decodeTables=[],this.decodeTables[0]=a.slice(0),this.decodeTableSeq=[];for(var n=0;n<h.length;n++)this._addDecodeChunk(h[n]);this.defaultCharUnicode=i.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var d={};if(e.encodeSkipVals)for(n=0;n<e.encodeSkipVals.length;n++){var s=e.encodeSkipVals[n];if(\"number\"==typeof s)d[s]=!0;else for(var c=s.from;c<=s.to;c++)d[c]=!0}if(this._fillEncodeTable(0,0,d),e.encodeAdd)for(var l in e.encodeAdd)Object.prototype.hasOwnProperty.call(e.encodeAdd,l)&&this._setEncodeChar(l.charCodeAt(0),e.encodeAdd[l]);if(this.defCharSB=this.encodeTable[0][i.defaultCharSingleByte.charCodeAt(0)],this.defCharSB===t&&(this.defCharSB=this.encodeTable[0][\"?\"]),this.defCharSB===t&&(this.defCharSB=\"?\".charCodeAt(0)),\"function\"==typeof e.gb18030){this.gb18030=e.gb18030();var f=this.decodeTables.length,u=this.decodeTables[f]=a.slice(0),b=this.decodeTables.length,g=this.decodeTables[b]=a.slice(0);for(n=129;n<=254;n++){var v=r-this.decodeTables[0][n],p=this.decodeTables[v];for(c=48;c<=57;c++)p[c]=r-f}for(n=129;n<=254;n++)u[n]=r-b;for(n=48;n<=57;n++)g[n]=o}}function s(e,t){this.leadSurrogate=-1,this.seqObj=void 0,this.encodeTable=t.encodeTable,this.encodeTableSeq=t.encodeTableSeq,this.defaultCharSingleByte=t.defCharSB,this.gb18030=t.gb18030}function c(t,o){this.nodeIdx=0,this.prevBuf=e.alloc(0),this.decodeTables=o.decodeTables,this.decodeTableSeq=o.decodeTableSeq,this.defaultCharUnicode=o.defaultCharUnicode,this.gb18030=o.gb18030}function l(e,t){if(e[0]>t)return-1;for(var o=0,i=e.length;o<i-1;){var r=o+Math.floor((i-o+1)/2);e[r]<=t?o=r:i=r}return o}d.prototype.encoder=s,d.prototype.decoder=c,d.prototype._getDecodeTrieNode=function(e){for(var o=[];e>0;e>>=8)o.push(255&e);0==o.length&&o.push(0);for(var i=this.decodeTables[0],h=o.length-1;h>0;h--){var n=i[o[h]];if(n==t)i[o[h]]=r-this.decodeTables.length,this.decodeTables.push(i=a.slice(0));else{if(!(n<=r))throw new Error(\"Overwrite byte in \"+this.encodingName+\", addr: \"+e.toString(16));i=this.decodeTables[r-n]}}return i},d.prototype._addDecodeChunk=function(e){var t=parseInt(e[0],16),o=this._getDecodeTrieNode(t);t&=255;for(var r=1;r<e.length;r++){var a=e[r];if(\"string\"==typeof a)for(var h=0;h<a.length;){var n=a.charCodeAt(h++);if(55296<=n&&n<56320){var d=a.charCodeAt(h++);if(!(56320<=d&&d<57344))throw new Error(\"Incorrect surrogate pair in \"+this.encodingName+\" at chunk \"+e[0]);o[t++]=65536+1024*(n-55296)+(d-56320)}else if(4080<n&&n<=4095){for(var s=4095-n+2,c=[],l=0;l<s;l++)c.push(a.charCodeAt(h++));o[t++]=i-this.decodeTableSeq.length,this.decodeTableSeq.push(c)}else o[t++]=n}else{if(\"number\"!=typeof a)throw new Error(\"Incorrect type '\"+typeof a+\"' given in \"+this.encodingName+\" at chunk \"+e[0]);var f=o[t-1]+1;for(h=0;h<a;h++)o[t++]=f++}}if(t>255)throw new Error(\"Incorrect chunk in \"+this.encodingName+\" at addr \"+e[0]+\": too long\"+t)},d.prototype._getEncodeBucket=function(e){var t=e>>8;return void 0===this.encodeTable[t]&&(this.encodeTable[t]=a.slice(0)),this.encodeTable[t]},d.prototype._setEncodeChar=function(e,o){var r=this._getEncodeBucket(e),a=255&e;r[a]<=i?this.encodeTableSeq[i-r[a]][h]=o:r[a]==t&&(r[a]=o)},d.prototype._setEncodeSequence=function(e,o){var r,a=e[0],n=this._getEncodeBucket(a),d=255&a;n[d]<=i?r=this.encodeTableSeq[i-n[d]]:(r={},n[d]!==t&&(r[h]=n[d]),n[d]=i-this.encodeTableSeq.length,this.encodeTableSeq.push(r));for(var s=1;s<e.length-1;s++){var c=r[a];\"object\"==typeof c?r=c:(r=r[a]={},void 0!==c&&(r[h]=c))}r[a=e[e.length-1]]=o},d.prototype._fillEncodeTable=function(e,t,o){for(var a=this.decodeTables[e],h=0;h<256;h++){var n=a[h],d=t+h;o[d]||(n>=0?this._setEncodeChar(n,d):n<=r?this._fillEncodeTable(r-n,d<<8,o):n<=i&&this._setEncodeSequence(this.decodeTableSeq[i-n],d))}},s.prototype.write=function(o){for(var r=e.alloc(o.length*(this.gb18030?4:3)),a=this.leadSurrogate,n=this.seqObj,d=-1,s=0,c=0;;){if(-1===d){if(s==o.length)break;var f=o.charCodeAt(s++)}else{f=d;d=-1}if(55296<=f&&f<57344)if(f<56320){if(-1===a){a=f;continue}a=f,f=t}else-1!==a?(f=65536+1024*(a-55296)+(f-56320),a=-1):f=t;else-1!==a&&(d=f,f=t,a=-1);var u=t;if(void 0!==n&&f!=t){var b=n[f];if(\"object\"==typeof b){n=b;continue}\"number\"==typeof b?u=b:null==b&&void 0!==(b=n[h])&&(u=b,d=f),n=void 0}else if(f>=0){var g=this.encodeTable[f>>8];if(void 0!==g&&(u=g[255&f]),u<=i){n=this.encodeTableSeq[i-u];continue}if(u==t&&this.gb18030){var v=l(this.gb18030.uChars,f);if(-1!=v){u=this.gb18030.gbChars[v]+(f-this.gb18030.uChars[v]);r[c++]=129+Math.floor(u/12600),u%=12600,r[c++]=48+Math.floor(u/1260),u%=1260,r[c++]=129+Math.floor(u/10),u%=10,r[c++]=48+u;continue}}}u===t&&(u=this.defaultCharSingleByte),u<256?r[c++]=u:u<65536?(r[c++]=u>>8,r[c++]=255&u):(r[c++]=u>>16,r[c++]=u>>8&255,r[c++]=255&u)}return this.seqObj=n,this.leadSurrogate=a,r.slice(0,c)},s.prototype.end=function(){if(-1!==this.leadSurrogate||void 0!==this.seqObj){var t=e.alloc(10),o=0;if(this.seqObj){var i=this.seqObj[h];void 0!==i&&(i<256?t[o++]=i:(t[o++]=i>>8,t[o++]=255&i)),this.seqObj=void 0}return-1!==this.leadSurrogate&&(t[o++]=this.defaultCharSingleByte,this.leadSurrogate=-1),t.slice(0,o)}},s.prototype.findIdx=l,c.prototype.write=function(a){var h=e.alloc(2*a.length),n=this.nodeIdx,d=this.prevBuf,s=this.prevBuf.length,c=-this.prevBuf.length;s>0&&(d=e.concat([d,a.slice(0,10)]));for(var f=0,u=0;f<a.length;f++){var b,g=f>=0?a[f]:d[f+s];if((b=this.decodeTables[n][g])>=0);else if(b===t)f=c,b=this.defaultCharUnicode.charCodeAt(0);else if(b===o){var v=c>=0?a.slice(c,f+1):d.slice(c+s,f+1+s),p=12600*(v[0]-129)+1260*(v[1]-48)+10*(v[2]-129)+(v[3]-48),T=l(this.gb18030.gbChars,p);b=this.gb18030.uChars[T]+p-this.gb18030.gbChars[T]}else{if(b<=r){n=r-b;continue}if(!(b<=i))throw new Error(\"iconv-lite internal error: invalid decoding table value \"+b+\" at \"+n+\"/\"+g);for(var S=this.decodeTableSeq[i-b],C=0;C<S.length-1;C++)b=S[C],h[u++]=255&b,h[u++]=b>>8;b=S[S.length-1]}if(b>65535){b-=65536;var y=55296+Math.floor(b/1024);h[u++]=255&y,h[u++]=y>>8,b=56320+b%1024}h[u++]=255&b,h[u++]=b>>8,n=0,c=f+1}return this.nodeIdx=n,this.prevBuf=c>=0?a.slice(c):d.slice(c+s),h.slice(0,u).toString(\"ucs2\")},c.prototype.end=function(){for(var t=\"\";this.prevBuf.length>0;){t+=this.defaultCharUnicode;var o=this.prevBuf.slice(1);this.prevBuf=e.alloc(0),this.nodeIdx=0,o.length>0&&(t+=this.write(o))}return this.nodeIdx=0,t};"},"sourceMaps":null,"error":null,"hash":"2ac90d60cdb804f13134777c55eaa189","cacheData":{"env":{}}}