node-abi 2.6.0 → 2.9.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
@@ -54,8 +54,9 @@ var supportedTargets = [
54
54
  {runtime: 'node', target: '7.0.0', abi: '51', lts: false},
55
55
  {runtime: 'node', target: '8.0.0', abi: '57', lts: new Date() < new Date(2019, 4, 31)},
56
56
  {runtime: 'node', target: '9.0.0', abi: '59', lts: false},
57
- {runtime: 'node', target: '10.0.0', abi: '64', lts: new Date(2018, 10, 1) < new Date() < new Date(2020, 4, 31)},
57
+ {runtime: 'node', target: '10.0.0', abi: '64', lts: new Date(2018, 10, 1) < new Date() && new Date() < new Date(2020, 4, 31)},
58
58
  {runtime: 'node', target: '11.0.0', abi: '67', lts: false},
59
+ {runtime: 'node', target: '12.0.0', abi: '72', lts: false},
59
60
  {runtime: 'electron', target: '0.36.0', abi: '47', lts: false},
60
61
  {runtime: 'electron', target: '1.1.0', abi: '48', lts: false},
61
62
  {runtime: 'electron', target: '1.3.0', abi: '49', lts: false},
@@ -66,7 +67,9 @@ var supportedTargets = [
66
67
  {runtime: 'electron', target: '1.8.0', abi: '57', lts: false},
67
68
  {runtime: 'electron', target: '2.0.0', abi: '57', lts: false},
68
69
  {runtime: 'electron', target: '3.0.0', abi: '64', lts: false},
69
- {runtime: 'electron', target: '4.0.0', abi: '64', lts: false}
70
+ {runtime: 'electron', target: '4.0.0', abi: '64', lts: false},
71
+ {runtime: 'electron', target: '4.0.4', abi: '69', lts: false},
72
+ {runtime: 'electron', target: '5.0.0', abi: '70', lts: false}
70
73
  ]
71
74
 
72
75
  var additionalTargets = [
@@ -96,7 +99,7 @@ var deprecatedTargets = [
96
99
  ]
97
100
 
98
101
  var futureTargets = [
99
- {runtime: 'electron', target: '5.0.0-beta.0', abi: '68', lts: false}
102
+ {runtime: 'electron', target: '6.0.0-beta.0', abi: '73', lts: false}
100
103
  ]
101
104
 
102
105
  var allTargets = deprecatedTargets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.6.0",
3
+ "version": "2.9.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,12 @@ 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('5.0.0', 'electron'), '70')
92
+ t.equal(getAbi('4.1.4', 'electron'), '69')
93
+ t.equal(getAbi('4.0.4', 'electron'), '69')
94
+ t.equal(getAbi('4.0.3', 'electron'), '64')
95
+ t.equal(getAbi('3.1.8', 'electron'), '64')
96
+ t.equal(getAbi('2.0.18', 'electron'), '57')
91
97
  t.equal(getAbi('1.4.0', 'electron'), '50')
92
98
  t.equal(getAbi('1.3.0', 'electron'), '49')
93
99
  t.equal(getAbi('1.2.0', 'electron'), '48')