Skip to content

Commit

Permalink
⬆️ bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Feb 20, 2024
1 parent 5332254 commit debec31
Show file tree
Hide file tree
Showing 10 changed files with 534 additions and 234 deletions.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ inputs:
default: ${{ github.token }}
outputs:
required: false
default: null
description: |
list of files to generate.
one file per line. Each output can be customized with options as query string.
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"repository": "github:platane/snk",
"devDependencies": {
"@sucrase/jest-plugin": "3.0.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.3",
"@types/jest": "29.5.12",
"@types/node": "20.11.19",
"jest": "29.7.0",
"prettier": "2.8.8",
"sucrase": "3.34.0",
"typescript": "5.2.2"
"sucrase": "3.35.0",
"typescript": "5.3.3"
},
"workspaces": [
"packages/**"
"packages/*"
],
"jest": {
"testEnvironment": "node",
Expand Down
4 changes: 2 additions & 2 deletions packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"@snk/types": "1.0.0"
},
"devDependencies": {
"@vercel/ncc": "0.38.0",
"dotenv": "16.3.1"
"@vercel/ncc": "0.38.1",
"dotenv": "16.4.5"
},
"scripts": {
"build": "ncc build --external canvas --external gifsicle --out dist ./index.ts",
Expand Down
10 changes: 5 additions & 5 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"@snk/types": "1.0.0"
},
"devDependencies": {
"dotenv": "16.3.1",
"@types/dat.gui": "0.7.10",
"dotenv": "16.4.5",
"@types/dat.gui": "0.7.12",
"dat.gui": "0.7.9",
"html-webpack-plugin": "5.5.3",
"ts-loader": "9.4.4",
"ts-node": "10.9.1",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"webpack": "5.88.2",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1"
"webpack-dev-server": "5.0.2"
},
"scripts": {
"build": "webpack",
Expand Down
30 changes: 19 additions & 11 deletions packages/demo/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,31 @@ import webpack from "webpack";
import { getGithubUserContribution } from "@snk/github-user-contribution";
import { config } from "dotenv";
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" });

const demos: string[] = require("./demo.json");

const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
open: { target: demos[1] + ".html" },
onAfterSetupMiddleware: ({ app }) => {
app!.get("/api/github-user-contribution/:userName", async (req, res) => {
const userName: string = req.params.userName;
res.send(
await getGithubUserContribution(userName, {
githubToken: process.env.GITHUB_TOKEN!,
})
);
});
},
setupMiddlewares: (ms) => [
...ms,
(async (req, res, next) => {
const userName = req.url.match(
/\/api\/github-user-contribution\/(\w+)/
)?.[1];
if (userName)
res.send(
await getGithubUserContribution(userName, {
githubToken: process.env.GITHUB_TOKEN!,
})
);
else next();
}) as ExpressRequestHandler,
],
};

const webpackConfiguration: WebpackConfiguration = {
Expand Down
4 changes: 2 additions & 2 deletions packages/gif-creator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"devDependencies": {
"@types/gifsicle": "5.2.0",
"@types/tmp": "0.2.4",
"@vercel/ncc": "0.38.0"
"@types/tmp": "0.2.6",
"@vercel/ncc": "0.38.1"
},
"scripts": {
"benchmark": "ncc run __tests__/benchmark.ts --quiet"
Expand Down
4 changes: 2 additions & 2 deletions packages/github-user-contribution-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "@snk/github-user-contribution-service",
"version": "1.0.0",
"dependencies": {
"node-fetch": "2.7.0",
"node-fetch": "3.3.2",
"@snk/github-user-contribution": "1.0.0",
"@vercel/node": "3.0.6"
},
"devDependencies": {
"@types/node-fetch": "2.6.6"
"@types/node-fetch": "2.6.11"
}
}
2 changes: 1 addition & 1 deletion packages/github-user-contribution/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "@snk/github-user-contribution",
"version": "1.0.0",
"devDependencies": {
"dotenv": "16.3.1"
"dotenv": "16.4.5"
}
}
1 change: 0 additions & 1 deletion svg-only/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ inputs:
default: ${{ github.token }}
outputs:
required: false
default: null
description: |
list of files to generate.
one file per line. Each output can be customized with options as query string.
Expand Down
Loading

0 comments on commit debec31

Please sign in to comment.