You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-process-release.js 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401
  1. 'use strict'
  2. const { describe, it } = require('mocha')
  3. const assert = require('assert')
  4. const processRelease = require('../lib/process-release')
  5. describe('process-release', function () {
  6. it('test process release - process.version = 0.8.20', function () {
  7. var release = processRelease([], { opts: {} }, 'v0.8.20', null)
  8. assert.strictEqual(release.semver.version, '0.8.20')
  9. delete release.semver
  10. assert.deepStrictEqual(release, {
  11. version: '0.8.20',
  12. name: 'node',
  13. baseUrl: 'https://nodejs.org/dist/v0.8.20/',
  14. tarballUrl: 'https://nodejs.org/dist/v0.8.20/node-v0.8.20.tar.gz',
  15. shasumsUrl: 'https://nodejs.org/dist/v0.8.20/SHASUMS256.txt',
  16. versionDir: '0.8.20',
  17. ia32: { libUrl: 'https://nodejs.org/dist/v0.8.20/node.lib', libPath: 'node.lib' },
  18. x64: { libUrl: 'https://nodejs.org/dist/v0.8.20/x64/node.lib', libPath: 'x64/node.lib' },
  19. arm64: { libUrl: 'https://nodejs.org/dist/v0.8.20/arm64/node.lib', libPath: 'arm64/node.lib' }
  20. })
  21. })
  22. it('test process release - process.version = 0.10.21', function () {
  23. var release = processRelease([], { opts: {} }, 'v0.10.21', null)
  24. assert.strictEqual(release.semver.version, '0.10.21')
  25. delete release.semver
  26. assert.deepStrictEqual(release, {
  27. version: '0.10.21',
  28. name: 'node',
  29. baseUrl: 'https://nodejs.org/dist/v0.10.21/',
  30. tarballUrl: 'https://nodejs.org/dist/v0.10.21/node-v0.10.21.tar.gz',
  31. shasumsUrl: 'https://nodejs.org/dist/v0.10.21/SHASUMS256.txt',
  32. versionDir: '0.10.21',
  33. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.21/node.lib', libPath: 'node.lib' },
  34. x64: { libUrl: 'https://nodejs.org/dist/v0.10.21/x64/node.lib', libPath: 'x64/node.lib' },
  35. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.21/arm64/node.lib', libPath: 'arm64/node.lib' }
  36. })
  37. })
  38. // prior to -headers.tar.gz
  39. it('test process release - process.version = 0.12.9', function () {
  40. var release = processRelease([], { opts: {} }, 'v0.12.9', null)
  41. assert.strictEqual(release.semver.version, '0.12.9')
  42. delete release.semver
  43. assert.deepStrictEqual(release, {
  44. version: '0.12.9',
  45. name: 'node',
  46. baseUrl: 'https://nodejs.org/dist/v0.12.9/',
  47. tarballUrl: 'https://nodejs.org/dist/v0.12.9/node-v0.12.9.tar.gz',
  48. shasumsUrl: 'https://nodejs.org/dist/v0.12.9/SHASUMS256.txt',
  49. versionDir: '0.12.9',
  50. ia32: { libUrl: 'https://nodejs.org/dist/v0.12.9/node.lib', libPath: 'node.lib' },
  51. x64: { libUrl: 'https://nodejs.org/dist/v0.12.9/x64/node.lib', libPath: 'x64/node.lib' },
  52. arm64: { libUrl: 'https://nodejs.org/dist/v0.12.9/arm64/node.lib', libPath: 'arm64/node.lib' }
  53. })
  54. })
  55. // prior to -headers.tar.gz
  56. it('test process release - process.version = 0.10.41', function () {
  57. var release = processRelease([], { opts: {} }, 'v0.10.41', null)
  58. assert.strictEqual(release.semver.version, '0.10.41')
  59. delete release.semver
  60. assert.deepStrictEqual(release, {
  61. version: '0.10.41',
  62. name: 'node',
  63. baseUrl: 'https://nodejs.org/dist/v0.10.41/',
  64. tarballUrl: 'https://nodejs.org/dist/v0.10.41/node-v0.10.41.tar.gz',
  65. shasumsUrl: 'https://nodejs.org/dist/v0.10.41/SHASUMS256.txt',
  66. versionDir: '0.10.41',
  67. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.41/node.lib', libPath: 'node.lib' },
  68. x64: { libUrl: 'https://nodejs.org/dist/v0.10.41/x64/node.lib', libPath: 'x64/node.lib' },
  69. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.41/arm64/node.lib', libPath: 'arm64/node.lib' }
  70. })
  71. })
  72. // has -headers.tar.gz
  73. it('test process release - process.release ~ node@0.10.42', function () {
  74. var release = processRelease([], { opts: {} }, 'v0.10.42', null)
  75. assert.strictEqual(release.semver.version, '0.10.42')
  76. delete release.semver
  77. assert.deepStrictEqual(release, {
  78. version: '0.10.42',
  79. name: 'node',
  80. baseUrl: 'https://nodejs.org/dist/v0.10.42/',
  81. tarballUrl: 'https://nodejs.org/dist/v0.10.42/node-v0.10.42-headers.tar.gz',
  82. shasumsUrl: 'https://nodejs.org/dist/v0.10.42/SHASUMS256.txt',
  83. versionDir: '0.10.42',
  84. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.42/node.lib', libPath: 'node.lib' },
  85. x64: { libUrl: 'https://nodejs.org/dist/v0.10.42/x64/node.lib', libPath: 'x64/node.lib' },
  86. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.42/arm64/node.lib', libPath: 'arm64/node.lib' }
  87. })
  88. })
  89. // has -headers.tar.gz
  90. it('test process release - process.release ~ node@0.12.10', function () {
  91. var release = processRelease([], { opts: {} }, 'v0.12.10', null)
  92. assert.strictEqual(release.semver.version, '0.12.10')
  93. delete release.semver
  94. assert.deepStrictEqual(release, {
  95. version: '0.12.10',
  96. name: 'node',
  97. baseUrl: 'https://nodejs.org/dist/v0.12.10/',
  98. tarballUrl: 'https://nodejs.org/dist/v0.12.10/node-v0.12.10-headers.tar.gz',
  99. shasumsUrl: 'https://nodejs.org/dist/v0.12.10/SHASUMS256.txt',
  100. versionDir: '0.12.10',
  101. ia32: { libUrl: 'https://nodejs.org/dist/v0.12.10/node.lib', libPath: 'node.lib' },
  102. x64: { libUrl: 'https://nodejs.org/dist/v0.12.10/x64/node.lib', libPath: 'x64/node.lib' },
  103. arm64: { libUrl: 'https://nodejs.org/dist/v0.12.10/arm64/node.lib', libPath: 'arm64/node.lib' }
  104. })
  105. })
  106. it('test process release - process.release ~ node@4.1.23', function () {
  107. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  108. name: 'node',
  109. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  110. })
  111. assert.strictEqual(release.semver.version, '4.1.23')
  112. delete release.semver
  113. assert.deepStrictEqual(release, {
  114. version: '4.1.23',
  115. name: 'node',
  116. baseUrl: 'https://nodejs.org/dist/v4.1.23/',
  117. tarballUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz',
  118. shasumsUrl: 'https://nodejs.org/dist/v4.1.23/SHASUMS256.txt',
  119. versionDir: '4.1.23',
  120. ia32: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  121. x64: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  122. arm64: { libUrl: 'https://nodejs.org/dist/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  123. })
  124. })
  125. it('test process release - process.release ~ node@4.1.23 / corp build', function () {
  126. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  127. name: 'node',
  128. headersUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz'
  129. })
  130. assert.strictEqual(release.semver.version, '4.1.23')
  131. delete release.semver
  132. assert.deepStrictEqual(release, {
  133. version: '4.1.23',
  134. name: 'node',
  135. baseUrl: 'https://some.custom.location/',
  136. tarballUrl: 'https://some.custom.location/node-v4.1.23-headers.tar.gz',
  137. shasumsUrl: 'https://some.custom.location/SHASUMS256.txt',
  138. versionDir: '4.1.23',
  139. ia32: { libUrl: 'https://some.custom.location/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  140. x64: { libUrl: 'https://some.custom.location/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  141. arm64: { libUrl: 'https://some.custom.location/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  142. })
  143. })
  144. it('test process release - process.release ~ node@12.8.0 Windows', function () {
  145. var release = processRelease([], { opts: {} }, 'v12.8.0', {
  146. name: 'node',
  147. sourceUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0.tar.gz',
  148. headersUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  149. libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x64/node.lib'
  150. })
  151. assert.strictEqual(release.semver.version, '12.8.0')
  152. delete release.semver
  153. assert.deepStrictEqual(release, {
  154. version: '12.8.0',
  155. name: 'node',
  156. baseUrl: 'https://nodejs.org/download/release/v12.8.0/',
  157. tarballUrl: 'https://nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  158. shasumsUrl: 'https://nodejs.org/download/release/v12.8.0/SHASUMS256.txt',
  159. versionDir: '12.8.0',
  160. ia32: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  161. x64: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  162. arm64: { libUrl: 'https://nodejs.org/download/release/v12.8.0/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  163. })
  164. })
  165. it('test process release - process.release ~ node@12.8.0 Windows ARM64', function () {
  166. var release = processRelease([], { opts: {} }, 'v12.8.0', {
  167. name: 'node',
  168. sourceUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0.tar.gz',
  169. headersUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  170. libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-arm64/node.lib'
  171. })
  172. assert.strictEqual(release.semver.version, '12.8.0')
  173. delete release.semver
  174. assert.deepStrictEqual(release, {
  175. version: '12.8.0',
  176. name: 'node',
  177. baseUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/',
  178. tarballUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/node-v12.8.0-headers.tar.gz',
  179. shasumsUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/SHASUMS256.txt',
  180. versionDir: '12.8.0',
  181. ia32: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  182. x64: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  183. arm64: { libUrl: 'https://unofficial-builds.nodejs.org/download/release/v12.8.0/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  184. })
  185. })
  186. it('test process release - process.release ~ node@4.1.23 --target=0.10.40', function () {
  187. var release = processRelease([], { opts: { target: '0.10.40' } }, 'v4.1.23', {
  188. name: 'node',
  189. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  190. })
  191. assert.strictEqual(release.semver.version, '0.10.40')
  192. delete release.semver
  193. assert.deepStrictEqual(release, {
  194. version: '0.10.40',
  195. name: 'node',
  196. baseUrl: 'https://nodejs.org/dist/v0.10.40/',
  197. tarballUrl: 'https://nodejs.org/dist/v0.10.40/node-v0.10.40.tar.gz',
  198. shasumsUrl: 'https://nodejs.org/dist/v0.10.40/SHASUMS256.txt',
  199. versionDir: '0.10.40',
  200. ia32: { libUrl: 'https://nodejs.org/dist/v0.10.40/node.lib', libPath: 'node.lib' },
  201. x64: { libUrl: 'https://nodejs.org/dist/v0.10.40/x64/node.lib', libPath: 'x64/node.lib' },
  202. arm64: { libUrl: 'https://nodejs.org/dist/v0.10.40/arm64/node.lib', libPath: 'arm64/node.lib' }
  203. })
  204. })
  205. it('test process release - process.release ~ node@4.1.23 --dist-url=https://foo.bar/baz', function () {
  206. var release = processRelease([], { opts: { 'dist-url': 'https://foo.bar/baz' } }, 'v4.1.23', {
  207. name: 'node',
  208. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  209. })
  210. assert.strictEqual(release.semver.version, '4.1.23')
  211. delete release.semver
  212. assert.deepStrictEqual(release, {
  213. version: '4.1.23',
  214. name: 'node',
  215. baseUrl: 'https://foo.bar/baz/v4.1.23/',
  216. tarballUrl: 'https://foo.bar/baz/v4.1.23/node-v4.1.23-headers.tar.gz',
  217. shasumsUrl: 'https://foo.bar/baz/v4.1.23/SHASUMS256.txt',
  218. versionDir: '4.1.23',
  219. ia32: { libUrl: 'https://foo.bar/baz/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  220. x64: { libUrl: 'https://foo.bar/baz/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  221. arm64: { libUrl: 'https://foo.bar/baz/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  222. })
  223. })
  224. it('test process release - process.release ~ frankenstein@4.1.23', function () {
  225. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  226. name: 'frankenstein',
  227. headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz'
  228. })
  229. assert.strictEqual(release.semver.version, '4.1.23')
  230. delete release.semver
  231. assert.deepStrictEqual(release, {
  232. version: '4.1.23',
  233. name: 'frankenstein',
  234. baseUrl: 'https://frankensteinjs.org/dist/v4.1.23/',
  235. tarballUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
  236. shasumsUrl: 'https://frankensteinjs.org/dist/v4.1.23/SHASUMS256.txt',
  237. versionDir: 'frankenstein-4.1.23',
  238. ia32: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-x86/frankenstein.lib', libPath: 'win-x86/frankenstein.lib' },
  239. x64: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-x64/frankenstein.lib', libPath: 'win-x64/frankenstein.lib' },
  240. arm64: { libUrl: 'https://frankensteinjs.org/dist/v4.1.23/win-arm64/frankenstein.lib', libPath: 'win-arm64/frankenstein.lib' }
  241. })
  242. })
  243. it('test process release - process.release ~ frankenstein@4.1.23 --dist-url=http://foo.bar/baz/', function () {
  244. var release = processRelease([], { opts: { 'dist-url': 'http://foo.bar/baz/' } }, 'v4.1.23', {
  245. name: 'frankenstein',
  246. headersUrl: 'https://frankensteinjs.org/dist/v4.1.23/frankenstein-v4.1.23.tar.gz'
  247. })
  248. assert.strictEqual(release.semver.version, '4.1.23')
  249. delete release.semver
  250. assert.deepStrictEqual(release, {
  251. version: '4.1.23',
  252. name: 'frankenstein',
  253. baseUrl: 'http://foo.bar/baz/v4.1.23/',
  254. tarballUrl: 'http://foo.bar/baz/v4.1.23/frankenstein-v4.1.23-headers.tar.gz',
  255. shasumsUrl: 'http://foo.bar/baz/v4.1.23/SHASUMS256.txt',
  256. versionDir: 'frankenstein-4.1.23',
  257. ia32: { libUrl: 'http://foo.bar/baz/v4.1.23/win-x86/frankenstein.lib', libPath: 'win-x86/frankenstein.lib' },
  258. x64: { libUrl: 'http://foo.bar/baz/v4.1.23/win-x64/frankenstein.lib', libPath: 'win-x64/frankenstein.lib' },
  259. arm64: { libUrl: 'http://foo.bar/baz/v4.1.23/win-arm64/frankenstein.lib', libPath: 'win-arm64/frankenstein.lib' }
  260. })
  261. })
  262. it('test process release - process.release ~ node@4.0.0-rc.4', function () {
  263. var release = processRelease([], { opts: {} }, 'v4.0.0-rc.4', {
  264. name: 'node',
  265. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  266. })
  267. assert.strictEqual(release.semver.version, '4.0.0-rc.4')
  268. delete release.semver
  269. assert.deepStrictEqual(release, {
  270. version: '4.0.0-rc.4',
  271. name: 'node',
  272. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  273. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  274. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  275. versionDir: '4.0.0-rc.4',
  276. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  277. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  278. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  279. })
  280. })
  281. it('test process release - process.release ~ node@4.0.0-rc.4 passed as argv[0]', function () {
  282. // note the missing 'v' on the arg, it should normalise when checking
  283. // whether we're on the default or not
  284. var release = processRelease(['4.0.0-rc.4'], { opts: {} }, 'v4.0.0-rc.4', {
  285. name: 'node',
  286. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  287. })
  288. assert.strictEqual(release.semver.version, '4.0.0-rc.4')
  289. delete release.semver
  290. assert.deepStrictEqual(release, {
  291. version: '4.0.0-rc.4',
  292. name: 'node',
  293. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  294. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  295. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  296. versionDir: '4.0.0-rc.4',
  297. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  298. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  299. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  300. })
  301. })
  302. it('test process release - process.release ~ node@4.0.0-rc.4 - bogus string passed as argv[0]', function () {
  303. // additional arguments can be passed in on the commandline that should be ignored if they
  304. // are not specifying a valid version @ position 0
  305. var release = processRelease(['this is no version!'], { opts: {} }, 'v4.0.0-rc.4', {
  306. name: 'node',
  307. headersUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz'
  308. })
  309. assert.strictEqual(release.semver.version, '4.0.0-rc.4')
  310. delete release.semver
  311. assert.deepStrictEqual(release, {
  312. version: '4.0.0-rc.4',
  313. name: 'node',
  314. baseUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/',
  315. tarballUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/node-v4.0.0-rc.4-headers.tar.gz',
  316. shasumsUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/SHASUMS256.txt',
  317. versionDir: '4.0.0-rc.4',
  318. ia32: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  319. x64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  320. arm64: { libUrl: 'https://nodejs.org/download/rc/v4.0.0-rc.4/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  321. })
  322. })
  323. it('test process release - NODEJS_ORG_MIRROR', function () {
  324. process.env.NODEJS_ORG_MIRROR = 'http://foo.bar'
  325. var release = processRelease([], { opts: {} }, 'v4.1.23', {
  326. name: 'node',
  327. headersUrl: 'https://nodejs.org/dist/v4.1.23/node-v4.1.23-headers.tar.gz'
  328. })
  329. assert.strictEqual(release.semver.version, '4.1.23')
  330. delete release.semver
  331. assert.deepStrictEqual(release, {
  332. version: '4.1.23',
  333. name: 'node',
  334. baseUrl: 'http://foo.bar/v4.1.23/',
  335. tarballUrl: 'http://foo.bar/v4.1.23/node-v4.1.23-headers.tar.gz',
  336. shasumsUrl: 'http://foo.bar/v4.1.23/SHASUMS256.txt',
  337. versionDir: '4.1.23',
  338. ia32: { libUrl: 'http://foo.bar/v4.1.23/win-x86/node.lib', libPath: 'win-x86/node.lib' },
  339. x64: { libUrl: 'http://foo.bar/v4.1.23/win-x64/node.lib', libPath: 'win-x64/node.lib' },
  340. arm64: { libUrl: 'http://foo.bar/v4.1.23/win-arm64/node.lib', libPath: 'win-arm64/node.lib' }
  341. })
  342. delete process.env.NODEJS_ORG_MIRROR
  343. })
  344. })