platformservice/ts/plugins.ts

89 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-02-16 13:28:40 +01:00
// node native
2024-02-16 13:41:04 +01:00
import * as dns from 'dns';
import * as fs from 'fs';
import * as crypto from 'crypto';
2025-03-15 13:52:48 +00:00
import * as http from 'http';
2024-02-16 13:41:04 +01:00
import * as net from 'net';
2024-02-16 13:28:40 +01:00
import * as path from 'path';
2024-02-16 13:41:04 +01:00
import * as tls from 'tls';
import * as util from 'util';
2024-02-16 13:28:40 +01:00
export {
2024-02-16 13:41:04 +01:00
dns,
fs,
crypto,
2025-03-15 13:52:48 +00:00
http,
2024-02-16 13:41:04 +01:00
net,
path,
tls,
util,
2024-02-16 13:28:40 +01:00
}
// @serve.zone scope
import * as servezoneInterfaces from '@serve.zone/interfaces';
export {
servezoneInterfaces
}
// @api.global scope
import * as typedrequest from '@api.global/typedrequest';
import * as typedserver from '@api.global/typedserver';
2024-02-16 13:41:04 +01:00
import * as typedsocket from '@api.global/typedsocket';
2024-02-16 13:28:40 +01:00
export {
typedrequest,
typedserver,
2024-02-16 13:41:04 +01:00
typedsocket,
2024-02-16 13:28:40 +01:00
}
// @push.rocks scope
import * as projectinfo from '@push.rocks/projectinfo';
import * as qenv from '@push.rocks/qenv';
2025-05-07 14:33:20 +00:00
import * as smartacme from '@push.rocks/smartacme';
2024-02-16 13:28:40 +01:00
import * as smartdata from '@push.rocks/smartdata';
import * as smartdns from '@push.rocks/smartdns';
2024-02-16 13:28:40 +01:00
import * as smartfile from '@push.rocks/smartfile';
import * as smartlog from '@push.rocks/smartlog';
import * as smartmail from '@push.rocks/smartmail';
import * as smartpath from '@push.rocks/smartpath';
import * as smartproxy from '@push.rocks/smartproxy';
2024-02-16 13:41:04 +01:00
import * as smartpromise from '@push.rocks/smartpromise';
2024-02-16 13:28:40 +01:00
import * as smartrequest from '@push.rocks/smartrequest';
import * as smartrule from '@push.rocks/smartrule';
2024-02-16 13:41:04 +01:00
import * as smartrx from '@push.rocks/smartrx';
2024-02-16 13:28:40 +01:00
2025-05-07 14:33:20 +00:00
export { projectinfo, qenv, smartacme, smartdata, smartdns, smartfile, smartlog, smartmail, smartpath, smartproxy, smartpromise, smartrequest, smartrule, smartrx };
2024-02-16 13:41:04 +01:00
2025-05-08 12:46:10 +00:00
// Define SmartLog types for use in error handling
export type TLogLevel = 'error' | 'warn' | 'info' | 'success' | 'debug';
2024-02-16 20:42:26 +01:00
// apiclient.xyz scope
2025-05-07 14:33:20 +00:00
import * as cloudflare from '@apiclient.xyz/cloudflare';
2024-02-16 20:42:26 +01:00
export {
2025-05-07 14:33:20 +00:00
cloudflare,
2024-02-16 20:42:26 +01:00
}
2024-02-16 13:41:04 +01:00
// tsclass scope
import * as tsclass from '@tsclass/tsclass';
export {
tsclass,
}
// third party
import * as mailauth from 'mailauth';
import { dkimSign } from 'mailauth/lib/dkim/sign.js';
import mailparser from 'mailparser';
import * as uuid from 'uuid';
2025-05-07 20:20:17 +00:00
import * as ip from 'ip';
2024-02-16 13:41:04 +01:00
export {
mailauth,
dkimSign,
mailparser,
uuid,
2025-05-07 20:20:17 +00:00
ip,
2024-02-16 13:41:04 +01:00
}