diff --git a/decode-ref.js b/decode-ref.js index de41994..d8bf8f1 100644 --- a/decode-ref.js +++ b/decode-ref.js @@ -1,5 +1,5 @@ const assert = require('assert') - , dirre = /^(v\d+\.\d+\.\d+(?:-rc\.\d+)?)(?:-(?:(?:next-)?nightly|test)\d{8}(\w+))?$/ // get version or commit from dir name + , dirre = /^(v\d+\.\d+\.\d+(?:-rc\.\d+)?)(?:-(?:(?:next-)?nightly|test|v8-canary)\d{8}(\w+))?$/ // get version or commit from dir name function decodeRef (dir) { @@ -22,6 +22,7 @@ if (module === require.main) { , { dir: 'v0.6.1' , ref: 'v0.6.1' } , { dir: 'v0.5.1' , ref: 'v0.5.1' } , { dir: 'v6.0.0-test20151107093b0e865c' , ref: '093b0e865c' } + , { dir: 'v9.0.0-v8-canary20170609cd40078f1f' , ref: 'cd40078f1f' } ] tests.forEach(function (test) { diff --git a/package.json b/package.json index 3c9b342..a288547 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,8 @@ }, "dependencies": { "after": "~0.8.2", - "bl": "~1.1.2", - "hyperquest": "~1.0.1", + "bl": "~1.2.1", + "hyperquest": "~2.1.2", "map-async": "~0.1.1", "minimist": "~1.2.0", "semver": "~5.3.0" diff --git a/transform-filename.js b/transform-filename.js index 9e42ded..eb4992d 100644 --- a/transform-filename.js +++ b/transform-filename.js @@ -28,7 +28,7 @@ const assert = require('assert') function transformFilename (file) { - file = file && file.replace(/^(?:\.\/)?(?:iojs|node)-v\d+\.\d+\.\d+-?((rc\.\d+|(next-)?nightly\d{8}[^-\.]+)-?)?\.?/, '') + file = file && file.replace(/^(?:\.\/)?(?:iojs|node)-v\d+\.\d+\.\d+-?((rc\.\d+|(?:(next-)?nightly|test|v8-canary)\d{8}[^-\.]+)-?)?\.?/, '') .replace(/\.tar\.gz$/, '') return types[file] } @@ -125,6 +125,14 @@ if (module === require.main) { , { file: 'node-v0.11.9.tar.gz', type: 'src' } , { file: 'node.exe', type: 'win-x86-exe' } , { file: 'x64/node.exe', type: 'win-x64-exe' } + , { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-darwin-x64.tar.gz', type: 'osx-x64-tar' } + , { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-darwin-x64.tar.xz' } + , { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-headers.tar.gz', type: 'headers' } + , { file: 'node-v9.0.0-v8-canary20170609cd40078f1f-headers.tar.xz' } + , { file: 'node-v9.0.0-test20170609cd40078f1f-darwin-x64.tar.gz', type: 'osx-x64-tar' } + , { file: 'node-v9.0.0-test20170609cd40078f1f-darwin-x64.tar.xz' } + , { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.gz', type: 'headers' } + , { file: 'node-v9.0.0-test20170609cd40078f1f-headers.tar.xz' } ] tests.forEach(function (test) {