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

@ -5,6 +5,7 @@
// More operations coming soon. // More operations coming soon.
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
import { default as git } from 'simple-git'; import { default as git } from 'simple-git';

View File

@ -4,6 +4,7 @@
import fs from 'node:fs'; import fs from 'node:fs';
import path from 'node:path'; import path from 'node:path';
import crypto from 'node:crypto'; import crypto from 'node:crypto';
import process from 'node:process';
import yaml from 'yaml'; import yaml from 'yaml';
import _ from 'lodash'; import _ from 'lodash';
import { createRequire } from 'node:module'; import { createRequire } from 'node:module';

View File

@ -1,4 +1,5 @@
import fs from 'node:fs'; import fs from 'node:fs';
import process from 'node:process';
import yaml from 'yaml'; import yaml from 'yaml';
import storage from 'node-persist'; import storage from 'node-persist';
import { import {

View File

@ -8,6 +8,7 @@ import path from 'node:path';
import util from 'node:util'; import util from 'node:util';
import net from 'node:net'; import net from 'node:net';
import dns from 'node:dns'; import dns from 'node:dns';
import process from 'node:process';
import { fileURLToPath } from 'node:url'; import { fileURLToPath } from 'node:url';
// cli/fs related library imports // cli/fs related library imports

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,5 +1,6 @@
import path from 'node:path'; import path from 'node:path';
import fs from 'node:fs'; import fs from 'node:fs';
import process from 'node:process';
import { Buffer } from 'node:buffer'; import { Buffer } from 'node:buffer';
import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers'; 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 fs from 'node:fs';
import crypto from 'node:crypto'; import crypto from 'node:crypto';
import os from 'node:os'; import os from 'node:os';
import process from 'node:process';
import { Buffer } from 'node:buffer'; import { Buffer } from 'node:buffer';
// Express and other dependencies // Express and other dependencies

View File

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