Skip to content

Commit

Permalink
Explicitly import node process
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Oct 11, 2024
1 parent 7ca1b2e commit a0889a1
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// More operations coming soon.
import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';

import { default as git } from 'simple-git';
Expand Down
1 change: 1 addition & 0 deletions post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import fs from 'node:fs';
import path from 'node:path';
import crypto from 'node:crypto';
import process from 'node:process';
import yaml from 'yaml';
import _ from 'lodash';
import { createRequire } from 'node:module';
Expand Down
1 change: 1 addition & 0 deletions recover.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs';
import process from 'node:process';
import yaml from 'yaml';
import storage from 'node-persist';
import {
Expand Down
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import path from 'node:path';
import util from 'node:util';
import net from 'node:net';
import dns from 'node:dns';
import process from 'node:process';
import { fileURLToPath } from 'node:url';

// cli/fs related library imports
Expand Down
1 change: 1 addition & 0 deletions src/endpoints/backends/chat-completions.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import express from 'express';
import fetch from 'node-fetch';

Expand Down
1 change: 1 addition & 0 deletions src/endpoints/chats.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from 'node:fs';
import path from 'node:path';
import readline from 'node:readline';
import process from 'node:process';

import express from 'express';
import sanitize from 'sanitize-filename';
Expand Down
1 change: 1 addition & 0 deletions src/endpoints/content-manager.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { Buffer } from 'node:buffer';

import express from 'express';
Expand Down
1 change: 1 addition & 0 deletions src/middleware/whitelist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
import process from 'node:process';
import ipMatching from 'ip-matching';

import { getIpFromRequest } from '../express-common.js';
Expand Down
1 change: 1 addition & 0 deletions src/request-proxy.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import process from 'node:process';
import { createRequire } from 'node:module';
import { ProxyAgent } from 'proxy-agent';
import { isValidUrl, color } from './util.js';
Expand Down
1 change: 1 addition & 0 deletions src/transformers.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import path from 'node:path';
import fs from 'node:fs';
import process from 'node:process';
import { Buffer } from 'node:buffer';

import { pipeline, env, RawImage, Pipeline } from 'sillytavern-transformers';
Expand Down
1 change: 1 addition & 0 deletions src/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import path from 'node:path';
import fs from 'node:fs';
import crypto from 'node:crypto';
import os from 'node:os';
import process from 'node:process';
import { Buffer } from 'node:buffer';

// Express and other dependencies
Expand Down
1 change: 1 addition & 0 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import path from 'node:path';
import fs from 'node:fs';
import http2 from 'node:http2';
import process from 'node:process';
import { Readable } from 'node:stream';
import { createRequire } from 'node:module';
import { Buffer } from 'node:buffer';
Expand Down

0 comments on commit a0889a1

Please sign in to comment.