add .abi to .allTargets
This commit is contained in:
Родитель
490f147aea
Коммит
c920d33fe0
20
README.md
20
README.md
|
@ -21,16 +21,16 @@ nodeAbi.getAbi('1.4.10', 'electron')
|
|||
|
||||
nodeAbi.allTargets
|
||||
// [
|
||||
// { runtime: 'node', target: '0.10.48', lts: false },
|
||||
// { runtime: 'node', target: '0.12.17', lts: false },
|
||||
// { runtime: 'node', target: '4.6.1', lts: true },
|
||||
// { runtime: 'node', target: '5.12.0', lts: false },
|
||||
// { runtime: 'node', target: '6.9.4', lts: true },
|
||||
// { runtime: 'node', target: '7.4.0', lts: false },
|
||||
// { runtime: 'electron', target: '1.0.2', lts: false },
|
||||
// { runtime: 'electron', target: '1.2.8', lts: false },
|
||||
// { runtime: 'electron', target: '1.3.13', lts: false },
|
||||
// { runtime: 'electron', target: '1.4.15', lts: false }
|
||||
// { runtime: 'node', target: '0.10.48', abi: '11', lts: false },
|
||||
// { runtime: 'node', target: '0.12.17', abi: '14', lts: false },
|
||||
// { runtime: 'node', target: '4.6.1', abi: '46', lts: true },
|
||||
// { runtime: 'node', target: '5.12.0', abi: '47', lts: false },
|
||||
// { runtime: 'node', target: '6.9.4', abi: '48', lts: true },
|
||||
// { runtime: 'node', target: '7.4.0', abi: '51', lts: false },
|
||||
// { runtime: 'electron', target: '1.0.2', abi: '47', lts: false },
|
||||
// { runtime: 'electron', target: '1.2.8', abi: '48', lts: false },
|
||||
// { runtime: 'electron', target: '1.3.13', abi: '49', lts: false },
|
||||
// { runtime: 'electron', target: '1.4.15', abi: '50', lts: false }
|
||||
// ]
|
||||
```
|
||||
|
||||
|
|
20
index.js
20
index.js
|
@ -43,16 +43,16 @@ function getAbi (target, runtime) {
|
|||
}
|
||||
|
||||
var allTargets = [
|
||||
{runtime: 'node', target: '0.10.48', lts: false},
|
||||
{runtime: 'node', target: '0.12.17', lts: false},
|
||||
{runtime: 'node', target: '4.6.1', lts: new Date() < new Date(2017, 04, 01)},
|
||||
{runtime: 'node', target: '5.12.0', lts: false},
|
||||
{runtime: 'node', target: '6.9.4', lts: new Date() < new Date(2018, 04, 18)},
|
||||
{runtime: 'node', target: '7.4.0', lts: false},
|
||||
{runtime: 'electron', target: '1.0.2', lts: false},
|
||||
{runtime: 'electron', target: '1.2.8', lts: false},
|
||||
{runtime: 'electron', target: '1.3.13', lts: false},
|
||||
{runtime: 'electron', target: '1.4.15', lts: false}
|
||||
{runtime: 'node', target: '0.10.48', abi: '11', lts: false},
|
||||
{runtime: 'node', target: '0.12.17', abi: '14', lts: false},
|
||||
{runtime: 'node', target: '4.6.1', abi: '46', lts: new Date() < new Date(2017, 04, 01)},
|
||||
{runtime: 'node', target: '5.12.0', abi: '47', lts: false},
|
||||
{runtime: 'node', target: '6.9.4', abi: '48', lts: new Date() < new Date(2018, 04, 18)},
|
||||
{runtime: 'node', target: '7.4.0', abi: '51', lts: false},
|
||||
{runtime: 'electron', target: '1.0.2', abi: '47', lts: false},
|
||||
{runtime: 'electron', target: '1.2.8', abi: '48', lts: false},
|
||||
{runtime: 'electron', target: '1.3.13', abi: '49', lts: false},
|
||||
{runtime: 'electron', target: '1.4.15', abi: '50', lts: false}
|
||||
]
|
||||
|
||||
exports.getAbi = getAbi
|
||||
|
|
Загрузка…
Ссылка в новой задаче