Skip to content

Commit

Permalink
fix js import and readme typo
Browse files Browse the repository at this point in the history
  • Loading branch information
thib3113 committed Jan 12, 2025
1 parent ce0539a commit 2562028
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ npm install nut-client

const client = new NUTClient('127.0.0.1', 3493);

console.log(client.listUps());
console.log(client.listUPS());
console.log(client.listVariables('ups'));

//manual command
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"ups",
"power"
],
"typings": "./lib/index.d.ts",
"exports": {
".": {
"import": {
Expand All @@ -45,9 +46,6 @@
"default": "./lib/index.cjs"
},
"default": "./lib/index.cjs"
},
"./types": {
"types": "./index.d.ts"
}
},
"author": "Thibaut SEVERAC <thib3113@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/RawNUTClient.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createDebugger } from './utils.internal.js';
import net, { Socket } from 'node:net';
// @ts-ignore
import queue from 'async/queue';
import queue from 'async/queue.js';
import type { QueueObject } from './QueueObject.js';
import { checkError, parseLine, parseList } from './utils.js';
import tls from 'node:tls';
Expand Down
2 changes: 1 addition & 1 deletion src/pkg.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// THIS FILE IS GENERATED ON BUILD - DO NOT EDIT MANUALLY
export const pkg = { name: 'nut', version: '0.0.1' };
export const pkg = { name: 'nut-client', version: '0.0.8' };

0 comments on commit 2562028

Please sign in to comment.