BREAKING CHANGE(core): switch to esm
This commit is contained in:
@ -1 +1 @@
|
||||
export * from './smartnetwork.classes.smartnetwork';
|
||||
export * from './smartnetwork.classes.smartnetwork.js';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartnetwork.plugins';
|
||||
import * as stats from './helpers/stats';
|
||||
import * as plugins from './smartnetwork.plugins.js';
|
||||
import * as stats from './helpers/stats.js';
|
||||
|
||||
export class CloudflareSpeed {
|
||||
constructor() {}
|
||||
|
@ -1,6 +1,6 @@
|
||||
import * as plugins from './smartnetwork.plugins';
|
||||
import * as plugins from './smartnetwork.plugins.js';
|
||||
|
||||
import { CloudflareSpeed } from './smartnetwork.classes.cloudflarespeed';
|
||||
import { CloudflareSpeed } from './smartnetwork.classes.cloudflarespeed.js';
|
||||
|
||||
/**
|
||||
* SmartNetwork simplifies actions within the network
|
||||
|
@ -12,9 +12,12 @@ import * as smartstring from '@pushrocks/smartstring';
|
||||
export { smartpromise, smartstring };
|
||||
|
||||
// @third party scope
|
||||
const isopen = require('isopen');
|
||||
const icmp = require('icmp');
|
||||
import * as publicIp from 'public-ip';
|
||||
// @ts-ignore
|
||||
import isopen from 'isopen';
|
||||
// @ts-ignore
|
||||
import icmp from 'icmp';
|
||||
// @ts-ignore
|
||||
import publicIp from 'public-ip';
|
||||
import * as systeminformation from 'systeminformation';
|
||||
|
||||
export { isopen, icmp, publicIp, systeminformation };
|
||||
|
Reference in New Issue
Block a user