node-abi 2.7.1 → 2.11.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
@@ -56,6 +56,7 @@ var supportedTargets = [
56
56
  {runtime: 'node', target: '9.0.0', abi: '59', lts: false},
57
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},
@@ -67,7 +68,9 @@ var supportedTargets = [
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
70
  {runtime: 'electron', target: '4.0.0', abi: '64', lts: false},
70
- {runtime: 'electron', target: '4.0.4', abi: '69', lts: false}
71
+ {runtime: 'electron', target: '4.0.4', abi: '69', lts: false},
72
+ {runtime: 'electron', target: '5.0.0', abi: '70', lts: false},
73
+ {runtime: 'electron', target: '6.0.0', abi: '73', lts: false}
71
74
  ]
72
75
 
73
76
  var additionalTargets = [
@@ -97,7 +100,7 @@ var deprecatedTargets = [
97
100
  ]
98
101
 
99
102
  var futureTargets = [
100
- {runtime: 'electron', target: '5.0.0-beta.0', abi: '68', lts: false}
103
+ {runtime: 'electron', target: '7.0.0-beta.0', abi: '75', lts: false}
101
104
  ]
102
105
 
103
106
  var allTargets = deprecatedTargets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-abi",
3
- "version": "2.7.1",
3
+ "version": "2.11.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')