Update the API dependencies.

This commit is contained in:
Jayden Seric 2023-01-14 08:20:08 +11:00
parent a02165ae77
commit 719e53db57
5 changed files with 260 additions and 2570 deletions

2805
api/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,22 +20,22 @@
"npm": ">= 7"
},
"dependencies": {
"apollo-server-koa": "^3.10.2",
"dotenv": "^16.0.2",
"apollo-server-koa": "^3.11.1",
"dotenv": "^16.0.3",
"graphql": "^16.6.0",
"graphql-upload": "^16.0.2",
"koa": "^2.13.4",
"koa": "^2.14.1",
"make-dir": "^3.1.0",
"shortid": "^2.2.16"
},
"devDependencies": {
"@types/koa": "^2.13.5",
"@types/node": "^18.7.14",
"eslint": "^8.23.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"nodemon": "^2.0.19",
"prettier": "^2.7.1",
"typescript": "^4.8.2"
"@types/node": "^18.11.18",
"eslint": "^8.31.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"nodemon": "^2.0.20",
"prettier": "^2.8.2",
"typescript": "^4.9.4"
},
"scripts": {
"dev": "nodemon",

View File

@ -1,8 +1,9 @@
// @ts-check
import { GraphQLList, GraphQLNonNull, GraphQLObjectType } from "graphql";
import { readdir } from "node:fs/promises";
import { GraphQLList, GraphQLNonNull, GraphQLObjectType } from "graphql";
import UPLOAD_DIRECTORY_URL from "../config/UPLOAD_DIRECTORY_URL.mjs";
import FileType from "./FileType.mjs";

View File

@ -1,10 +1,11 @@
// @ts-check
import { fileURLToPath } from "node:url";
import { ApolloServer } from "apollo-server-koa";
import graphqlUploadKoa from "graphql-upload/graphqlUploadKoa.mjs";
import Koa from "koa";
import makeDir from "make-dir";
import { fileURLToPath } from "node:url";
import UPLOAD_DIRECTORY_URL from "./config/UPLOAD_DIRECTORY_URL.mjs";
import schema from "./schema/index.mjs";

View File

@ -1,6 +1,7 @@
// @ts-check
import { createWriteStream, unlink } from "node:fs";
import shortId from "shortid";
import UPLOAD_DIRECTORY_URL from "./config/UPLOAD_DIRECTORY_URL.mjs";