From 88d6b5bbfd1a8c68da30f2d4532c3090eddb31d3 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Mon, 13 Mar 2017 08:51:08 +0100 Subject: [PATCH 1/6] rename target_name --- binding.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding.gyp b/binding.gyp index 241f117..342b273 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,7 +1,7 @@ { 'targets': [ { - 'target_name': 'binding', + 'target_name': 'bluetooth_hci_socket', 'conditions': [ ['OS=="linux" or OS=="android" or OS=="freebsd"', { 'sources': [ From 35d005a07ac42562c391aff16010e70e8e1e82d4 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Mon, 13 Mar 2017 08:51:52 +0100 Subject: [PATCH 2/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c129475..8e3ecca 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "install": "node-pre-gyp install --fallback-to-build" }, "binary": { - "module_name": "binding", + "module_name": "bluetooth_hci_socket", "module_path": "./lib/binding/", "host": "https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/", "package_name": "{module_name}-{version}-{node_abi}-{platform}-{arch}.tar.gz", From 0e66a4256827ea15ac528b585cba97bc0777fc64 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 15 May 2018 09:51:53 +0200 Subject: [PATCH 3/6] use bindings --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8e3ecca..54b3d35 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "win32" ], "dependencies": { + "bindings": "~1.3.0", "debug": "^2.2.0", "nan": "^2.0.5", "node-pre-gyp": "0.6.x" From bb5fa8b7914369c95ce0061ab0f2f6bdbd859dac Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 15 May 2018 09:52:45 +0200 Subject: [PATCH 4/6] use bindings --- lib/native.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/native.js b/lib/native.js index 68c4e79..1992191 100644 --- a/lib/native.js +++ b/lib/native.js @@ -1,9 +1,5 @@ var events = require('events'); - -var binary = require('node-pre-gyp'); -var path = require('path'); -var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); -var binding = require(binding_path); +var binding = require('bindings')('bluetooth_hci_socket.node'); var BluetoothHciSocket = binding.BluetoothHciSocket; From 73842be9d2c316c01a0d1c79aa389171c2bf3370 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 15 May 2018 09:53:46 +0200 Subject: [PATCH 5/6] use bindings --- lib/native.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/native.js b/lib/native.js index 68c4e79..1992191 100644 --- a/lib/native.js +++ b/lib/native.js @@ -1,9 +1,5 @@ var events = require('events'); - -var binary = require('node-pre-gyp'); -var path = require('path'); -var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); -var binding = require(binding_path); +var binding = require('bindings')('bluetooth_hci_socket.node'); var BluetoothHciSocket = binding.BluetoothHciSocket; From 14eb0ef2b499bcab00845f00ea68ac6f59b919d2 Mon Sep 17 00:00:00 2001 From: Martin Guillon Date: Tue, 19 Jun 2018 10:44:01 +0200 Subject: [PATCH 6/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 54b3d35..113e165 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluetooth-hci-socket", - "version": "0.5.2", + "version": "0.5.1", "description": "Bluetooth HCI socket binding for Node.js", "main": "index.js", "scripts": {