Explicitly import node process

This commit is contained in:
Cohee
2024-10-11 10:43:29 +03:00
parent 7ca1b2e532
commit a0889a15fd
12 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
import process from 'node:process';
import express from 'express';
import fetch from 'node-fetch';

View File

@@ -1,6 +1,7 @@
import fs from 'node:fs';
import path from 'node:path';
import readline from 'node:readline';
import process from 'node:process';
import express from 'express';
import sanitize from 'sanitize-filename';

View File

@@ -1,5 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { Buffer } from 'node:buffer';
import express from 'express';

View File

@@ -1,5 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
import process from 'node:process';
import ipMatching from 'ip-matching';
import { getIpFromRequest } from '../express-common.js';

View File

@@ -1,3 +1,4 @@
import process from 'node:process';
import { createRequire } from 'node:module';
import { ProxyAgent } from 'proxy-agent';
import { isValidUrl, color } from './util.js';

View File

@@ -1,5 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
import process from 'node:process';
import { Buffer } from 'node:buffer';
import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers';

View File

@@ -3,6 +3,7 @@ import path from 'node:path';
import fs from 'node:fs';
import crypto from 'node:crypto';
import os from 'node:os';
import process from 'node:process';
import { Buffer } from 'node:buffer';
// Express and other dependencies

View File

@@ -1,6 +1,7 @@
import path from 'node:path';
import fs from 'node:fs';
import http2 from 'node:http2';
import process from 'node:process';
import { Readable } from 'node:stream';
import { createRequire } from 'node:module';
import { Buffer } from 'node:buffer';