node-abi 2.17.0 → 2.18.0

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.
package/index.js CHANGED
@@ -104,7 +104,9 @@ var deprecatedTargets = [
104
104
  {runtime: 'electron', target: '0.33.0', abi: '46', lts: false}
105
105
  ]
106
106
 
107
- var futureTargets = []
107
+ var futureTargets = [
108
+ {runtime: 'electron', target: '10.0.0-beta.1', abi: '82', lts: false}
109
+ ]
108
110
 
109
111
  var allTargets = deprecatedTargets
110
112
  .concat(supportedTargets)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.17.0",
3
+ "version": "2.18.0",
4
4
  "description": "Get the Node ABI for a given target and runtime, and vice versa.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/index.js CHANGED
@@ -88,6 +88,7 @@ test('getAbi calculates correct Node ABI', function (t) {
88
88
  test('getAbi calculates correct Electron ABI', function (t) {
89
89
  t.throws(function () { getAbi(undefined, 'electron') })
90
90
  t.throws(function () { getAbi(getNextTarget('electron'), 'electron') })
91
+ t.equal(getAbi('10.0.0-beta.1', 'electron'), '82')
91
92
  t.equal(getAbi('9.0.0', 'electron'), '80')
92
93
  t.equal(getAbi('8.0.0', 'electron'), '76')
93
94
  t.equal(getAbi('7.0.0', 'electron'), '75')