feat: migrate to esm

This commit is contained in:
2023-03-16 01:58:13 +01:00
parent fd740b3091
commit 4df19e8c20
512 changed files with 3016 additions and 2222 deletions

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Transport, VerifiableTransport} from './transport';
import {Transport, VerifiableTransport} from './transport.js';
/**
* A recursive partial object

View File

@@ -13,10 +13,10 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {stringify} from 'flatted';
import {isNodeEnvironment, isProductiveEnvironment, isProductiveNodeEnvironment} from './common';
import {Transformation} from './transformation';
import {AddLogLevel} from './transformations/add-log-level';
import {Transport} from './transport';
import {isNodeEnvironment, isProductiveEnvironment, isProductiveNodeEnvironment} from './common.js';
import {Transformation} from './transformation.js';
import {AddLogLevel} from './transformations/add-log-level.js';
import {Transport} from './transport.js';
/**
* Check if something has property STAPPS_LOG_LEVEL

View File

@@ -14,8 +14,8 @@
*/
import * as nodemailer from 'nodemailer';
import {MailOptions} from 'nodemailer/lib/sendmail-transport';
import {deleteUndefinedProperties, isProductiveEnvironment, RecursivePartial} from './common';
import {VerifiableTransport} from './transport';
import {deleteUndefinedProperties, isProductiveEnvironment, RecursivePartial} from './common.js';
import {VerifiableTransport} from './transport.js';
/**
* A configuration of the transport used to send mails via SMTP

View File

@@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {LogLevel} from './logger';
import {LogLevel} from './logger.js';
/**
* A transformer for log output

View File

@@ -12,8 +12,8 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {LogLevel} from '../logger';
import {Transformation} from '../transformation';
import {LogLevel} from '../logger.js';
import {Transformation} from '../transformation.js';
/**
* Transformation that adds the log level to output

View File

@@ -13,8 +13,8 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import chalk from 'chalk';
import {LogLevel} from '../logger';
import {Transformation} from '../transformation';
import {LogLevel} from '../logger.js';
import {Transformation} from '../transformation.js';
/**
* Transformation that colorizes log output

View File

@@ -12,8 +12,8 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {LogLevel} from '../logger';
import {Transformation} from '../transformation';
import {LogLevel} from '../logger.js';
import {Transformation} from '../transformation.js';
/**
* Transformation that adds a timestamp to output