Updated deps

This commit is contained in:
DrMint 2022-08-27 22:22:16 +02:00
parent 119794a236
commit a4467a6ee4
3 changed files with 522 additions and 438 deletions

945
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"@tippyjs/react": "^4.2.6",
"@types/ua-parser-js": "^0.7.36",
"autoprefixer": "^10.4.8",
"graphql-request": "^4.3.0",
"graphql-request": "^5.0.0",
"markdown-to-jsx": "^7.1.7",
"meilisearch": "^0.27.0",
"next": "^12.2.5",
@ -42,20 +42,20 @@
},
"devDependencies": {
"@digitak/esrun": "^3.2.10",
"@graphql-codegen/cli": "^2.11.6",
"@graphql-codegen/cli": "^2.11.8",
"@graphql-codegen/typescript": "2.7.3",
"@graphql-codegen/typescript-graphql-request": "^4.5.3",
"@graphql-codegen/typescript-operations": "^2.5.3",
"@types/node": "18.7.9",
"@types/node": "18.7.13",
"@types/nodemailer": "^6.4.5",
"@types/react": "18.0.17",
"@types/react-dom": "^18.0.6",
"@types/throttle-debounce": "^5.0.0",
"@types/turndown": "^5.0.1",
"@typescript-eslint/eslint-plugin": "^5.33.1",
"@typescript-eslint/parser": "^5.33.1",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"dotenv": "^16.0.1",
"eslint": "^8.22.0",
"eslint": "^8.23.0",
"eslint-config-next": "12.2.5",
"eslint-plugin-import": "^2.26.0",
"graphql": "^16.6.0",
@ -64,6 +64,6 @@
"prettier-plugin-tailwindcss": "^0.1.13",
"tailwindcss": "^3.1.8",
"ts-unused-exports": "^8.0.0",
"typescript": "^4.7.4"
"typescript": "^4.8.2"
}
}

View File

@ -13,6 +13,7 @@ const LOCAL_DATA_FOLDER = `${process.cwd()}/public/local-data`;
const writeLocalData = (name: LocalDataFile, localData: unknown) => {
const path = `${LOCAL_DATA_FOLDER}/${name}.json`;
writeFileSync(path, JSON.stringify(localData), { encoding: "utf-8" });
console.log(`${path} has been written!`)
};
const readLocalData = <T>(name: LocalDataFile): T => {