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