mirror of
https://github.com/usatiuk/writer.git
synced 2025-10-28 16:07:49 +01:00
update most of packages
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
"workspaceFolder": "/workspace",
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
"settings": {
|
||||
"terminal.integrated.shell.linux": "/bin/bash",
|
||||
"sqltools.connections": [
|
||||
{
|
||||
"name": "MySQL",
|
||||
@@ -48,7 +47,7 @@
|
||||
3000
|
||||
],
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postCreateCommand": "npm config set unsafe-perm=true && npm i && cd frontend && npm i",
|
||||
// "postCreateCommand": "npm config set unsafe-perm=true && npm i && cd frontend && npm i",
|
||||
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
|
||||
"remoteUser": "node"
|
||||
}
|
||||
@@ -15,4 +15,5 @@ module.exports = {
|
||||
"react-spring": "<rootDir>/node_modules/react-spring/web.cjs",
|
||||
},
|
||||
setupFilesAfterEnv: ["<rootDir>/src/setupTests.ts"],
|
||||
testEnvironment: "jsdom",
|
||||
};
|
||||
|
||||
3375
frontend/package-lock.json
generated
3375
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -9,46 +9,46 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/autoprefixer": "^9.7.2",
|
||||
"@types/enzyme": "^3.10.8",
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/enzyme": "^3.10.9",
|
||||
"@types/highlight.js": "^9.12.4",
|
||||
"@types/jest": "^26.0.20",
|
||||
"@types/parcel-bundler": "^1.12.3",
|
||||
"@types/react": "^16",
|
||||
"@types/react-dom": "^16",
|
||||
"@types/react-redux": "^7.1.16",
|
||||
"@types/react-router": "^5.1.12",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"@types/sass": "^1.16.0"
|
||||
"@types/jest": "^26.0.24",
|
||||
"@types/parcel-bundler": "^1.12.4",
|
||||
"@types/react": "^17",
|
||||
"@types/react-dom": "^17",
|
||||
"@types/react-redux": "^7.1.18",
|
||||
"@types/react-router": "^5.1.16",
|
||||
"@types/react-router-dom": "^5.1.8",
|
||||
"@types/sass": "^1.16.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@blueprintjs/core": "^3.41.0",
|
||||
"@blueprintjs/icons": "^3.25.1",
|
||||
"autoprefixer": "^9",
|
||||
"@blueprintjs/core": "^3.47.0",
|
||||
"@blueprintjs/icons": "^3.27.0",
|
||||
"@wojtekmaj/enzyme-adapter-react-17": "^0",
|
||||
"autoprefixer": "^10",
|
||||
"enzyme": "^3.11.0",
|
||||
"enzyme-adapter-react-16": "^1.15.6",
|
||||
"eslint-plugin-html": "^6.1.2",
|
||||
"eslint-plugin-jest": "^24.2.1",
|
||||
"eslint-plugin-jest": "^24.4.0",
|
||||
"eslint-plugin-jsx-a11y": "^6.4.1",
|
||||
"eslint-plugin-react": "^7.22.0",
|
||||
"eslint-plugin-react": "^7.24.0",
|
||||
"eslint-plugin-react-hooks": "^4.2.0",
|
||||
"flush-promises": "^1.0.2",
|
||||
"highlight.js": "^10.6.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest": "^27.0.6",
|
||||
"parcel-bundler": "^1.12.4",
|
||||
"postcss-modules": "^4.0.0",
|
||||
"react": "^16",
|
||||
"react-dom": "^16",
|
||||
"postcss-modules": "^4.2.2",
|
||||
"react": "^17",
|
||||
"react-dom": "^17",
|
||||
"react-markdown": "^5.0.3",
|
||||
"react-redux": "^7.2.2",
|
||||
"react-redux": "^7.2.4",
|
||||
"react-router": "^5.2.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
"react-spring": "^8.0.27",
|
||||
"redux": "^4.0.5",
|
||||
"redux": "^4.1.0",
|
||||
"redux-devtools-extension": "^2.13.9",
|
||||
"redux-persist": "^6.0.0",
|
||||
"redux-saga": "^1.1.3",
|
||||
"sass": "^1.32.8",
|
||||
"ts-jest": "^26.5.3"
|
||||
"sass": "^1.37.0",
|
||||
"ts-jest": "^27.0.4"
|
||||
},
|
||||
"postcss": {
|
||||
"plugins": {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { mount } from "enzyme";
|
||||
import * as React from "react";
|
||||
|
||||
import * as flushPromises from "flush-promises";
|
||||
import ReactMarkdown = require("react-markdown");
|
||||
import { Redirect } from "react-router";
|
||||
import { SharedViewComponent } from "~Documents/SharedView";
|
||||
import { LoadingStub } from "~LoadingStub";
|
||||
import { fetchSharedDoc } from "~redux/api/docs";
|
||||
import { IDocumentEntry } from "~redux/docs/reducer";
|
||||
import { flushPromises } from "~tests/utils";
|
||||
import { IDocumentJSON } from "../../../../src/entity/Document";
|
||||
|
||||
const testDoc: IDocumentJSON = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as Enzyme from "enzyme";
|
||||
import * as Adapter from "enzyme-adapter-react-16";
|
||||
import * as Adapter from "@wojtekmaj/enzyme-adapter-react-17";
|
||||
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export function flushPromises() {
|
||||
return new Promise(setImmediate);
|
||||
}
|
||||
|
||||
2009
package-lock.json
generated
2009
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
74
package.json
74
package.json
@@ -1,62 +1,62 @@
|
||||
{
|
||||
"name": "writer-backend",
|
||||
"devDependencies": {
|
||||
"@types/bcrypt": "^3.0.0",
|
||||
"@types/chai": "^4.2.15",
|
||||
"@types/concurrently": "^6.0.1",
|
||||
"@types/eslint": "^7.2.7",
|
||||
"@types/bcrypt": "^5.0.0",
|
||||
"@types/chai": "^4.2.21",
|
||||
"@types/concurrently": "^6.2.1",
|
||||
"@types/eslint": "^7.28.0",
|
||||
"@types/eslint-plugin-prettier": "^3.1.0",
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
"@types/koa": "^2.13.1",
|
||||
"@types/jsonwebtoken": "^8.5.4",
|
||||
"@types/koa": "^2.13.4",
|
||||
"@types/koa-logger": "^3.1.1",
|
||||
"@types/koa-router": "^7.4.1",
|
||||
"@types/koa-send": "^4.1.2",
|
||||
"@types/koa-sslify": "^4.0.1",
|
||||
"@types/koa-static": "^4.0.1",
|
||||
"@types/koa__cors": "^3.0.2",
|
||||
"@types/lodash": "^4.14.168",
|
||||
"@types/mocha": "^8.2.1",
|
||||
"@types/mysql": "^2.15.18",
|
||||
"@types/node": "^14.14.33",
|
||||
"@types/prettier": "^2.2.2",
|
||||
"@types/supertest": "^2.0.10",
|
||||
"@typescript-eslint/eslint-plugin": "^4.17.0",
|
||||
"@typescript-eslint/parser": "^4.17.0",
|
||||
"chai": "^4.3.3",
|
||||
"eslint": "^7.21.0",
|
||||
"@types/koa-router": "^7.4.4",
|
||||
"@types/koa-send": "^4.1.3",
|
||||
"@types/koa-sslify": "^4.0.2",
|
||||
"@types/koa-static": "^4.0.2",
|
||||
"@types/koa__cors": "^3.0.3",
|
||||
"@types/lodash": "^4.14.171",
|
||||
"@types/mocha": "^9.0.0",
|
||||
"@types/mysql": "^2.15.19",
|
||||
"@types/node": "^16.4.8",
|
||||
"@types/prettier": "^2.3.2",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "^4.28.5",
|
||||
"@typescript-eslint/parser": "^4.28.5",
|
||||
"chai": "^4.3.4",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-airbnb": "^18.2.1",
|
||||
"eslint-config-prettier": "^8.1.0",
|
||||
"eslint-config-prettier": "^8.3.0",
|
||||
"eslint-import-resolver-typescript": "^2.4.0",
|
||||
"eslint-plugin-import": "^2.22.1",
|
||||
"eslint-plugin-mocha": "^8.1.0",
|
||||
"eslint-plugin-prettier": "^3.3.1",
|
||||
"husky": "^5.1.3",
|
||||
"mocha": "^8.3.1",
|
||||
"prettier": "^2.2.1",
|
||||
"supertest": "^6.1.3",
|
||||
"ts-node-dev": "^1.1.6"
|
||||
"eslint-plugin-import": "^2.23.4",
|
||||
"eslint-plugin-mocha": "^9.0.0",
|
||||
"eslint-plugin-prettier": "^3.4.0",
|
||||
"husky": "^7.0.1",
|
||||
"mocha": "^9.0.3",
|
||||
"prettier": "^2.3.2",
|
||||
"supertest": "^6.1.4",
|
||||
"ts-node-dev": "^1.1.8"
|
||||
},
|
||||
"dependencies": {
|
||||
"@koa/cors": "^3.1.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"concurrently": "^6.0.0",
|
||||
"concurrently": "^6.2.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"koa": "^2.13.1",
|
||||
"koa-body": "^4.2.0",
|
||||
"koa-jwt": "^4.0.0",
|
||||
"koa-jwt": "^4.0.1",
|
||||
"koa-logger": "^3.2.1",
|
||||
"koa-router": "^10.0.0",
|
||||
"koa-send": "^5.0.1",
|
||||
"koa-sslify": "^4.0.3",
|
||||
"koa-sslify": "^5.0.0",
|
||||
"koa-static": "^5.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mysql": "^2.18.1",
|
||||
"reflect-metadata": "^0.1.13",
|
||||
"ts-node": "9.1.1",
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
"typeorm": "0.2.31",
|
||||
"typescript": "^4.2.3"
|
||||
"ts-node": "10.1.0",
|
||||
"tsconfig-paths": "^3.10.1",
|
||||
"typeorm": "0.2.36",
|
||||
"typescript": "^4.3.5"
|
||||
},
|
||||
"cacheDirectories": [
|
||||
"frontend/node_modules",
|
||||
|
||||
@@ -43,7 +43,7 @@ docsRouter.patch("/docs/byID/:id", async (ctx) => {
|
||||
const { user } = ctx.state;
|
||||
|
||||
const { id } = ctx.params as {
|
||||
id: number | undefined;
|
||||
id: string | undefined;
|
||||
};
|
||||
|
||||
if (!id) {
|
||||
@@ -56,7 +56,7 @@ docsRouter.patch("/docs/byID/:id", async (ctx) => {
|
||||
shared: boolean | undefined;
|
||||
};
|
||||
|
||||
const document = await Document.findOne({ id, user });
|
||||
const document = await Document.findOne({ id: parseInt(id), user });
|
||||
|
||||
if (!document) {
|
||||
ctx.throw(404);
|
||||
@@ -106,7 +106,7 @@ docsRouter.get("/docs/byID/:id", async (ctx) => {
|
||||
}
|
||||
|
||||
const { id } = ctx.params as {
|
||||
id: number | undefined;
|
||||
id: string | undefined;
|
||||
};
|
||||
|
||||
if (!id) {
|
||||
@@ -115,7 +115,7 @@ docsRouter.get("/docs/byID/:id", async (ctx) => {
|
||||
|
||||
const { user } = ctx.state;
|
||||
|
||||
const document = await Document.findOne({ id, user });
|
||||
const document = await Document.findOne({ id: parseInt(id), user });
|
||||
|
||||
if (!document) {
|
||||
ctx.throw(404);
|
||||
@@ -129,7 +129,7 @@ docsRouter.get("/docs/byID/:id", async (ctx) => {
|
||||
|
||||
docsRouter.get("/docs/shared/:username/:id", async (ctx) => {
|
||||
const { id, username } = ctx.params as {
|
||||
id: number | undefined;
|
||||
id: string | undefined;
|
||||
username: string | undefined;
|
||||
};
|
||||
|
||||
@@ -143,7 +143,7 @@ docsRouter.get("/docs/shared/:username/:id", async (ctx) => {
|
||||
ctx.throw(404);
|
||||
}
|
||||
|
||||
const document = await Document.findOne({ id, user });
|
||||
const document = await Document.findOne({ id: parseInt(id), user });
|
||||
|
||||
if (!document) {
|
||||
ctx.throw(404);
|
||||
@@ -165,7 +165,7 @@ docsRouter.delete("/docs/byID/:id", async (ctx) => {
|
||||
}
|
||||
|
||||
const { id } = ctx.params as {
|
||||
id: number | undefined;
|
||||
id: string | undefined;
|
||||
};
|
||||
|
||||
if (!id) {
|
||||
@@ -174,7 +174,7 @@ docsRouter.delete("/docs/byID/:id", async (ctx) => {
|
||||
|
||||
const { user } = ctx.state;
|
||||
|
||||
const document = await Document.findOne({ id, user });
|
||||
const document = await Document.findOne({ id: parseInt(id), user });
|
||||
|
||||
if (!document) {
|
||||
ctx.throw(404);
|
||||
|
||||
Reference in New Issue
Block a user