mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 00:52:55 +00:00
feat: migrate to esm
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user