feat: migrate to esm

This commit is contained in:
2023-05-31 14:04:03 +02:00
parent fd740b3091
commit 4df19e8c20
512 changed files with 3013 additions and 2219 deletions
+1 -1
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
+4 -4
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
+2 -2
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
+1 -1
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
@@ -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
@@ -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
@@ -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