Explicitly import node process
| @@ -5,6 +5,7 @@ | ||
| 5 | 5 | // More operations coming soon. |
| 6 | 6 | import fs from 'node:fs'; |
| 7 | 7 | import path from 'node:path'; |
| 8 | +import process from 'node:process'; | |
| 8 | 9 | import { fileURLToPath } from 'node:url'; |
| 9 | 10 | |
| 10 | 11 | import { default as git } from 'simple-git'; |
| @@ -4,6 +4,7 @@ | ||
| 4 | 4 | import fs from 'node:fs'; |
| 5 | 5 | import path from 'node:path'; |
| 6 | 6 | import crypto from 'node:crypto'; |
| 7 | +import process from 'node:process'; | |
| 7 | 8 | import yaml from 'yaml'; |
| 8 | 9 | import _ from 'lodash'; |
| 9 | 10 | import { createRequire } from 'node:module'; |
| @@ -1,4 +1,5 @@ | ||
| 1 | 1 | import fs from 'node:fs'; |
| 2 | +import process from 'node:process'; | |
| 2 | 3 | import yaml from 'yaml'; |
| 3 | 4 | import storage from 'node-persist'; |
| 4 | 5 | import { |
| @@ -8,6 +8,7 @@ import path from 'node:path'; | ||
| 8 | 8 | import util from 'node:util'; |
| 9 | 9 | import net from 'node:net'; |
| 10 | 10 | import dns from 'node:dns'; |
| 11 | +import process from 'node:process'; | |
| 11 | 12 | import { fileURLToPath } from 'node:url'; |
| 12 | 13 | |
| 13 | 14 | // cli/fs related library imports |
| @@ -1,3 +1,4 @@ | ||
| 1 | +import process from 'node:process'; | |
| 1 | 2 | import express from 'express'; |
| 2 | 3 | import fetch from 'node-fetch'; |
| 3 | 4 | |
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | import fs from 'node:fs'; |
| 2 | 2 | import path from 'node:path'; |
| 3 | 3 | import readline from 'node:readline'; |
| 4 | +import process from 'node:process'; | |
| 4 | 5 | |
| 5 | 6 | import express from 'express'; |
| 6 | 7 | import sanitize from 'sanitize-filename'; |
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import fs from 'node:fs'; |
| 2 | 2 | import path from 'node:path'; |
| 3 | +import process from 'node:process'; | |
| 3 | 4 | import { Buffer } from 'node:buffer'; |
| 4 | 5 | |
| 5 | 6 | import express from 'express'; |
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import path from 'node:path'; |
| 2 | 2 | import fs from 'node:fs'; |
| 3 | +import process from 'node:process'; | |
| 3 | 4 | import ipMatching from 'ip-matching'; |
| 4 | 5 | |
| 5 | 6 | import { getIpFromRequest } from '../express-common.js'; |
| @@ -1,3 +1,4 @@ | ||
| 1 | +import process from 'node:process'; | |
| 1 | 2 | import { createRequire } from 'node:module'; |
| 2 | 3 | import { ProxyAgent } from 'proxy-agent'; |
| 3 | 4 | import { isValidUrl, color } from './util.js'; |
| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | import path from 'node:path'; |
| 2 | 2 | import fs from 'node:fs'; |
| 3 | +import process from 'node:process'; | |
| 3 | 4 | import { Buffer } from 'node:buffer'; |
| 4 | 5 | |
| 5 | 6 | import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers'; |
| @@ -3,6 +3,7 @@ import path from 'node:path'; | ||
| 3 | 3 | import fs from 'node:fs'; |
| 4 | 4 | import crypto from 'node:crypto'; |
| 5 | 5 | import os from 'node:os'; |
| 6 | +import process from 'node:process'; | |
| 6 | 7 | import { Buffer } from 'node:buffer'; |
| 7 | 8 | |
| 8 | 9 | // Express and other dependencies |
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | import path from 'node:path'; |
| 2 | 2 | import fs from 'node:fs'; |
| 3 | 3 | import http2 from 'node:http2'; |
| 4 | +import process from 'node:process'; | |
| 4 | 5 | import { Readable } from 'node:stream'; |
| 5 | 6 | import { createRequire } from 'node:module'; |
| 6 | 7 | import { Buffer } from 'node:buffer'; |