node-abi 2.14.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
@@ -58,6 +58,7 @@ var supportedTargets = [
58
58
  {runtime: 'node', target: '11.0.0', abi: '67', lts: false},
59
59
  {runtime: 'node', target: '12.0.0', abi: '72', lts: new Date(2019, 9, 21) < new Date() && new Date() < new Date(2020, 9, 31)},
60
60
  {runtime: 'node', target: '13.0.0', abi: '79', lts: false},
61
+ {runtime: 'node', target: '14.0.0', abi: '83', lts: false},
61
62
  {runtime: 'electron', target: '0.36.0', abi: '47', lts: false},
62
63
  {runtime: 'electron', target: '1.1.0', abi: '48', lts: false},
63
64
  {runtime: 'electron', target: '1.3.0', abi: '49', lts: false},
@@ -73,7 +74,8 @@ var supportedTargets = [
73
74
  {runtime: 'electron', target: '5.0.0', abi: '70', lts: false},
74
75
  {runtime: 'electron', target: '6.0.0', abi: '73', lts: false},
75
76
  {runtime: 'electron', target: '7.0.0', abi: '75', lts: false},
76
- {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}
77
79
  ]
78
80
 
79
81
  var additionalTargets = [
@@ -103,6 +105,7 @@ var deprecatedTargets = [
103
105
  ]
104
106
 
105
107
  var futureTargets = [
108
+ {runtime: 'electron', target: '10.0.0-beta.1', abi: '82', lts: false}
106
109
  ]
107
110
 
108
111
  var allTargets = deprecatedTargets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.14.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,11 @@ 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')
92
+ t.equal(getAbi('9.0.0', 'electron'), '80')
93
+ t.equal(getAbi('8.0.0', 'electron'), '76')
94
+ t.equal(getAbi('7.0.0', 'electron'), '75')
95
+ t.equal(getAbi('6.0.0', 'electron'), '73')
91
96
  t.equal(getAbi('5.0.0', 'electron'), '70')
92
97
  t.equal(getAbi('4.1.4', 'electron'), '69')
93
98
  t.equal(getAbi('4.0.4', 'electron'), '69')