From 2562028977ed96a8e92b80a63b744fcf430cb5f2 Mon Sep 17 00:00:00 2001 From: thibaut severac Date: Sun, 12 Jan 2025 13:13:51 +0100 Subject: [PATCH] fix js import and readme typo --- README.md | 2 +- package.json | 4 +--- src/RawNUTClient.ts | 2 +- src/pkg.ts | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00be2d4..b159cc0 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package.json b/package.json index 8498d04..c66730a 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "ups", "power" ], + "typings": "./lib/index.d.ts", "exports": { ".": { "import": { @@ -45,9 +46,6 @@ "default": "./lib/index.cjs" }, "default": "./lib/index.cjs" - }, - "./types": { - "types": "./index.d.ts" } }, "author": "Thibaut SEVERAC ", diff --git a/src/RawNUTClient.ts b/src/RawNUTClient.ts index 665d635..3b83e58 100644 --- a/src/RawNUTClient.ts +++ b/src/RawNUTClient.ts @@ -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'; diff --git a/src/pkg.ts b/src/pkg.ts index e3b8a7a..64b2972 100644 --- a/src/pkg.ts +++ b/src/pkg.ts @@ -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' };