node-abi 2.16.0 → 2.17.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
@@ -74,7 +74,8 @@ var supportedTargets = [
74
74
  {runtime: 'electron', target: '5.0.0', abi: '70', lts: false},
75
75
  {runtime: 'electron', target: '6.0.0', abi: '73', lts: false},
76
76
  {runtime: 'electron', target: '7.0.0', abi: '75', lts: false},
77
- {runtime: 'electron', target: '8.0.0', abi: '76', lts: false}
77
+ {runtime: 'electron', target: '8.0.0', abi: '76', lts: false},
78
+ {runtime: 'electron', target: '9.0.0', abi: '80', lts: false}
78
79
  ]
79
80
 
80
81
  var additionalTargets = [
@@ -103,9 +104,7 @@ var deprecatedTargets = [
103
104
  {runtime: 'electron', target: '0.33.0', abi: '46', lts: false}
104
105
  ]
105
106
 
106
- var futureTargets = [
107
- {runtime: 'electron', target: '9.0.0-beta.1', abi: '80', lts: false}
108
- ]
107
+ var futureTargets = []
109
108
 
110
109
  var allTargets = deprecatedTargets
111
110
  .concat(supportedTargets)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.16.0",
3
+ "version": "2.17.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,10 @@ 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('9.0.0', 'electron'), '80')
92
+ t.equal(getAbi('8.0.0', 'electron'), '76')
93
+ t.equal(getAbi('7.0.0', 'electron'), '75')
94
+ t.equal(getAbi('6.0.0', 'electron'), '73')
91
95
  t.equal(getAbi('5.0.0', 'electron'), '70')
92
96
  t.equal(getAbi('4.1.4', 'electron'), '69')
93
97
  t.equal(getAbi('4.0.4', 'electron'), '69')