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 @@
5// More operations coming soon.5// More operations coming soon.
6import fs from 'node:fs';6import fs from 'node:fs';
7import path from 'node:path';7import path from 'node:path';
8import process from 'node:process';
8import { fileURLToPath } from 'node:url';9import { fileURLToPath } from 'node:url';
910
10import { default as git } from 'simple-git';11import { default as git } from 'simple-git';
post-install.js+1 -0
@@ -4,6 +4,7 @@
4import fs from 'node:fs';4import fs from 'node:fs';
5import path from 'node:path';5import path from 'node:path';
6import crypto from 'node:crypto';6import crypto from 'node:crypto';
7import process from 'node:process';
7import yaml from 'yaml';8import yaml from 'yaml';
8import _ from 'lodash';9import _ from 'lodash';
9import { createRequire } from 'node:module';10import { createRequire } from 'node:module';
recover.js+1 -0
@@ -1,4 +1,5 @@
1import fs from 'node:fs';1import fs from 'node:fs';
2import process from 'node:process';
2import yaml from 'yaml';3import yaml from 'yaml';
3import storage from 'node-persist';4import storage from 'node-persist';
4import {5import {
server.js+1 -0
@@ -8,6 +8,7 @@ import path from 'node:path';
8import util from 'node:util';8import util from 'node:util';
9import net from 'node:net';9import net from 'node:net';
10import dns from 'node:dns';10import dns from 'node:dns';
11import process from 'node:process';
11import { fileURLToPath } from 'node:url';12import { fileURLToPath } from 'node:url';
1213
13// cli/fs related library imports14// cli/fs related library imports
src/endpoints/backends/chat-completions.js+1 -0
@@ -1,3 +1,4 @@
1import process from 'node:process';
1import express from 'express';2import express from 'express';
2import fetch from 'node-fetch';3import fetch from 'node-fetch';
34
src/endpoints/chats.js+1 -0
@@ -1,6 +1,7 @@
1import fs from 'node:fs';1import fs from 'node:fs';
2import path from 'node:path';2import path from 'node:path';
3import readline from 'node:readline';3import readline from 'node:readline';
4import process from 'node:process';
45
5import express from 'express';6import express from 'express';
6import sanitize from 'sanitize-filename';7import sanitize from 'sanitize-filename';
src/endpoints/content-manager.js+1 -0
@@ -1,5 +1,6 @@
1import fs from 'node:fs';1import fs from 'node:fs';
2import path from 'node:path';2import path from 'node:path';
3import process from 'node:process';
3import { Buffer } from 'node:buffer';4import { Buffer } from 'node:buffer';
45
5import express from 'express';6import express from 'express';
src/middleware/whitelist.js+1 -0
@@ -1,5 +1,6 @@
1import path from 'node:path';1import path from 'node:path';
2import fs from 'node:fs';2import fs from 'node:fs';
3import process from 'node:process';
3import ipMatching from 'ip-matching';4import ipMatching from 'ip-matching';
45
5import { getIpFromRequest } from '../express-common.js';6import { getIpFromRequest } from '../express-common.js';
src/request-proxy.js+1 -0
@@ -1,3 +1,4 @@
1import process from 'node:process';
1import { createRequire } from 'node:module';2import { createRequire } from 'node:module';
2import { ProxyAgent } from 'proxy-agent';3import { ProxyAgent } from 'proxy-agent';
3import { isValidUrl, color } from './util.js';4import { isValidUrl, color } from './util.js';
src/transformers.mjs+1 -0
@@ -1,5 +1,6 @@
1import path from 'node:path';1import path from 'node:path';
2import fs from 'node:fs';2import fs from 'node:fs';
3import process from 'node:process';
3import { Buffer } from 'node:buffer';4import { Buffer } from 'node:buffer';
45
5import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers';6import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers';
src/users.js+1 -0
@@ -3,6 +3,7 @@ import path from 'node:path';
3import fs from 'node:fs';3import fs from 'node:fs';
4import crypto from 'node:crypto';4import crypto from 'node:crypto';
5import os from 'node:os';5import os from 'node:os';
6import process from 'node:process';
6import { Buffer } from 'node:buffer';7import { Buffer } from 'node:buffer';
78
8// Express and other dependencies9// Express and other dependencies
src/util.js+1 -0
@@ -1,6 +1,7 @@
1import path from 'node:path';1import path from 'node:path';
2import fs from 'node:fs';2import fs from 'node:fs';
3import http2 from 'node:http2';3import http2 from 'node:http2';
4import process from 'node:process';
4import { Readable } from 'node:stream';5import { Readable } from 'node:stream';
5import { createRequire } from 'node:module';6import { createRequire } from 'node:module';
6import { Buffer } from 'node:buffer';7import { Buffer } from 'node:buffer';