27 lines
778 B
TypeScript
27 lines
778 B
TypeScript
import * as smartenv from '@push.rocks/smartenv';
|
|
const smartenvInstance = new smartenv.Smartenv();
|
|
// node native scope
|
|
import type dnsType from 'dns';
|
|
const dns: typeof dnsType = await smartenvInstance.getSafeNodeModule('dns');
|
|
|
|
export { dns };
|
|
|
|
// node native scope
|
|
import * as path from 'path';
|
|
import { EventEmitter } from 'events';
|
|
|
|
export { path };
|
|
export const events = { EventEmitter };
|
|
|
|
// pushrocks scope
|
|
import * as smartdelay from '@push.rocks/smartdelay';
|
|
import * as smartpromise from '@push.rocks/smartpromise';
|
|
import * as smartrequest from '@push.rocks/smartrequest';
|
|
import * as smartrust from '@push.rocks/smartrust';
|
|
|
|
export { smartdelay, smartenv, smartpromise, smartrequest, smartrust };
|
|
|
|
import * as tsclass from '@tsclass/tsclass';
|
|
|
|
export { tsclass };
|