Skip to content

Commit a8b3bde

Browse files
authored
fix: node-uuid deprecation (#76)
1 parent 988b051 commit a8b3bde

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

ios-device-lib.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const uuid = require('node-uuid');
1+
const { v4: uuidv4 } = require('uuid');
22
const EventEmitter = require("events");
33

44
const Constants = require("./constants");
@@ -107,7 +107,7 @@ class IOSDeviceLib extends EventEmitter {
107107
let timer = null;
108108
let eventHandler = null;
109109
let deviceLostHandler = null;
110-
const id = uuid.v4();
110+
const id = uuidv4();
111111
const removeListeners = () => {
112112
if (eventHandler) {
113113
this._iosDeviceLibStdioHandler.removeListener(Constants.DataEventName, eventHandler);

package-lock.json

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"homepage": "https://github.com/telerik/ios-device-lib#readme",
2828
"dependencies": {
2929
"bufferpack": "0.0.6",
30-
"node-uuid": "1.4.7"
30+
"uuid": "8.3.2"
3131
},
3232
"devDependencies": {
3333
"chai": "4.2.0",

0 commit comments

Comments
 (0)