⬆️ bump dependencies
This commit is contained in:
10
package.json
10
package.json
@@ -5,12 +5,12 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"repository": "github:platane/snk",
|
"repository": "github:platane/snk",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "26.0.23",
|
"@types/jest": "27.0.2",
|
||||||
"@types/node": "16.0.0",
|
"@types/node": "16.0.0",
|
||||||
"jest": "27.0.6",
|
"jest": "27.2.4",
|
||||||
"prettier": "2.3.2",
|
"prettier": "2.4.1",
|
||||||
"ts-jest": "27.0.3",
|
"ts-jest": "27.0.5",
|
||||||
"typescript": "4.3.5"
|
"typescript": "4.4.3"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/**"
|
"packages/**"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import { generateContributionSnake } from "./generateContributionSnake";
|
|||||||
fs.writeFileSync(format.gif, gif);
|
fs.writeFileSync(format.gif, gif);
|
||||||
console.log(`::set-output name=gif_out_path::${format.gif}`);
|
console.log(`::set-output name=gif_out_path::${format.gif}`);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e: any) {
|
||||||
core.setFailed(`Action failed with "${e.message}"`);
|
core.setFailed(`Action failed with "${e.message}"`);
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -2,13 +2,13 @@
|
|||||||
"name": "@snk/action",
|
"name": "@snk/action",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "1.4.0",
|
"@actions/core": "1.6.0",
|
||||||
"@snk/gif-creator": "1.0.0",
|
"@snk/gif-creator": "1.0.0",
|
||||||
"@snk/github-user-contribution": "1.0.0"
|
"@snk/github-user-contribution": "1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@zeit/ncc": "0.22.3",
|
"@zeit/ncc": "0.22.3",
|
||||||
"ts-node": "10.0.0"
|
"ts-node": "10.2.1"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build --external canvas --out dist ./index.ts ",
|
"build": "ncc build --external canvas --out dist ./index.ts ",
|
||||||
|
|||||||
@@ -6,15 +6,15 @@
|
|||||||
"@snk/solver": "1.0.0"
|
"@snk/solver": "1.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/dat.gui": "0.7.6",
|
"@types/dat.gui": "0.7.7",
|
||||||
"@types/webpack-dev-server": "3.11.5",
|
"@types/webpack-dev-server": "4.3.0",
|
||||||
"dat.gui": "0.7.7",
|
"dat.gui": "0.7.7",
|
||||||
"html-webpack-plugin": "5.3.2",
|
"html-webpack-plugin": "5.3.2",
|
||||||
"ts-loader": "9.2.3",
|
"ts-loader": "9.2.6",
|
||||||
"ts-node": "10.0.0",
|
"ts-node": "10.2.1",
|
||||||
"webpack": "5.42.0",
|
"webpack": "5.56.0",
|
||||||
"webpack-cli": "4.7.2",
|
"webpack-cli": "4.8.0",
|
||||||
"webpack-dev-server": "3.11.2"
|
"webpack-dev-server": "4.3.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
|
|||||||
@@ -9,9 +9,8 @@ import { getGithubUserContribution } from "@snk/github-user-contribution";
|
|||||||
const demos: string[] = require("./demo.json");
|
const demos: string[] = require("./demo.json");
|
||||||
|
|
||||||
const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
|
const webpackDevServerConfiguration: WebpackDevServerConfiguration = {
|
||||||
open: true,
|
open: { target: demos[1] + ".html" },
|
||||||
openPage: demos[1] + ".html",
|
onAfterSetupMiddleware: ({ app }) => {
|
||||||
after: (app) => {
|
|
||||||
app.get("/api/github-user-contribution/:userName", async (req, res) => {
|
app.get("/api/github-user-contribution/:userName", async (req, res) => {
|
||||||
const userName: string = req.params.userName;
|
const userName: string = req.params.userName;
|
||||||
res.send(await getGithubUserContribution(userName));
|
res.send(await getGithubUserContribution(userName));
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@snk/github-user-contribution": "1.0.0",
|
"@snk/github-user-contribution": "1.0.0",
|
||||||
"@vercel/node": "1.11.1"
|
"@vercel/node": "1.12.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
import { formatParams } from "../formatParams";
|
import { formatParams } from "../formatParams";
|
||||||
|
|
||||||
[
|
const params = [
|
||||||
//
|
//
|
||||||
[{}, ""],
|
[{}, ""],
|
||||||
[{ year: 2017 }, "from=2017-01-01&to=2017-12-31"],
|
[{ year: 2017 }, "from=2017-01-01&to=2017-12-31"],
|
||||||
[{ from: new Date("2017-12-03") }, "from=2017-12-03"],
|
[{ from: new Date("2017-12-03") }, "from=2017-12-03"],
|
||||||
[{ from: "2017-12-03" }, "from=2017-12-03"],
|
[{ from: "2017-12-03" }, "from=2017-12-03"],
|
||||||
[{ to: "2017-12-03" }, "to=2017-12-03"],
|
[{ to: "2017-12-03" }, "to=2017-12-03"],
|
||||||
].forEach(([params, res]) =>
|
] as const;
|
||||||
|
|
||||||
|
params.forEach(([params, res]) =>
|
||||||
it(`should format ${JSON.stringify(params)}`, () => {
|
it(`should format ${JSON.stringify(params)}`, () => {
|
||||||
expect(formatParams(params)).toBe(res);
|
expect(formatParams(params)).toBe(res);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,6 +6,6 @@
|
|||||||
"csso": "4.2.0"
|
"csso": "4.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/csso": "3.5.1"
|
"@types/csso": "4.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user