node-install-release 1.7.7 → 1.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,7 @@ function install(version, dest, options, callback) {
42
42
  a
43
43
  ].concat(parts.slice(2)).join('-');
44
44
  });
45
+ if (platform === 'win') filenames.push('win-x64-exe', 'win-x86-exe');
45
46
  filenames.push('src');
46
47
  var tryNext = function(cb) {
47
48
  if (filenames.length === 0) return cb(new Error("Failed to find installable for ".concat(version)));
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/index.ts"],"sourcesContent":["import realArch from '../machine/arch.cjs';\nimport installFilename from './installFilename';\n\nconst PLATFORM_MAP = {\n win32: 'win',\n darwin: 'osx',\n};\n\nlet archMachine: NodeJS.Architecture;\nexport default function install(version, dest, options, callback) {\n if (!archMachine) archMachine = realArch() as NodeJS.Architecture;\n let platform = options.platform || process.platform;\n platform = PLATFORM_MAP[platform] || platform;\n const arch = options.arch || archMachine || process.arch;\n const parts = [platform, arch];\n if (options.type) parts.push(options.type);\n if (options.compression) parts.push(options.compression);\n\n const archs = [arch];\n if (archs.indexOf('x64') < 0) archs.push('x64');\n if (arch !== process.arch && archs.indexOf(process.arch) < 0) archs.push(process.arch);\n const filenames = archs.map((a) => [platform, a].concat(parts.slice(2)).join('-'));\n filenames.push('src');\n\n const tryNext = (cb) => {\n if (filenames.length === 0) return cb(new Error(`Failed to find installable for ${version}`));\n installFilename(filenames.shift(), version, dest, options, (err) => (err ? tryNext(cb) : cb()));\n };\n tryNext(callback);\n}\n"],"names":["install","PLATFORM_MAP","win32","darwin","archMachine","version","dest","options","callback","realArch","platform","process","arch","parts","type","push","compression","archs","indexOf","filenames","map","a","concat","slice","join","tryNext","cb","length","Error","installFilename","shift","err"],"mappings":";;;;+BASA;;;eAAwBA;;;8DATH;sEACO;;;;;;AAE5B,IAAMC,eAAe;IACnBC,OAAO;IACPC,QAAQ;AACV;AAEA,IAAIC;AACW,SAASJ,QAAQK,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAC9D,IAAI,CAACJ,aAAaA,cAAcK,IAAAA,gBAAQ;IACxC,IAAIC,WAAWH,QAAQG,QAAQ,IAAIC,QAAQD,QAAQ;IACnDA,WAAWT,YAAY,CAACS,SAAS,IAAIA;IACrC,IAAME,OAAOL,QAAQK,IAAI,IAAIR,eAAeO,QAAQC,IAAI;IACxD,IAAMC,QAAQ;QAACH;QAAUE;KAAK;IAC9B,IAAIL,QAAQO,IAAI,EAAED,MAAME,IAAI,CAACR,QAAQO,IAAI;IACzC,IAAIP,QAAQS,WAAW,EAAEH,MAAME,IAAI,CAACR,QAAQS,WAAW;IAEvD,IAAMC,QAAQ;QAACL;KAAK;IACpB,IAAIK,MAAMC,OAAO,CAAC,SAAS,GAAGD,MAAMF,IAAI,CAAC;IACzC,IAAIH,SAASD,QAAQC,IAAI,IAAIK,MAAMC,OAAO,CAACP,QAAQC,IAAI,IAAI,GAAGK,MAAMF,IAAI,CAACJ,QAAQC,IAAI;IACrF,IAAMO,YAAYF,MAAMG,GAAG,CAAC,SAACC;eAAM;YAACX;YAAUW;SAAE,CAACC,MAAM,CAACT,MAAMU,KAAK,CAAC,IAAIC,IAAI,CAAC;;IAC7EL,UAAUJ,IAAI,CAAC;IAEf,IAAMU,UAAU,SAACC;QACf,IAAIP,UAAUQ,MAAM,KAAK,GAAG,OAAOD,GAAG,IAAIE,MAAM,AAAC,kCAAyC,OAARvB;QAClFwB,IAAAA,wBAAe,EAACV,UAAUW,KAAK,IAAIzB,SAASC,MAAMC,SAAS,SAACwB;mBAASA,MAAMN,QAAQC,MAAMA;;IAC3F;IACAD,QAAQjB;AACV"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/index.ts"],"sourcesContent":["import realArch from '../machine/arch.cjs';\nimport installFilename from './installFilename';\n\nconst PLATFORM_MAP = {\n win32: 'win',\n darwin: 'osx',\n};\n\nlet archMachine: NodeJS.Architecture;\nexport default function install(version, dest, options, callback) {\n if (!archMachine) archMachine = realArch() as NodeJS.Architecture;\n let platform = options.platform || process.platform;\n platform = PLATFORM_MAP[platform] || platform;\n const arch = options.arch || archMachine || process.arch;\n const parts = [platform, arch];\n if (options.type) parts.push(options.type);\n if (options.compression) parts.push(options.compression);\n\n const archs = [arch];\n if (archs.indexOf('x64') < 0) archs.push('x64');\n if (arch !== process.arch && archs.indexOf(process.arch) < 0) archs.push(process.arch);\n const filenames = archs.map((a) => [platform, a].concat(parts.slice(2)).join('-'));\n if (platform === 'win') filenames.push('win-x64-exe', 'win-x86-exe');\n filenames.push('src');\n\n const tryNext = (cb) => {\n if (filenames.length === 0) return cb(new Error(`Failed to find installable for ${version}`));\n installFilename(filenames.shift(), version, dest, options, (err) => (err ? tryNext(cb) : cb()));\n };\n tryNext(callback);\n}\n"],"names":["install","PLATFORM_MAP","win32","darwin","archMachine","version","dest","options","callback","realArch","platform","process","arch","parts","type","push","compression","archs","indexOf","filenames","map","a","concat","slice","join","tryNext","cb","length","Error","installFilename","shift","err"],"mappings":";;;;+BASA;;;eAAwBA;;;8DATH;sEACO;;;;;;AAE5B,IAAMC,eAAe;IACnBC,OAAO;IACPC,QAAQ;AACV;AAEA,IAAIC;AACW,SAASJ,QAAQK,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAC9D,IAAI,CAACJ,aAAaA,cAAcK,IAAAA,gBAAQ;IACxC,IAAIC,WAAWH,QAAQG,QAAQ,IAAIC,QAAQD,QAAQ;IACnDA,WAAWT,YAAY,CAACS,SAAS,IAAIA;IACrC,IAAME,OAAOL,QAAQK,IAAI,IAAIR,eAAeO,QAAQC,IAAI;IACxD,IAAMC,QAAQ;QAACH;QAAUE;KAAK;IAC9B,IAAIL,QAAQO,IAAI,EAAED,MAAME,IAAI,CAACR,QAAQO,IAAI;IACzC,IAAIP,QAAQS,WAAW,EAAEH,MAAME,IAAI,CAACR,QAAQS,WAAW;IAEvD,IAAMC,QAAQ;QAACL;KAAK;IACpB,IAAIK,MAAMC,OAAO,CAAC,SAAS,GAAGD,MAAMF,IAAI,CAAC;IACzC,IAAIH,SAASD,QAAQC,IAAI,IAAIK,MAAMC,OAAO,CAACP,QAAQC,IAAI,IAAI,GAAGK,MAAMF,IAAI,CAACJ,QAAQC,IAAI;IACrF,IAAMO,YAAYF,MAAMG,GAAG,CAAC,SAACC;eAAM;YAACX;YAAUW;SAAE,CAACC,MAAM,CAACT,MAAMU,KAAK,CAAC,IAAIC,IAAI,CAAC;;IAC7E,IAAId,aAAa,OAAOS,UAAUJ,IAAI,CAAC,eAAe;IACtDI,UAAUJ,IAAI,CAAC;IAEf,IAAMU,UAAU,SAACC;QACf,IAAIP,UAAUQ,MAAM,KAAK,GAAG,OAAOD,GAAG,IAAIE,MAAM,AAAC,kCAAyC,OAARvB;QAClFwB,IAAAA,wBAAe,EAACV,UAAUW,KAAK,IAAIzB,SAASC,MAAMC,SAAS,SAACwB;mBAASA,MAAMN,QAAQC,MAAMA;;IAC3F;IACAD,QAAQjB;AACV"}
@@ -26,10 +26,11 @@ function installExe(distPath, dest, options, callback) {
26
26
  var destPath = _path.default.join(dest, _path.default.basename(distPath));
27
27
  (0, _fsaccesscompat.default)(destPath, function(err) {
28
28
  if (!err) return callback(); // already exists
29
+ console.log(1);
29
30
  var queue = new _queuecb.default(1);
30
31
  queue.defer(_conditionalCache.default.bind(null, downloadPath, cachePath));
31
32
  queue.defer(_validateDownload.default.bind(null, distPath, cachePath));
32
- queue.defer(_copyFile.default.bind(cachePath, destPath));
33
+ queue.defer(_copyFile.default.bind(null, cachePath, destPath));
33
34
  queue.await(callback);
34
35
  });
35
36
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/installExe.ts"],"sourcesContent":["import path from 'path';\nimport access from 'fs-access-compat';\nimport Queue from 'queue-cb';\n\nimport { NODE_DIST_BASE_URL } from '../constants';\nimport conditionalCache from '../lib/conditionalCache';\nimport copyFile from '../lib/copyFile';\nimport validateDownload from './validateDownload';\n\nexport default function installExe(distPath, dest, options, callback) {\n const downloadPath = `${NODE_DIST_BASE_URL}/${distPath}`;\n const cachePath = path.join(options.cachePath, `node-${distPath}.exe`);\n const destPath = path.join(dest, path.basename(distPath));\n\n access(destPath, (err) => {\n if (!err) return callback(); // already exists\n\n const queue = new Queue(1);\n queue.defer(conditionalCache.bind(null, downloadPath, cachePath));\n queue.defer(validateDownload.bind(null, distPath, cachePath));\n queue.defer(copyFile.bind(cachePath, destPath));\n queue.await(callback);\n });\n}\n"],"names":["installExe","distPath","dest","options","callback","downloadPath","NODE_DIST_BASE_URL","cachePath","path","join","destPath","basename","access","err","queue","Queue","defer","conditionalCache","bind","validateDownload","copyFile","await"],"mappings":";;;;+BASA;;;eAAwBA;;;2DATP;qEACE;8DACD;yBAEiB;uEACN;+DACR;uEACQ;;;;;;AAEd,SAASA,WAAWC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAClE,IAAMC,eAAe,AAAC,GAAwBJ,OAAtBK,6BAAkB,EAAC,KAAY,OAATL;IAC9C,IAAMM,YAAYC,aAAI,CAACC,IAAI,CAACN,QAAQI,SAAS,EAAE,AAAC,QAAgB,OAATN,UAAS;IAChE,IAAMS,WAAWF,aAAI,CAACC,IAAI,CAACP,MAAMM,aAAI,CAACG,QAAQ,CAACV;IAE/CW,IAAAA,uBAAM,EAACF,UAAU,SAACG;QAChB,IAAI,CAACA,KAAK,OAAOT,YAAY,iBAAiB;QAE9C,IAAMU,QAAQ,IAAIC,gBAAK,CAAC;QACxBD,MAAME,KAAK,CAACC,yBAAgB,CAACC,IAAI,CAAC,MAAMb,cAAcE;QACtDO,MAAME,KAAK,CAACG,yBAAgB,CAACD,IAAI,CAAC,MAAMjB,UAAUM;QAClDO,MAAME,KAAK,CAACI,iBAAQ,CAACF,IAAI,CAACX,WAAWG;QACrCI,MAAMO,KAAK,CAACjB;IACd;AACF"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/installExe.ts"],"sourcesContent":["import path from 'path';\nimport access from 'fs-access-compat';\nimport Queue from 'queue-cb';\n\nimport { NODE_DIST_BASE_URL } from '../constants';\nimport conditionalCache from '../lib/conditionalCache';\nimport copyFile from '../lib/copyFile';\nimport validateDownload from './validateDownload';\n\nexport default function installExe(distPath, dest, options, callback) {\n const downloadPath = `${NODE_DIST_BASE_URL}/${distPath}`;\n const cachePath = path.join(options.cachePath, `node-${distPath}.exe`);\n const destPath = path.join(dest, path.basename(distPath));\n\n access(destPath, (err) => {\n if (!err) return callback(); // already exists\n\n console.log(1);\n const queue = new Queue(1);\n queue.defer(conditionalCache.bind(null, downloadPath, cachePath));\n queue.defer(validateDownload.bind(null, distPath, cachePath));\n queue.defer(copyFile.bind(null, cachePath, destPath));\n queue.await(callback);\n });\n}\n"],"names":["installExe","distPath","dest","options","callback","downloadPath","NODE_DIST_BASE_URL","cachePath","path","join","destPath","basename","access","err","console","log","queue","Queue","defer","conditionalCache","bind","validateDownload","copyFile","await"],"mappings":";;;;+BASA;;;eAAwBA;;;2DATP;qEACE;8DACD;yBAEiB;uEACN;+DACR;uEACQ;;;;;;AAEd,SAASA,WAAWC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAClE,IAAMC,eAAe,AAAC,GAAwBJ,OAAtBK,6BAAkB,EAAC,KAAY,OAATL;IAC9C,IAAMM,YAAYC,aAAI,CAACC,IAAI,CAACN,QAAQI,SAAS,EAAE,AAAC,QAAgB,OAATN,UAAS;IAChE,IAAMS,WAAWF,aAAI,CAACC,IAAI,CAACP,MAAMM,aAAI,CAACG,QAAQ,CAACV;IAE/CW,IAAAA,uBAAM,EAACF,UAAU,SAACG;QAChB,IAAI,CAACA,KAAK,OAAOT,YAAY,iBAAiB;QAE9CU,QAAQC,GAAG,CAAC;QACZ,IAAMC,QAAQ,IAAIC,gBAAK,CAAC;QACxBD,MAAME,KAAK,CAACC,yBAAgB,CAACC,IAAI,CAAC,MAAMf,cAAcE;QACtDS,MAAME,KAAK,CAACG,yBAAgB,CAACD,IAAI,CAAC,MAAMnB,UAAUM;QAClDS,MAAME,KAAK,CAACI,iBAAQ,CAACF,IAAI,CAAC,MAAMb,WAAWG;QAC3CM,MAAMO,KAAK,CAACnB;IACd;AACF"}
@@ -25,6 +25,7 @@ export default function install(version, dest, options, callback) {
25
25
  platform,
26
26
  a
27
27
  ].concat(parts.slice(2)).join('-'));
28
+ if (platform === 'win') filenames.push('win-x64-exe', 'win-x86-exe');
28
29
  filenames.push('src');
29
30
  const tryNext = (cb)=>{
30
31
  if (filenames.length === 0) return cb(new Error(`Failed to find installable for ${version}`));
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/index.ts"],"sourcesContent":["import realArch from '../machine/arch.cjs';\nimport installFilename from './installFilename';\n\nconst PLATFORM_MAP = {\n win32: 'win',\n darwin: 'osx',\n};\n\nlet archMachine: NodeJS.Architecture;\nexport default function install(version, dest, options, callback) {\n if (!archMachine) archMachine = realArch() as NodeJS.Architecture;\n let platform = options.platform || process.platform;\n platform = PLATFORM_MAP[platform] || platform;\n const arch = options.arch || archMachine || process.arch;\n const parts = [platform, arch];\n if (options.type) parts.push(options.type);\n if (options.compression) parts.push(options.compression);\n\n const archs = [arch];\n if (archs.indexOf('x64') < 0) archs.push('x64');\n if (arch !== process.arch && archs.indexOf(process.arch) < 0) archs.push(process.arch);\n const filenames = archs.map((a) => [platform, a].concat(parts.slice(2)).join('-'));\n filenames.push('src');\n\n const tryNext = (cb) => {\n if (filenames.length === 0) return cb(new Error(`Failed to find installable for ${version}`));\n installFilename(filenames.shift(), version, dest, options, (err) => (err ? tryNext(cb) : cb()));\n };\n tryNext(callback);\n}\n"],"names":["realArch","installFilename","PLATFORM_MAP","win32","darwin","archMachine","install","version","dest","options","callback","platform","process","arch","parts","type","push","compression","archs","indexOf","filenames","map","a","concat","slice","join","tryNext","cb","length","Error","shift","err"],"mappings":"AAAA,OAAOA,cAAc,sBAAsB;AAC3C,OAAOC,qBAAqB,oBAAoB;AAEhD,MAAMC,eAAe;IACnBC,OAAO;IACPC,QAAQ;AACV;AAEA,IAAIC;AACJ,eAAe,SAASC,QAAQC,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAC9D,IAAI,CAACL,aAAaA,cAAcL;IAChC,IAAIW,WAAWF,QAAQE,QAAQ,IAAIC,QAAQD,QAAQ;IACnDA,WAAWT,YAAY,CAACS,SAAS,IAAIA;IACrC,MAAME,OAAOJ,QAAQI,IAAI,IAAIR,eAAeO,QAAQC,IAAI;IACxD,MAAMC,QAAQ;QAACH;QAAUE;KAAK;IAC9B,IAAIJ,QAAQM,IAAI,EAAED,MAAME,IAAI,CAACP,QAAQM,IAAI;IACzC,IAAIN,QAAQQ,WAAW,EAAEH,MAAME,IAAI,CAACP,QAAQQ,WAAW;IAEvD,MAAMC,QAAQ;QAACL;KAAK;IACpB,IAAIK,MAAMC,OAAO,CAAC,SAAS,GAAGD,MAAMF,IAAI,CAAC;IACzC,IAAIH,SAASD,QAAQC,IAAI,IAAIK,MAAMC,OAAO,CAACP,QAAQC,IAAI,IAAI,GAAGK,MAAMF,IAAI,CAACJ,QAAQC,IAAI;IACrF,MAAMO,YAAYF,MAAMG,GAAG,CAAC,CAACC,IAAM;YAACX;YAAUW;SAAE,CAACC,MAAM,CAACT,MAAMU,KAAK,CAAC,IAAIC,IAAI,CAAC;IAC7EL,UAAUJ,IAAI,CAAC;IAEf,MAAMU,UAAU,CAACC;QACf,IAAIP,UAAUQ,MAAM,KAAK,GAAG,OAAOD,GAAG,IAAIE,MAAM,CAAC,+BAA+B,EAAEtB,SAAS;QAC3FN,gBAAgBmB,UAAUU,KAAK,IAAIvB,SAASC,MAAMC,SAAS,CAACsB,MAASA,MAAML,QAAQC,MAAMA;IAC3F;IACAD,QAAQhB;AACV"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/index.ts"],"sourcesContent":["import realArch from '../machine/arch.cjs';\nimport installFilename from './installFilename';\n\nconst PLATFORM_MAP = {\n win32: 'win',\n darwin: 'osx',\n};\n\nlet archMachine: NodeJS.Architecture;\nexport default function install(version, dest, options, callback) {\n if (!archMachine) archMachine = realArch() as NodeJS.Architecture;\n let platform = options.platform || process.platform;\n platform = PLATFORM_MAP[platform] || platform;\n const arch = options.arch || archMachine || process.arch;\n const parts = [platform, arch];\n if (options.type) parts.push(options.type);\n if (options.compression) parts.push(options.compression);\n\n const archs = [arch];\n if (archs.indexOf('x64') < 0) archs.push('x64');\n if (arch !== process.arch && archs.indexOf(process.arch) < 0) archs.push(process.arch);\n const filenames = archs.map((a) => [platform, a].concat(parts.slice(2)).join('-'));\n if (platform === 'win') filenames.push('win-x64-exe', 'win-x86-exe');\n filenames.push('src');\n\n const tryNext = (cb) => {\n if (filenames.length === 0) return cb(new Error(`Failed to find installable for ${version}`));\n installFilename(filenames.shift(), version, dest, options, (err) => (err ? tryNext(cb) : cb()));\n };\n tryNext(callback);\n}\n"],"names":["realArch","installFilename","PLATFORM_MAP","win32","darwin","archMachine","install","version","dest","options","callback","platform","process","arch","parts","type","push","compression","archs","indexOf","filenames","map","a","concat","slice","join","tryNext","cb","length","Error","shift","err"],"mappings":"AAAA,OAAOA,cAAc,sBAAsB;AAC3C,OAAOC,qBAAqB,oBAAoB;AAEhD,MAAMC,eAAe;IACnBC,OAAO;IACPC,QAAQ;AACV;AAEA,IAAIC;AACJ,eAAe,SAASC,QAAQC,OAAO,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAC9D,IAAI,CAACL,aAAaA,cAAcL;IAChC,IAAIW,WAAWF,QAAQE,QAAQ,IAAIC,QAAQD,QAAQ;IACnDA,WAAWT,YAAY,CAACS,SAAS,IAAIA;IACrC,MAAME,OAAOJ,QAAQI,IAAI,IAAIR,eAAeO,QAAQC,IAAI;IACxD,MAAMC,QAAQ;QAACH;QAAUE;KAAK;IAC9B,IAAIJ,QAAQM,IAAI,EAAED,MAAME,IAAI,CAACP,QAAQM,IAAI;IACzC,IAAIN,QAAQQ,WAAW,EAAEH,MAAME,IAAI,CAACP,QAAQQ,WAAW;IAEvD,MAAMC,QAAQ;QAACL;KAAK;IACpB,IAAIK,MAAMC,OAAO,CAAC,SAAS,GAAGD,MAAMF,IAAI,CAAC;IACzC,IAAIH,SAASD,QAAQC,IAAI,IAAIK,MAAMC,OAAO,CAACP,QAAQC,IAAI,IAAI,GAAGK,MAAMF,IAAI,CAACJ,QAAQC,IAAI;IACrF,MAAMO,YAAYF,MAAMG,GAAG,CAAC,CAACC,IAAM;YAACX;YAAUW;SAAE,CAACC,MAAM,CAACT,MAAMU,KAAK,CAAC,IAAIC,IAAI,CAAC;IAC7E,IAAId,aAAa,OAAOS,UAAUJ,IAAI,CAAC,eAAe;IACtDI,UAAUJ,IAAI,CAAC;IAEf,MAAMU,UAAU,CAACC;QACf,IAAIP,UAAUQ,MAAM,KAAK,GAAG,OAAOD,GAAG,IAAIE,MAAM,CAAC,+BAA+B,EAAEtB,SAAS;QAC3FN,gBAAgBmB,UAAUU,KAAK,IAAIvB,SAASC,MAAMC,SAAS,CAACsB,MAASA,MAAML,QAAQC,MAAMA;IAC3F;IACAD,QAAQhB;AACV"}
@@ -11,10 +11,11 @@ export default function installExe(distPath, dest, options, callback) {
11
11
  const destPath = path.join(dest, path.basename(distPath));
12
12
  access(destPath, (err)=>{
13
13
  if (!err) return callback(); // already exists
14
+ console.log(1);
14
15
  const queue = new Queue(1);
15
16
  queue.defer(conditionalCache.bind(null, downloadPath, cachePath));
16
17
  queue.defer(validateDownload.bind(null, distPath, cachePath));
17
- queue.defer(copyFile.bind(cachePath, destPath));
18
+ queue.defer(copyFile.bind(null, cachePath, destPath));
18
19
  queue.await(callback);
19
20
  });
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/installExe.ts"],"sourcesContent":["import path from 'path';\nimport access from 'fs-access-compat';\nimport Queue from 'queue-cb';\n\nimport { NODE_DIST_BASE_URL } from '../constants';\nimport conditionalCache from '../lib/conditionalCache';\nimport copyFile from '../lib/copyFile';\nimport validateDownload from './validateDownload';\n\nexport default function installExe(distPath, dest, options, callback) {\n const downloadPath = `${NODE_DIST_BASE_URL}/${distPath}`;\n const cachePath = path.join(options.cachePath, `node-${distPath}.exe`);\n const destPath = path.join(dest, path.basename(distPath));\n\n access(destPath, (err) => {\n if (!err) return callback(); // already exists\n\n const queue = new Queue(1);\n queue.defer(conditionalCache.bind(null, downloadPath, cachePath));\n queue.defer(validateDownload.bind(null, distPath, cachePath));\n queue.defer(copyFile.bind(cachePath, destPath));\n queue.await(callback);\n });\n}\n"],"names":["path","access","Queue","NODE_DIST_BASE_URL","conditionalCache","copyFile","validateDownload","installExe","distPath","dest","options","callback","downloadPath","cachePath","join","destPath","basename","err","queue","defer","bind","await"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,YAAY,mBAAmB;AACtC,OAAOC,WAAW,WAAW;AAE7B,SAASC,kBAAkB,QAAQ,eAAe;AAClD,OAAOC,sBAAsB,0BAA0B;AACvD,OAAOC,cAAc,kBAAkB;AACvC,OAAOC,sBAAsB,qBAAqB;AAElD,eAAe,SAASC,WAAWC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAClE,MAAMC,eAAe,GAAGT,mBAAmB,CAAC,EAAEK,UAAU;IACxD,MAAMK,YAAYb,KAAKc,IAAI,CAACJ,QAAQG,SAAS,EAAE,CAAC,KAAK,EAAEL,SAAS,IAAI,CAAC;IACrE,MAAMO,WAAWf,KAAKc,IAAI,CAACL,MAAMT,KAAKgB,QAAQ,CAACR;IAE/CP,OAAOc,UAAU,CAACE;QAChB,IAAI,CAACA,KAAK,OAAON,YAAY,iBAAiB;QAE9C,MAAMO,QAAQ,IAAIhB,MAAM;QACxBgB,MAAMC,KAAK,CAACf,iBAAiBgB,IAAI,CAAC,MAAMR,cAAcC;QACtDK,MAAMC,KAAK,CAACb,iBAAiBc,IAAI,CAAC,MAAMZ,UAAUK;QAClDK,MAAMC,KAAK,CAACd,SAASe,IAAI,CAACP,WAAWE;QACrCG,MAAMG,KAAK,CAACV;IACd;AACF"}
1
+ {"version":3,"sources":["/Users/kevin/Dev/OpenSource/node-version/node-install-release/src/installNode/installExe.ts"],"sourcesContent":["import path from 'path';\nimport access from 'fs-access-compat';\nimport Queue from 'queue-cb';\n\nimport { NODE_DIST_BASE_URL } from '../constants';\nimport conditionalCache from '../lib/conditionalCache';\nimport copyFile from '../lib/copyFile';\nimport validateDownload from './validateDownload';\n\nexport default function installExe(distPath, dest, options, callback) {\n const downloadPath = `${NODE_DIST_BASE_URL}/${distPath}`;\n const cachePath = path.join(options.cachePath, `node-${distPath}.exe`);\n const destPath = path.join(dest, path.basename(distPath));\n\n access(destPath, (err) => {\n if (!err) return callback(); // already exists\n\n console.log(1);\n const queue = new Queue(1);\n queue.defer(conditionalCache.bind(null, downloadPath, cachePath));\n queue.defer(validateDownload.bind(null, distPath, cachePath));\n queue.defer(copyFile.bind(null, cachePath, destPath));\n queue.await(callback);\n });\n}\n"],"names":["path","access","Queue","NODE_DIST_BASE_URL","conditionalCache","copyFile","validateDownload","installExe","distPath","dest","options","callback","downloadPath","cachePath","join","destPath","basename","err","console","log","queue","defer","bind","await"],"mappings":"AAAA,OAAOA,UAAU,OAAO;AACxB,OAAOC,YAAY,mBAAmB;AACtC,OAAOC,WAAW,WAAW;AAE7B,SAASC,kBAAkB,QAAQ,eAAe;AAClD,OAAOC,sBAAsB,0BAA0B;AACvD,OAAOC,cAAc,kBAAkB;AACvC,OAAOC,sBAAsB,qBAAqB;AAElD,eAAe,SAASC,WAAWC,QAAQ,EAAEC,IAAI,EAAEC,OAAO,EAAEC,QAAQ;IAClE,MAAMC,eAAe,GAAGT,mBAAmB,CAAC,EAAEK,UAAU;IACxD,MAAMK,YAAYb,KAAKc,IAAI,CAACJ,QAAQG,SAAS,EAAE,CAAC,KAAK,EAAEL,SAAS,IAAI,CAAC;IACrE,MAAMO,WAAWf,KAAKc,IAAI,CAACL,MAAMT,KAAKgB,QAAQ,CAACR;IAE/CP,OAAOc,UAAU,CAACE;QAChB,IAAI,CAACA,KAAK,OAAON,YAAY,iBAAiB;QAE9CO,QAAQC,GAAG,CAAC;QACZ,MAAMC,QAAQ,IAAIlB,MAAM;QACxBkB,MAAMC,KAAK,CAACjB,iBAAiBkB,IAAI,CAAC,MAAMV,cAAcC;QACtDO,MAAMC,KAAK,CAACf,iBAAiBgB,IAAI,CAAC,MAAMd,UAAUK;QAClDO,MAAMC,KAAK,CAAChB,SAASiB,IAAI,CAAC,MAAMT,WAAWE;QAC3CK,MAAMG,KAAK,CAACZ;IACd;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-install-release",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "Cross-platform solution for installing releases of Node.js",
5
5
  "keywords": [
6
6
  "node",