ssb-mobile-bluetooth-manager
Advanced tools
Comparing version 2.0.10 to 2.0.11
10
index.js
@@ -7,4 +7,6 @@ const net = require('net'); | ||
const Pushable = require('pull-pushable'); | ||
const pullJson = require('pull-json-doubleline') | ||
const pullJson = require('pull-json-doubleline'); | ||
const uuidv4 = require('uuid/v4'); | ||
function makeManager (opts) { | ||
@@ -333,5 +335,5 @@ | ||
function getMetadataForDevice(deviceMacAddress, cb) { | ||
var requestId = Math.floor(Math.random() * 10); | ||
var requestId = uuidv4(); | ||
awaitingMetadata[requestId.toString()] = cb; | ||
awaitingMetadata[requestId] = cb; | ||
@@ -341,3 +343,3 @@ controlSocketSource.push({ | ||
"arguments": { | ||
"requestId": requestId.toString(), | ||
"requestId": requestId, | ||
"remoteDevice": deviceMacAddress, | ||
@@ -344,0 +346,0 @@ "service": metadataServiceUUID |
{ | ||
"name": "ssb-mobile-bluetooth-manager", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"description": "A module for managing bluetooth connections over a react native bridge.", | ||
@@ -18,3 +18,4 @@ "main": "index.js", | ||
"pull-stream": "^3.6.9", | ||
"stream-to-pull-stream": "^1.7.2" | ||
"stream-to-pull-stream": "^1.7.2", | ||
"uuid": "^3.3.2" | ||
}, | ||
@@ -21,0 +22,0 @@ "react-native": { |
12041
295
4
+ Addeduuid@^3.3.2
+ Addeduuid@3.4.0(transitive)