mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
update dependencies
remove octokit
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
import { Octokit } from 'octokit';
|
||||
/* import { Octokit } from 'octokit'; */
|
||||
import { Octokit } from '@octokit/core';
|
||||
import { restEndpointMethods } from '@octokit/plugin-rest-endpoint-methods';
|
||||
import { cache } from 'react';
|
||||
import { GistData, GistsFile, PageKeys, PageSize } from 'types';
|
||||
|
||||
@ -6,7 +8,8 @@ const password = process.env.NEXT_PUBLIC_GITHUB_API;
|
||||
const host = process.env.NEXT_PUBLIC_GISTS_HOST ?? 'https://api.github.com';
|
||||
|
||||
if (!password) throw new Error('No GitHub token detected.');
|
||||
const octokit = new Octokit({
|
||||
const MyOctokit = Octokit.plugin(restEndpointMethods);
|
||||
const octokit = new MyOctokit({
|
||||
auth: password,
|
||||
baseUrl: host,
|
||||
});
|
||||
|
37
package.json
37
package.json
@ -15,24 +15,25 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@catppuccin/highlightjs": "^0.1.4",
|
||||
"@catppuccin/palette": "^1.2.0",
|
||||
"@catppuccin/tailwindcss": "^0.1.6",
|
||||
"@catppuccin/palette": "^1.1.1",
|
||||
"@codesandbox/sandpack-react": "^2.13.8",
|
||||
"@codesandbox/sandpack-react": "^2.13.10",
|
||||
"@docsearch/css": "^3.6.0",
|
||||
"@docsearch/react": "^3.6.0",
|
||||
"@giscus/react": "^3.0.0",
|
||||
"@octokit/core": "^6.1.2",
|
||||
"@octokit/plugin-rest-endpoint-methods": "^13.2.1",
|
||||
"@react-spring/three": "^9.7.3",
|
||||
"@react-three/drei": "^9.105.3",
|
||||
"@react-three/fiber": "^8.16.2",
|
||||
"@react-three/drei": "^9.105.6",
|
||||
"@react-three/fiber": "^8.16.6",
|
||||
"algoliasearch": "^4.23.3",
|
||||
"dayjs": "^1.11.10",
|
||||
"next": "14.2.1",
|
||||
"dayjs": "^1.11.11",
|
||||
"next": "14.2.3",
|
||||
"next-mdx-remote": "^4.4.1",
|
||||
"next-themes": "^0.3.0",
|
||||
"octokit": "^3.2.0",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-icons": "^5.1.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react-icons": "^5.2.1",
|
||||
"rehype-highlight": "^6.0.0",
|
||||
"rehype-react": "^7.2.0",
|
||||
"rehype-slug": "^6.0.0",
|
||||
@ -40,18 +41,18 @@
|
||||
"remark-gfm": "^3.0.1",
|
||||
"remark-parse": "^10.0.2",
|
||||
"remark-rehype": "^10.1.0",
|
||||
"sharp": "^0.33.3",
|
||||
"three": "^0.163.0",
|
||||
"sharp": "^0.33.4",
|
||||
"three": "^0.164.1",
|
||||
"unified": "^10.1.2",
|
||||
"zustand": "^4.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@next/bundle-analyzer": "^14.2.1",
|
||||
"@types/node": "20.12.7",
|
||||
"@types/react": "18.2.79",
|
||||
"@types/three": "^0.163.0",
|
||||
"@next/bundle-analyzer": "^14.2.3",
|
||||
"@types/node": "20.12.12",
|
||||
"@types/react": "18.3.2",
|
||||
"@types/three": "^0.164.0",
|
||||
"autoprefixer": "^10.4.19",
|
||||
"clsx": "^2.1.0",
|
||||
"clsx": "^2.1.1",
|
||||
"dotenv": "^16.4.5",
|
||||
"encoding": "^0.1.13",
|
||||
"eslint": "^8",
|
||||
@ -63,7 +64,7 @@
|
||||
"postcss": "^8.4.38",
|
||||
"prettier": "^3.2.5",
|
||||
"raw-loader": "^4.0.2",
|
||||
"sass": "^1.75.0",
|
||||
"sass": "^1.77.2",
|
||||
"tailwindcss": "^3.4.3",
|
||||
"typescript": "5.4.5",
|
||||
"url-loader": "^4.1.1"
|
||||
|
1447
pnpm-lock.yaml
generated
1447
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user