2026-01-09 06:00:42 +00:00
|
|
|
// native scope
|
|
|
|
|
import * as path from 'path';
|
2026-01-09 07:14:39 +00:00
|
|
|
import * as net from 'net';
|
|
|
|
|
import * as dgram from 'dgram';
|
|
|
|
|
import * as events from 'events';
|
2026-01-09 06:00:42 +00:00
|
|
|
|
2026-01-09 07:14:39 +00:00
|
|
|
export { path, net, dgram, events };
|
2026-01-09 06:00:42 +00:00
|
|
|
|
|
|
|
|
// @push.rocks scope
|
|
|
|
|
import * as smartpath from '@push.rocks/smartpath';
|
2026-01-09 07:14:39 +00:00
|
|
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
|
|
|
import * as smartdelay from '@push.rocks/smartdelay';
|
|
|
|
|
import * as smartnetwork from '@push.rocks/smartnetwork';
|
2026-01-09 06:00:42 +00:00
|
|
|
|
2026-01-09 07:14:39 +00:00
|
|
|
// Re-export SmartRequest for HTTP
|
|
|
|
|
import { SmartRequest } from '@push.rocks/smartrequest';
|
|
|
|
|
export { SmartRequest };
|
|
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
smartpath,
|
|
|
|
|
smartpromise,
|
|
|
|
|
smartdelay,
|
|
|
|
|
smartnetwork,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// third party
|
|
|
|
|
import * as bonjourService from 'bonjour-service';
|
|
|
|
|
import ipp from 'ipp';
|
2026-01-09 09:03:42 +00:00
|
|
|
import nodeSsdpModule from 'node-ssdp';
|
2026-01-09 07:14:39 +00:00
|
|
|
import * as netSnmp from 'net-snmp';
|
|
|
|
|
import * as sonos from 'sonos';
|
|
|
|
|
import * as castv2Client from 'castv2-client';
|
2026-01-09 16:20:54 +00:00
|
|
|
import WebSocket from 'ws';
|
2026-01-09 07:14:39 +00:00
|
|
|
|
2026-01-09 09:03:42 +00:00
|
|
|
// node-ssdp exports Client/Server under default in ESM
|
|
|
|
|
const nodeSsdp = {
|
|
|
|
|
Client: nodeSsdpModule.Client,
|
|
|
|
|
Server: nodeSsdpModule.Server,
|
|
|
|
|
};
|
|
|
|
|
|
2026-01-09 16:20:54 +00:00
|
|
|
export { bonjourService, ipp, nodeSsdp, netSnmp, sonos, castv2Client, WebSocket };
|