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 2.79 kB
{"id":"aRJR","dependencies":[{"name":"/home/travis/build/dillonkearns/elm-graphql/package.json","includedInParent":true,"mtime":1558740283663},{"name":"/home/travis/build/dillonkearns/elm-graphql/node_modules/fs-extra/package.json","includedInParent":true,"mtime":499162500000}],"generated":{"js":"\"use strict\";const t=require(\"fs\"),e=require(\"path\"),r=10,n=5,s=0,i=process.versions.node.split(\".\"),o=Number.parseInt(i[0],10),c=Number.parseInt(i[1],10),a=Number.parseInt(i[2],10);function u(){if(o>r)return!0;if(o===r){if(c>n)return!0;if(c===n&&a>=s)return!0}return!1}function d(e,r,n){u()?t.stat(e,{bigint:!0},(e,s)=>{if(e)return n(e);t.stat(r,{bigint:!0},(t,e)=>t?\"ENOENT\"===t.code?n(null,{srcStat:s,destStat:null}):n(t):n(null,{srcStat:s,destStat:e}))}):t.stat(e,(e,s)=>{if(e)return n(e);t.stat(r,(t,e)=>t?\"ENOENT\"===t.code?n(null,{srcStat:s,destStat:null}):n(t):n(null,{srcStat:s,destStat:e}))})}function S(e,r){let n,s;n=u()?t.statSync(e,{bigint:!0}):t.statSync(e);try{s=u()?t.statSync(r,{bigint:!0}):t.statSync(r)}catch(i){if(\"ENOENT\"===i.code)return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:s}}function l(t,e,r,n){d(t,e,(s,i)=>{if(s)return n(s);const{srcStat:o,destStat:c}=i;return c&&c.ino&&c.dev&&c.ino===o.ino&&c.dev===o.dev?n(new Error(\"Source and destination must not be the same.\")):o.isDirectory()&&h(t,e)?n(new Error(N(t,e,r))):n(null,{srcStat:o,destStat:c})})}function f(t,e,r){const{srcStat:n,destStat:s}=S(t,e);if(s&&s.ino&&s.dev&&s.ino===n.ino&&s.dev===n.dev)throw new Error(\"Source and destination must not be the same.\");if(n.isDirectory()&&h(t,e))throw new Error(N(t,e,r));return{srcStat:n,destStat:s}}function v(r,n,s,i,o){const c=e.resolve(e.dirname(r)),a=e.resolve(e.dirname(s));if(a===c||a===e.parse(a).root)return o();u()?t.stat(a,{bigint:!0},(t,e)=>t?\"ENOENT\"===t.code?o():o(t):e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev?o(new Error(N(r,s,i))):v(r,n,a,i,o)):t.stat(a,(t,e)=>t?\"ENOENT\"===t.code?o():o(t):e.ino&&e.dev&&e.ino===n.ino&&e.dev===n.dev?o(new Error(N(r,s,i))):v(r,n,a,i,o))}function E(r,n,s,i){const o=e.resolve(e.dirname(r)),c=e.resolve(e.dirname(s));if(c===o||c===e.parse(c).root)return;let a;try{a=u()?t.statSync(c,{bigint:!0}):t.statSync(c)}catch(d){if(\"ENOENT\"===d.code)return;throw d}if(a.ino&&a.dev&&a.ino===n.ino&&a.dev===n.dev)throw new Error(N(r,s,i));return E(r,n,c,i)}function h(t,r){const n=e.resolve(t).split(e.sep).filter(t=>t),s=e.resolve(r).split(e.sep).filter(t=>t);return n.reduce((t,e,r)=>t&&s[r]===e,!0)}function N(t,e,r){return`Cannot ${r} '${t}' to a subdirectory of itself, '${e}'.`}module.exports={checkPaths:l,checkPathsSync:f,checkParentPaths:v,checkParentPathsSync:E,isSrcSubdir:h};"},"sourceMaps":null,"error":null,"hash":"056227dbf629b7d8cd8cecc6f43d6e7d","cacheData":{"env":{}}}