41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
// native scope
|
|
import * as path from 'path';
|
|
import * as net from 'net';
|
|
import * as dgram from 'dgram';
|
|
import * as events from 'events';
|
|
|
|
export { path, net, dgram, events };
|
|
|
|
// @push.rocks scope
|
|
import * as smartpath from '@push.rocks/smartpath';
|
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
import * as smartdelay from '@push.rocks/smartdelay';
|
|
import * as smartnetwork from '@push.rocks/smartnetwork';
|
|
|
|
// 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';
|
|
import nodeSsdpModule from 'node-ssdp';
|
|
import * as netSnmp from 'net-snmp';
|
|
import * as sonos from 'sonos';
|
|
import * as castv2Client from 'castv2-client';
|
|
|
|
// node-ssdp exports Client/Server under default in ESM
|
|
const nodeSsdp = {
|
|
Client: nodeSsdpModule.Client,
|
|
Server: nodeSsdpModule.Server,
|
|
};
|
|
|
|
export { bonjourService, ipp, nodeSsdp, netSnmp, sonos, castv2Client };
|