Skip to content

Commit

Permalink
chore(deps): Update deps to range maximums. Update node version in li…
Browse files Browse the repository at this point in the history
…nt workflow.
  • Loading branch information
Broch Stilley authored and Broch Stilley committed May 7, 2024
1 parent 6f6e4b7 commit 860965d
Show file tree
Hide file tree
Showing 5 changed files with 4,980 additions and 3,497 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ on: pull_request
jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Setup Node.js 14.x

- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 14.x
node-version: 18.x

- name: Install and lint
run: |
yarn --frozen-lockfile
yarn install
yarn test:other
yarn test:code
yarn test:typecheck
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
45 changes: 23 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg-to-excalidraw",
"version": "0.0.2",
"version": "0.1.0",
"description": "Convert SVG to Excalidraw’s file format",
"main": "dist/bundle.js",
"files": [
Expand Down Expand Up @@ -30,38 +30,39 @@
],
"license": "MIT",
"devDependencies": {
"@babel/core": "7.15.5",
"@babel/plugin-proposal-class-properties": "7.14.5",
"@babel/plugin-proposal-object-rest-spread": "7.14.7",
"@babel/core": "7.24.5",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.15.4",
"@babel/preset-typescript": "7.15.0",
"@excalidraw/eslint-config": "1.0.1",
"@babel/preset-env": "7.24.5",
"@babel/preset-typescript": "7.24.1",
"@excalidraw/eslint-config": "1.0.3",
"@excalidraw/prettier-config": "1.0.2",
"@types/chroma-js": "^2.1.3",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"babel-loader": "^8.2.2",
"@types/chroma-js": "^2.4.4",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"babel-loader": "^8.3.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "4.0.0",
"lint-staged": "11.1.2",
"prettier": "2.3.2",
"typescript": "4.4.2",
"webpack": "5.52.0",
"webpack-cli": "4.8.0"
"eslint-config-prettier": "8.10.0",
"eslint-plugin-prettier": "4.2.1",
"lint-staged": "11.2.6",
"prettier": "2.8.8",
"typescript": "4.9.5",
"webpack": "5.91.0",
"webpack-cli": "4.10.0"
},
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.{js,css,md}": "prettier --write"
},
"dependencies": {
"chroma-js": "^2.1.2",
"gl-matrix": "^3.3.0",
"nanoid": "^3.1.25",
"chroma-js": "^2.4.2",
"gl-matrix": "^3.4.3",
"nanoid": "^3.3.7",
"path-data-parser": "^0.1.0",
"points-on-curve": "^0.2.0",
"points-on-path": "^0.2.1",
"roughjs": "^4.4.1"
"rimraf": "^5.0.5",
"roughjs": "^4.6.6"
}
}
2 changes: 1 addition & 1 deletion src/attributes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function get(el: Element, attr: string, backup?: string): string {

export function getNum(el: Element, attr: string, backup?: number): number {
const numVal = Number(get(el, attr));
return numVal === NaN ? backup || 0 : numVal;
return Number.isNaN(numVal) ? backup || 0 : numVal;
}

const presAttrs = {
Expand Down
Loading

0 comments on commit 860965d

Please sign in to comment.