⬆️ bump dependencies

This commit is contained in:
platane
2024-02-20 15:55:51 +01:00
committed by Platane
parent 5332254423
commit debec31440
10 changed files with 533 additions and 233 deletions

View File

@@ -16,7 +16,6 @@ inputs:
default: ${{ github.token }} default: ${{ github.token }}
outputs: outputs:
required: false required: false
default: null
description: | description: |
list of files to generate. list of files to generate.
one file per line. Each output can be customized with options as query string. one file per line. Each output can be customized with options as query string.

View File

@@ -6,15 +6,15 @@
"repository": "github:platane/snk", "repository": "github:platane/snk",
"devDependencies": { "devDependencies": {
"@sucrase/jest-plugin": "3.0.0", "@sucrase/jest-plugin": "3.0.0",
"@types/jest": "29.5.5", "@types/jest": "29.5.12",
"@types/node": "20.6.3", "@types/node": "20.11.19",
"jest": "29.7.0", "jest": "29.7.0",
"prettier": "2.8.8", "prettier": "2.8.8",
"sucrase": "3.34.0", "sucrase": "3.35.0",
"typescript": "5.2.2" "typescript": "5.3.3"
}, },
"workspaces": [ "workspaces": [
"packages/**" "packages/*"
], ],
"jest": { "jest": {
"testEnvironment": "node", "testEnvironment": "node",

View File

@@ -10,8 +10,8 @@
"@snk/types": "1.0.0" "@snk/types": "1.0.0"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "0.38.0", "@vercel/ncc": "0.38.1",
"dotenv": "16.3.1" "dotenv": "16.4.5"
}, },
"scripts": { "scripts": {
"build": "ncc build --external canvas --external gifsicle --out dist ./index.ts", "build": "ncc build --external canvas --external gifsicle --out dist ./index.ts",

View File

@@ -10,15 +10,15 @@
"@snk/types": "1.0.0" "@snk/types": "1.0.0"
}, },
"devDependencies": { "devDependencies": {
"dotenv": "16.3.1", "dotenv": "16.4.5",
"@types/dat.gui": "0.7.10", "@types/dat.gui": "0.7.12",
"dat.gui": "0.7.9", "dat.gui": "0.7.9",
"html-webpack-plugin": "5.5.3", "html-webpack-plugin": "5.5.3",
"ts-loader": "9.4.4", "ts-loader": "9.5.1",
"ts-node": "10.9.1", "ts-node": "10.9.2",
"webpack": "5.88.2", "webpack": "5.88.2",
"webpack-cli": "5.1.4", "webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1" "webpack-dev-server": "5.0.2"
}, },
"scripts": { "scripts": {
"build": "webpack", "build": "webpack",

View File

@@ -4,23 +4,31 @@ import webpack from "webpack";
import { getGithubUserContribution } from "@snk/github-user-contribution"; import { getGithubUserContribution } from "@snk/github-user-contribution";
import { config } from "dotenv"; import { config } from "dotenv";
import type { Configuration as WebpackConfiguration } from "webpack"; import type { Configuration as WebpackConfiguration } from "webpack";
import type { Configuration as WebpackDevServerConfiguration } from "webpack-dev-server"; import {
ExpressRequestHandler,
type Configuration as WebpackDevServerConfiguration,
} from "webpack-dev-server";
config({ path: __dirname + "/../../.env" }); config({ path: __dirname + "/../../.env" });
const demos: string[] = require("./demo.json"); const demos: string[] = require("./demo.json");
const webpackDevServerConfiguration: WebpackDevServerConfiguration = { const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
open: { target: demos[1] + ".html" }, open: { target: demos[1] + ".html" },
onAfterSetupMiddleware: ({ app }) => { setupMiddlewares: (ms) => [
app!.get("/api/github-user-contribution/:userName", async (req, res) => { ...ms,
const userName: string = req.params.userName; (async (req, res, next) => {
res.send( const userName = req.url.match(
await getGithubUserContribution(userName, { /\/api\/github-user-contribution\/(\w+)/
githubToken: process.env.GITHUB_TOKEN!, )?.[1];
}) if (userName)
); res.send(
}); await getGithubUserContribution(userName, {
}, githubToken: process.env.GITHUB_TOKEN!,
})
);
else next();
}) as ExpressRequestHandler,
],
}; };
const webpackConfiguration: WebpackConfiguration = { const webpackConfiguration: WebpackConfiguration = {

View File

@@ -11,8 +11,8 @@
}, },
"devDependencies": { "devDependencies": {
"@types/gifsicle": "5.2.0", "@types/gifsicle": "5.2.0",
"@types/tmp": "0.2.4", "@types/tmp": "0.2.6",
"@vercel/ncc": "0.38.0" "@vercel/ncc": "0.38.1"
}, },
"scripts": { "scripts": {
"benchmark": "ncc run __tests__/benchmark.ts --quiet" "benchmark": "ncc run __tests__/benchmark.ts --quiet"

View File

@@ -2,11 +2,11 @@
"name": "@snk/github-user-contribution-service", "name": "@snk/github-user-contribution-service",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"node-fetch": "2.7.0", "node-fetch": "3.3.2",
"@snk/github-user-contribution": "1.0.0", "@snk/github-user-contribution": "1.0.0",
"@vercel/node": "3.0.6" "@vercel/node": "3.0.6"
}, },
"devDependencies": { "devDependencies": {
"@types/node-fetch": "2.6.6" "@types/node-fetch": "2.6.11"
} }
} }

View File

@@ -2,6 +2,6 @@
"name": "@snk/github-user-contribution", "name": "@snk/github-user-contribution",
"version": "1.0.0", "version": "1.0.0",
"devDependencies": { "devDependencies": {
"dotenv": "16.3.1" "dotenv": "16.4.5"
} }
} }

View File

@@ -16,7 +16,6 @@ inputs:
default: ${{ github.token }} default: ${{ github.token }}
outputs: outputs:
required: false required: false
default: null
description: | description: |
list of files to generate. list of files to generate.
one file per line. Each output can be customized with options as query string. one file per line. Each output can be customized with options as query string.

700
yarn.lock

File diff suppressed because it is too large Load Diff