Skip to content

Commit

Permalink
update bonjour, close #938
Browse files Browse the repository at this point in the history
  • Loading branch information
manuc66 committed Nov 18, 2024
1 parent ad3702b commit 6bad6ce
Show file tree
Hide file tree
Showing 3 changed files with 754 additions and 936 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"license": "MIT",
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@types/bonjour": "^3.5.10",
"@types/chai": "^4.3.3",
"@types/chai-string": "^1.4.2",
"@types/config": "^3.3.0",
Expand All @@ -73,8 +72,8 @@
"yarn": "^1.22.19"
},
"dependencies": {
"axios": "^1.1.3",
"bonjour": "^3.5.0",
"axios": "^1.7.4",
"bonjour-service": "^1.3.0",
"commander": "^12.0.0",
"config": "^3.3.8",
"dateformat": "^4.6.3",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import os from "os";
import { Command, Option, OptionValues, program } from "commander";
import Bonjour from "bonjour";
import { Bonjour } from 'bonjour-service'
import config from "config";
import HPApi from "./HPApi";
import PathHelper from "./PathHelper";
Expand Down Expand Up @@ -174,7 +174,7 @@ async function clearRegistrationsCmd(cmd: Command) {

function findOfficejetIp(deviceNamePrefix: string): Promise<string> {
return new Promise((resolve) => {
const bonjour = Bonjour();
const bonjour = new Bonjour()
console.log("Searching device...");
const browser = bonjour.find(
{
Expand Down
Loading

0 comments on commit 6bad6ce

Please sign in to comment.