smartdns/ts/dnsly.plugins.ts

23 lines
658 B
TypeScript
Raw Normal View History

2021-01-22 23:24:02 +00:00
import * as smartenv from '@pushrocks/smartenv';
const smartenvInstance = new smartenv.Smartenv();
// node native scope
2021-01-22 23:24:02 +00:00
import type dnsType from 'dns';
2022-07-27 06:59:29 +00:00
const dns: typeof dnsType = await smartenvInstance.getSafeNodeModule('dns');
export { dns };
// pushrocks scope
2019-01-06 23:21:15 +00:00
import * as smartdelay from '@pushrocks/smartdelay';
import * as smartpromise from '@pushrocks/smartpromise';
import * as smartrequest from '@pushrocks/smartrequest';
2021-01-22 23:24:02 +00:00
export { smartdelay, smartenv, smartpromise, smartrequest };
import * as tsclass from '@tsclass/tsclass';
2016-11-15 20:39:21 +00:00
export { tsclass };
2021-01-22 23:24:02 +00:00
// third party scope
const dns2 = smartenvInstance.getSafeNodeModule('dns2');
2021-08-24 09:40:44 +00:00
export { dns2 };