Explicitly import node process

a0889a15fd9f24fcea1ea989234412e1292e4cb1

Cohee <18619528+Cohee1207@users.noreply.github.com>

12 files changed, +12 -0Showing whitespace changes
plugins.js+1 -0
@@ -5,6 +5,7 @@
55// More operations coming soon.
66import fs from 'node:fs';
77import path from 'node:path';
8+import process from 'node:process';
89import { fileURLToPath } from 'node:url';
910
1011import { default as git } from 'simple-git';
post-install.js+1 -0
@@ -4,6 +4,7 @@
44import fs from 'node:fs';
55import path from 'node:path';
66import crypto from 'node:crypto';
7+import process from 'node:process';
78import yaml from 'yaml';
89import _ from 'lodash';
910import { createRequire } from 'node:module';
recover.js+1 -0
@@ -1,4 +1,5 @@
11import fs from 'node:fs';
2+import process from 'node:process';
23import yaml from 'yaml';
34import storage from 'node-persist';
45import {
server.js+1 -0
@@ -8,6 +8,7 @@ import path from 'node:path';
88import util from 'node:util';
99import net from 'node:net';
1010import dns from 'node:dns';
11+import process from 'node:process';
1112import { fileURLToPath } from 'node:url';
1213
1314// cli/fs related library imports
src/endpoints/backends/chat-completions.js+1 -0
@@ -1,3 +1,4 @@
1+import process from 'node:process';
12import express from 'express';
23import fetch from 'node-fetch';
34
src/endpoints/chats.js+1 -0
@@ -1,6 +1,7 @@
11import fs from 'node:fs';
22import path from 'node:path';
33import readline from 'node:readline';
4+import process from 'node:process';
45
56import express from 'express';
67import sanitize from 'sanitize-filename';
src/endpoints/content-manager.js+1 -0
@@ -1,5 +1,6 @@
11import fs from 'node:fs';
22import path from 'node:path';
3+import process from 'node:process';
34import { Buffer } from 'node:buffer';
45
56import express from 'express';
src/middleware/whitelist.js+1 -0
@@ -1,5 +1,6 @@
11import path from 'node:path';
22import fs from 'node:fs';
3+import process from 'node:process';
34import ipMatching from 'ip-matching';
45
56import { getIpFromRequest } from '../express-common.js';
src/request-proxy.js+1 -0
@@ -1,3 +1,4 @@
1+import process from 'node:process';
12import { createRequire } from 'node:module';
23import { ProxyAgent } from 'proxy-agent';
34import { isValidUrl, color } from './util.js';
src/transformers.mjs+1 -0
@@ -1,5 +1,6 @@
11import path from 'node:path';
22import fs from 'node:fs';
3+import process from 'node:process';
34import { Buffer } from 'node:buffer';
45
56import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers';
src/users.js+1 -0
@@ -3,6 +3,7 @@ import path from 'node:path';
33import fs from 'node:fs';
44import crypto from 'node:crypto';
55import os from 'node:os';
6+import process from 'node:process';
67import { Buffer } from 'node:buffer';
78
89// Express and other dependencies
src/util.js+1 -0
@@ -1,6 +1,7 @@
11import path from 'node:path';
22import fs from 'node:fs';
33import http2 from 'node:http2';
4+import process from 'node:process';
45import { Readable } from 'node:stream';
56import { createRequire } from 'node:module';
67import { Buffer } from 'node:buffer';