Phase 1-2: Migrate to Deno with npm: and node: specifiers

- Created deno.json configuration
- Updated all imports to use npm:net-snmp@3.20.0
- Changed all Node.js built-in imports to node: specifiers
- Updated all .js extensions to .ts in imports
- Created mod.ts as Deno entry point
- Ready for Phase 3: CLI simplification
This commit is contained in:
2025-10-18 11:59:55 +00:00
parent 5f4f3ecbc3
commit a649c598ad
14 changed files with 121 additions and 43 deletions

View File

@@ -4,7 +4,7 @@
*/
// Re-export all public types
export type { IUpsStatus, IOidSet, TUpsModel, ISnmpConfig } from './types.js';
export type { IUpsStatus, IOidSet, TUpsModel, ISnmpConfig } from './types.ts';
// Re-export the SNMP manager class
export { NupstSnmp } from './manager.js';
export { NupstSnmp } from './manager.ts';

View File

@@ -1,6 +1,6 @@
import * as snmp from 'net-snmp';
import type { IOidSet, ISnmpConfig, TUpsModel, IUpsStatus } from './types.js';
import { UpsOidSets } from './oid-sets.js';
import * as snmp from "npm:net-snmp@3.20.0";
import type { IOidSet, ISnmpConfig, TUpsModel, IUpsStatus } from './types.ts';
import { UpsOidSets } from './oid-sets.ts';
/**
* Class for SNMP communication with UPS devices

View File

@@ -1,4 +1,4 @@
import type { IOidSet, TUpsModel } from './types.js';
import type { IOidSet, TUpsModel } from './types.ts';
/**
* OID sets for different UPS models