Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Feb 21, 2024
1 parent df3ec76 commit d07ce3a
Show file tree
Hide file tree
Showing 5 changed files with 3,338 additions and 2,757 deletions.
7 changes: 6 additions & 1 deletion modules/utils/getContentType.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import path from 'path';
import mime from 'mime';

import { Mime } from 'mime/lite';
import standardTypes from 'mime/types/standard.js';
import otherTypes from 'mime/types/other.js';

const mime = new Mime(standardTypes, otherTypes);

mime.define(
{
Expand Down
4 changes: 2 additions & 2 deletions modules/utils/npm.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import url from 'url';
import https from 'https';
import gunzip from 'gunzip-maybe';
import LRUCache from 'lru-cache';
import { LRUCache } from 'lru-cache';

import bufferStream from './bufferStream.js';

Expand Down Expand Up @@ -82,7 +82,7 @@ async function fetchPackageInfo(packageName, log) {
return JSON.parse(value);
});
}

if (res.statusCode === 404) {
cache.set(cacheKey, notFound, 5 * oneMinute);
return null;
Expand Down
58 changes: 29 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,62 +24,62 @@
"@babel/plugin-syntax-export-default-from": "^7.18.6",
"@babel/plugin-syntax-export-namespace-from": "^7.8.3",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@emotion/react": "^11.10.5",
"@emotion/react": "^11.11.3",
"@reach/visually-hidden": "^0.18.0",
"cheerio": "^1.0.0-rc.12",
"cors": "^2.8.5",
"date-fns": "^2.29.3",
"etag": "^1.8.1",
"express": "^4.18.2",
"gunzip-maybe": "^1.4.2",
"highlight.js": "^11.7.0",
"highlight.js": "^11.9.0",
"isomorphic-fetch": "^3.0.0",
"jsesc": "^3.0.2",
"lru-cache": "^7.14.1",
"mime": "^3.0.0",
"lru-cache": "^10.2.0",
"mime": "^4.0.1",
"morgan": "^1.10.0",
"ndjson": "^2.0.0",
"pretty-bytes": "^6.1.0",
"pretty-bytes": "^6.1.1",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.7.1",
"semver": "^7.3.8",
"react-icons": "^5.0.1",
"semver": "^7.6.0",
"sort-by": "^1.2.0",
"sri-toolbox": "^0.2.0",
"tar-stream": "^3.0.0",
"tempy": "^3.0.0",
"tar-stream": "^3.1.7",
"tempy": "^3.1.0",
"validate-npm-package-name": "^5.0.0",
"warning": "^4.0.3",
"whatwg-url": "^12.0.0"
"whatwg-url": "^14.0.0"
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@typescript-eslint/eslint-plugin": "5.51.0",
"@typescript-eslint/parser": "5.51.0",
"@typescript-eslint/eslint-plugin": "7.0.2",
"@typescript-eslint/parser": "7.0.2",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^29.4.2",
"chalk": "^5.2.0",
"dotenv": "^16.0.3",
"eslint": "8.33.0",
"babel-jest": "^29.7.0",
"chalk": "^5.3.0",
"dotenv": "^16.4.5",
"eslint": "8.56.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-flowtype": "8.0.3",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jsx-a11y": "6.7.1",
"eslint-plugin-react": "7.32.2",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"jest": "^29.4.2",
"nodemon": "^2.0.20",
"rollup": "^3.14.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-url": "^3.0.1",
"supertest": "^6.3.3"
"jest": "^29.7.0",
"nodemon": "^3.0.3",
"rollup": "^4.12.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-url": "^8.0.2",
"supertest": "^6.3.4"
},
"packageManager": "pnpm@7.26.0",
"engines": {
Expand Down
Loading

0 comments on commit d07ce3a

Please sign in to comment.