@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 • 10.4 kB
JSON
{"id":"+kj+","dependencies":[{"name":"/home/travis/build/dillonkearns/elm-graphql/package.json","includedInParent":true,"mtime":1558740283663},{"name":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/package.json","includedInParent":true,"mtime":499162500000},{"name":"fs.realpath","loc":{"line":44,"column":17},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/fs.realpath/index.js"},{"name":"minimatch","loc":{"line":45,"column":24},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/minimatch/minimatch.js"},{"name":"inherits","loc":{"line":47,"column":23},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/inherits/inherits.js"},{"name":"path-is-absolute","loc":{"line":51,"column":25},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/path-is-absolute/index.js"},{"name":"./sync.js","loc":{"line":52,"column":23},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/sync.js"},{"name":"./common.js","loc":{"line":53,"column":21},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/common.js"},{"name":"inflight","loc":{"line":58,"column":23},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/inflight/inflight.js"},{"name":"once","loc":{"line":63,"column":19},"parent":"/home/travis/build/dillonkearns/elm-graphql/node_modules/glob/glob.js","resolved":"/home/travis/build/dillonkearns/elm-graphql/node_modules/once/once.js"}],"generated":{"js":"module.exports=g;var t=require(\"fs\"),i=require(\"fs.realpath\"),r=require(\"minimatch\"),e=r.Minimatch,s=require(\"inherits\"),n=require(\"events\").EventEmitter,a=require(\"path\"),h=require(\"assert\"),o=require(\"path-is-absolute\"),c=require(\"./sync.js\"),u=require(\"./common.js\"),f=u.alphasort,p=u.alphasorti,l=u.setopts,d=u.ownProp,_=require(\"inflight\"),m=require(\"util\"),v=u.childrenIgnored,y=u.isIgnored,b=require(\"once\");function g(t,i,r){if(\"function\"==typeof i&&(r=i,i={}),i||(i={}),i.sync){if(r)throw new TypeError(\"callback provided to sync glob\");return c(t,i)}return new A(t,i,r)}g.sync=c;var E=g.GlobSync=c.GlobSync;function k(t,i){if(null===i||\"object\"!=typeof i)return t;for(var r=Object.keys(i),e=r.length;e--;)t[r[e]]=i[r[e]];return t}function A(t,i,r){if(\"function\"==typeof i&&(r=i,i=null),i&&i.sync){if(r)throw new TypeError(\"callback provided to sync glob\");return new E(t,i)}if(!(this instanceof A))return new A(t,i,r);l(this,t,i),this._didRealPath=!1;var e=this.minimatch.set.length;this.matches=new Array(e),\"function\"==typeof r&&(r=b(r),this.on(\"error\",r),this.on(\"end\",function(t){r(null,t)}));var s=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===e)return h();for(var n=!0,a=0;a<e;a++)this._process(this.minimatch.set[a],a,!1,h);function h(){--s._processing,s._processing<=0&&(n?process.nextTick(function(){s._finish()}):s._finish())}n=!1}function w(t,i,r){return function(e,s){e?t._readdirError(i,e,r):t._readdirEntries(i,s,r)}}g.glob=g,g.hasMagic=function(t,i){var r=k({},i);r.noprocess=!0;var e=new A(t,r).minimatch.set;if(!t)return!1;if(e.length>1)return!0;for(var s=0;s<e[0].length;s++)if(\"string\"!=typeof e[0][s])return!0;return!1},g.Glob=A,s(A,n),A.prototype._finish=function(){if(h(this instanceof A),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();u.finish(this),this.emit(\"end\",this.found)}},A.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var i=this,r=0;r<this.matches.length;r++)this._realpathSet(r,e)}function e(){0==--t&&i._finish()}},A.prototype._realpathSet=function(t,r){var e=this.matches[t];if(!e)return r();var s=Object.keys(e),n=this,a=s.length;if(0===a)return r();var h=this.matches[t]=Object.create(null);s.forEach(function(e,s){e=n._makeAbs(e),i.realpath(e,n.realpathCache,function(i,s){i?\"stat\"===i.syscall?h[e]=!0:n.emit(\"error\",i):h[s]=!0,0==--a&&(n.matches[t]=h,r())})})},A.prototype._mark=function(t){return u.mark(this,t)},A.prototype._makeAbs=function(t){return u.makeAbs(this,t)},A.prototype.abort=function(){this.aborted=!0,this.emit(\"abort\")},A.prototype.pause=function(){this.paused||(this.paused=!0,this.emit(\"pause\"))},A.prototype.resume=function(){if(this.paused){if(this.emit(\"resume\"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var i=0;i<t.length;i++){var r=t[i];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var e=this._processQueue.slice(0);this._processQueue.length=0;for(i=0;i<e.length;i++){var s=e[i];this._processing--,this._process(s[0],s[1],s[2],s[3])}}}},A.prototype._process=function(t,i,e,s){if(h(this instanceof A),h(\"function\"==typeof s),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,i,e,s]);else{for(var n,a=0;\"string\"==typeof t[a];)a++;switch(a){case t.length:return void this._processSimple(t.join(\"/\"),i,s);case 0:n=null;break;default:n=t.slice(0,a).join(\"/\")}var c,u=t.slice(a);null===n?c=\".\":o(n)||o(t.join(\"/\"))?(n&&o(n)||(n=\"/\"+n),c=n):c=n;var f=this._makeAbs(c);if(v(this,c))return s();u[0]===r.GLOBSTAR?this._processGlobStar(n,c,f,u,i,e,s):this._processReaddir(n,c,f,u,i,e,s)}},A.prototype._processReaddir=function(t,i,r,e,s,n,a){var h=this;this._readdir(r,n,function(o,c){return h._processReaddir2(t,i,r,e,s,n,c,a)})},A.prototype._processReaddir2=function(t,i,r,e,s,n,h,o){if(!h)return o();for(var c=e[0],u=!!this.minimatch.negate,f=c._glob,p=this.dot||\".\"===f.charAt(0),l=[],d=0;d<h.length;d++){if(\".\"!==(m=h[d]).charAt(0)||p)(u&&!t?!m.match(c):m.match(c))&&l.push(m)}var _=l.length;if(0===_)return o();if(1===e.length&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(d=0;d<_;d++){var m=l[d];t&&(m=\"/\"!==t?t+\"/\"+m:t+m),\"/\"!==m.charAt(0)||this.nomount||(m=a.join(this.root,m)),this._emitMatch(s,m)}return o()}e.shift();for(d=0;d<_;d++){m=l[d];t&&(m=\"/\"!==t?t+\"/\"+m:t+m),this._process([m].concat(e),s,n,o)}o()},A.prototype._emitMatch=function(t,i){if(!this.aborted&&!y(this,i))if(this.paused)this._emitQueue.push([t,i]);else{var r=o(i)?i:this._makeAbs(i);if(this.mark&&(i=this._mark(i)),this.absolute&&(i=r),!this.matches[t][i]){if(this.nodir){var e=this.cache[r];if(\"DIR\"===e||Array.isArray(e))return}this.matches[t][i]=!0;var s=this.statCache[r];s&&this.emit(\"stat\",i,s),this.emit(\"match\",i)}}},A.prototype._readdirInGlobStar=function(i,r){if(!this.aborted){if(this.follow)return this._readdir(i,!1,r);var e=this,s=_(\"lstat\\0\"+i,function(t,s){if(t&&\"ENOENT\"===t.code)return r();var n=s&&s.isSymbolicLink();e.symlinks[i]=n,n||!s||s.isDirectory()?e._readdir(i,!1,r):(e.cache[i]=\"FILE\",r())});s&&t.lstat(i,s)}},A.prototype._readdir=function(i,r,e){if(!this.aborted&&(e=_(\"readdir\\0\"+i+\"\\0\"+r,e))){if(r&&!d(this.symlinks,i))return this._readdirInGlobStar(i,e);if(d(this.cache,i)){var s=this.cache[i];if(!s||\"FILE\"===s)return e();if(Array.isArray(s))return e(null,s)}t.readdir(i,w(this,i,e))}},A.prototype._readdirEntries=function(t,i,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var e=0;e<i.length;e++){var s=i[e];s=\"/\"===t?t+s:t+\"/\"+s,this.cache[s]=!0}return this.cache[t]=i,r(null,i)}},A.prototype._readdirError=function(t,i,r){if(!this.aborted){switch(i.code){case\"ENOTSUP\":case\"ENOTDIR\":var e=this._makeAbs(t);if(this.cache[e]=\"FILE\",e===this.cwdAbs){var s=new Error(i.code+\" invalid cwd \"+this.cwd);s.path=this.cwd,s.code=i.code,this.emit(\"error\",s),this.abort()}break;case\"ENOENT\":case\"ELOOP\":case\"ENAMETOOLONG\":case\"UNKNOWN\":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit(\"error\",i),this.abort()),this.silent||console.error(\"glob error\",i)}return r()}},A.prototype._processGlobStar=function(t,i,r,e,s,n,a){var h=this;this._readdir(r,n,function(o,c){h._processGlobStar2(t,i,r,e,s,n,c,a)})},A.prototype._processGlobStar2=function(t,i,r,e,s,n,a,h){if(!a)return h();var o=e.slice(1),c=t?[t]:[],u=c.concat(o);this._process(u,s,!1,h);var f=this.symlinks[r],p=a.length;if(f&&n)return h();for(var l=0;l<p;l++){if(\".\"!==a[l].charAt(0)||this.dot){var d=c.concat(a[l],o);this._process(d,s,!0,h);var _=c.concat(a[l],e);this._process(_,s,!0,h)}}h()},A.prototype._processSimple=function(t,i,r){var e=this;this._stat(t,function(s,n){e._processSimple2(t,i,s,n,r)})},A.prototype._processSimple2=function(t,i,r,e,s){if(this.matches[i]||(this.matches[i]=Object.create(null)),!e)return s();if(t&&o(t)&&!this.nomount){var n=/[\\/\\\\]$/.test(t);\"/\"===t.charAt(0)?t=a.join(this.root,t):(t=a.resolve(this.root,t),n&&(t+=\"/\"))}\"win32\"===process.platform&&(t=t.replace(/\\\\/g,\"/\")),this._emitMatch(i,t),s()},A.prototype._stat=function(i,r){var e=this._makeAbs(i),s=\"/\"===i.slice(-1);if(i.length>this.maxLength)return r();if(!this.stat&&d(this.cache,e)){var n=this.cache[e];if(Array.isArray(n)&&(n=\"DIR\"),!s||\"DIR\"===n)return r(null,n);if(s&&\"FILE\"===n)return r()}var a=this.statCache[e];if(void 0!==a){if(!1===a)return r(null,a);var h=a.isDirectory()?\"DIR\":\"FILE\";return s&&\"FILE\"===h?r():r(null,h,a)}var o=this,c=_(\"stat\\0\"+e,function(s,n){if(n&&n.isSymbolicLink())return t.stat(e,function(t,s){t?o._stat2(i,e,null,n,r):o._stat2(i,e,t,s,r)});o._stat2(i,e,s,n,r)});c&&t.lstat(e,c)},A.prototype._stat2=function(t,i,r,e,s){if(r&&(\"ENOENT\"===r.code||\"ENOTDIR\"===r.code))return this.statCache[i]=!1,s();var n=\"/\"===t.slice(-1);if(this.statCache[i]=e,\"/\"===i.slice(-1)&&e&&!e.isDirectory())return s(null,!1,e);var a=!0;return e&&(a=e.isDirectory()?\"DIR\":\"FILE\"),this.cache[i]=this.cache[i]||a,n&&\"FILE\"===a?s():s(null,a,e)};"},"sourceMaps":null,"error":null,"hash":"9214c8f385ff0e9686ce0ff4624c38fc","cacheData":{"env":{}}}