1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

🐛 fix cdn

This commit is contained in:
Flam3rboy 2021-10-09 11:21:06 +02:00
parent d9e37e5e19
commit 4cd6207e5f
5 changed files with 5 additions and 6 deletions

View File

@ -37,7 +37,6 @@ function transpileFiles() {
const files = walk(path.join(__dirname, "..", "..", part, "dist"));
for (const file of files) {
let content = fs.readFileSync(file, { encoding: "utf8" });
console.log(file);
content = content
.replace(
new RegExp(`@fosscord/${part}`),

View File

@ -1,9 +1,9 @@
import { Router, Response, Request } from "express";
import { Config, Snowflake } from "@fosscord/util";
import { storage } from "@fosscord/cdn";
import { storage } from "../util/Storage";
import FileType from "file-type";
import { HTTPError } from "lambert-server";
import { multer } from "@fosscord/cdn";
import { multer } from "../util/multer";
import imageSize from "image-size";
const router = Router();

View File

@ -1,6 +1,6 @@
import { Router, Response, Request } from "express";
import { Config, Snowflake } from "@fosscord/util";
import { storage } from "@fosscord/cdn";
import { storage } from "../util/Storage";
import FileType from "file-type";
import { HTTPError } from "lambert-server";
import crypto from "crypto";

View File

@ -2,7 +2,7 @@ import { Router, Response, Request } from "express";
import fetch from "node-fetch";
import { HTTPError } from "lambert-server";
import { Snowflake } from "@fosscord/util";
import { storage } from "@fosscord/cdn";
import { storage } from "../util/Storage";
import FileType from "file-type";
import { Config } from "@fosscord/util";

View File

@ -5,7 +5,7 @@ try {
erlpack = require("@yukikaze-bot/erlpack");
} catch (error) {}
import OPCodeHandlers from "../opcodes";
import { instanceOf, Tuple } from "lambert-server";
import { Tuple } from "lambert-server";
import { check } from "../opcodes/instanceOf";
import WS from "ws";