fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartdns',
|
||||
version: '4.0.11',
|
||||
description: 'smart dns methods written in TypeScript'
|
||||
}
|
@ -2,7 +2,7 @@ import * as smartenv from '@pushrocks/smartenv';
|
||||
const smartenvInstance = new smartenv.Smartenv();
|
||||
// node native scope
|
||||
import type dnsType from 'dns';
|
||||
const dns: typeof dnsType = smartenvInstance.getSafeNodeModule('dns');
|
||||
const dns: typeof dnsType = await smartenvInstance.getSafeNodeModule('dns');
|
||||
|
||||
export { dns };
|
||||
|
||||
@ -18,7 +18,5 @@ import * as tsclass from '@tsclass/tsclass';
|
||||
export { tsclass };
|
||||
|
||||
// third party scope
|
||||
|
||||
const dns2 = smartenvInstance.getSafeNodeModule('dns2');
|
||||
|
||||
export { dns2 };
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './dnsly.plugins';
|
||||
import * as plugins from './dnsly.plugins.js';
|
||||
|
||||
export type TDnsProvider = 'google' | 'cloudflare';
|
||||
|
||||
|
Reference in New Issue
Block a user