⬆️ bump dependencies

This commit is contained in:
platane
2022-03-23 16:57:51 +01:00
parent b4e8fc83ef
commit b7298f7ff7
11 changed files with 543 additions and 495 deletions

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
16

View File

@@ -5,19 +5,19 @@
"private": true, "private": true,
"repository": "github:platane/snk", "repository": "github:platane/snk",
"devDependencies": { "devDependencies": {
"@types/jest": "27.4.0", "@types/jest": "27.4.1",
"@types/node": "16.11.7", "@types/node": "16.11.7",
"jest": "27.5.0", "jest": "27.5.1",
"prettier": "2.5.1", "prettier": "2.6.0",
"ts-jest": "27.1.3", "ts-jest": "27.1.3",
"typescript": "4.5.5" "typescript": "4.6.2"
}, },
"workspaces": [ "workspaces": [
"packages/**" "packages/**"
], ],
"scripts": { "scripts": {
"type": "tsc --noEmit", "type": "tsc --noEmit",
"lint": "yarn prettier -c '**/*.{ts,js,json,md,yml,yaml}' '!packages/action/dist/**' '!packages/demo/dist/**' '!packages/demo/webpack.config.js'", "lint": "yarn prettier -c '**/*.{ts,js,json,md,yml,yaml}' '!packages/*/dist/**'",
"test": "jest --verbose --passWithNoTests --no-cache", "test": "jest --verbose --passWithNoTests --no-cache",
"dev:demo": "( cd packages/demo ; yarn dev )", "dev:demo": "( cd packages/demo ; yarn dev )",
"build:demo": "( cd packages/demo ; yarn build )", "build:demo": "( cd packages/demo ; yarn build )",

View File

@@ -8,7 +8,7 @@
}, },
"devDependencies": { "devDependencies": {
"@zeit/ncc": "0.22.3", "@zeit/ncc": "0.22.3",
"ts-node": "10.4.0" "ts-node": "10.7.0"
}, },
"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

@@ -3,16 +3,17 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@snk/draw": "1.0.0", "@snk/draw": "1.0.0",
"@snk/solver": "1.0.0" "@snk/solver": "1.0.0",
"canvas": "2.9.1",
"gifsicle": "5.3.0"
}, },
"devDependencies": { "devDependencies": {
"@types/dat.gui": "0.7.7", "@types/dat.gui": "0.7.7",
"@types/webpack-dev-server": "4.7.2",
"dat.gui": "0.7.7", "dat.gui": "0.7.7",
"html-webpack-plugin": "5.5.0", "html-webpack-plugin": "5.5.0",
"ts-loader": "9.2.6", "ts-loader": "9.2.6",
"ts-node": "10.4.0", "ts-node": "10.7.0",
"webpack": "5.68.0", "webpack": "5.70.0",
"webpack-cli": "4.9.2", "webpack-cli": "4.9.2",
"webpack-dev-server": "4.7.4" "webpack-dev-server": "4.7.4"
}, },

View File

@@ -4,7 +4,7 @@
"dependencies": { "dependencies": {
"@snk/draw": "1.0.0", "@snk/draw": "1.0.0",
"@snk/solver": "1.0.0", "@snk/solver": "1.0.0",
"canvas": "2.9.0", "canvas": "2.9.1",
"gif-encoder-2": "1.0.5", "gif-encoder-2": "1.0.5",
"gifsicle": "5.3.0", "gifsicle": "5.3.0",
"tmp": "0.2.1" "tmp": "0.2.1"

View File

@@ -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.12.1" "@vercel/node": "1.14.0"
} }
} }

View File

@@ -1,5 +1,5 @@
import fetch from "node-fetch"; import fetch from "node-fetch";
import cheerio from "cheerio"; import * as cheerio from "cheerio";
import { formatParams, Options } from "./formatParams"; import { formatParams, Options } from "./formatParams";
/** /**
@@ -100,10 +100,12 @@ const parseUserPage = (content: string) => {
// returns the position of the svg elements, accounting for it's transform and it's parent transform // returns the position of the svg elements, accounting for it's transform and it's parent transform
// ( only accounts for translate transform ) // ( only accounts for translate transform )
const getSvgPosition = (e: cheerio.Element): { x: number; y: number } => { const getSvgPosition = (
e: cheerio.Element | null
): { x: number; y: number } => {
if (!e || e.tagName === "svg") return { x: 0, y: 0 }; if (!e || e.tagName === "svg") return { x: 0, y: 0 };
const p = getSvgPosition(e.parent); const p = getSvgPosition(e.parent as cheerio.Element);
if (e.attribs.x) p.x += +e.attribs.x; if (e.attribs.x) p.x += +e.attribs.x;
if (e.attribs.y) p.y += +e.attribs.y; if (e.attribs.y) p.y += +e.attribs.y;

View File

@@ -2,11 +2,10 @@
"name": "@snk/github-user-contribution", "name": "@snk/github-user-contribution",
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"cheerio": "~1.0.0-rc.5", "cheerio": "1.0.0-rc.10",
"node-fetch": "2.6.1" "node-fetch": "2.6.1"
}, },
"devDependencies": { "devDependencies": {
"@types/cheerio": "0.22.22", "@types/node-fetch": "2.6.1"
"@types/node-fetch": "2.5.10"
} }
} }

View File

@@ -13,7 +13,7 @@ import { createSnake } from "./snake";
import { createGrid } from "./grid"; import { createGrid } from "./grid";
import { createStack } from "./stack"; import { createStack } from "./stack";
import { h } from "./utils"; import { h } from "./utils";
import csso from "csso"; import * as csso from "csso";
export type Options = { export type Options = {
colorDots: Record<Color, string>; colorDots: Record<Color, string>;

View File

@@ -3,9 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"dependencies": { "dependencies": {
"@snk/solver": "1.0.0", "@snk/solver": "1.0.0",
"csso": "4.2.0" "csso": "5.0.3"
}, },
"devDependencies": { "devDependencies": {
"@types/csso": "4.2.0" "@types/csso": "5.0.0"
} }
} }

993
yarn.lock

File diff suppressed because it is too large Load Diff