Skip to content

Commit

Permalink
try downgrading colorjs.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Southclaws committed Jun 23, 2024
1 parent 21526a1 commit 61b0635
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@tiptap/starter-kit": "^2.4.0",
"@tiptap/suggestion": "^2.4.0",
"@uidotdev/usehooks": "^2.4.1",
"colorjs.io": "^0.5.0",
"colorjs.io": "^0.4.5",
"date-fns": "^3.6.0",
"emoji-mart": "^5.6.0",
"js-cookie": "^3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/form/ColourInput/useColourInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function useColourInput(props: Props) {
if (!props.value) return;

try {
const colour = new (Color as any)(props.value);
const colour = new Color(props.value);

const hue = angleToHue(colour.lch["h"] ?? 0);

Expand Down
10 changes: 5 additions & 5 deletions web/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5122,10 +5122,10 @@ __metadata:
languageName: node
linkType: hard

"colorjs.io@npm:^0.5.0":
version: 0.5.0
resolution: "colorjs.io@npm:0.5.0"
checksum: 10c0/3fa5ed32f2bc62ea133d8df9b267a2bd2e33d3acb8f86bf057b125967f4b7ac607179df15fe4371e4f883760ea939a93a234d6b655fac605166d68e98a55a24d
"colorjs.io@npm:^0.4.5":
version: 0.4.5
resolution: "colorjs.io@npm:0.4.5"
checksum: 10c0/4cc58d18223426bcb8caa558e7554002b62bf87bd20db06596abf5efe5ea65416266402db86b504ac5fa2c38360913dbb8e6ef7c4fa19a992fd1818d5710ef6f
languageName: node
linkType: hard

Expand Down Expand Up @@ -10556,7 +10556,7 @@ __metadata:
"@typescript-eslint/eslint-plugin": "npm:^7.13.0"
"@typescript-eslint/parser": "npm:^7.13.0"
"@uidotdev/usehooks": "npm:^2.4.1"
colorjs.io: "npm:^0.5.0"
colorjs.io: "npm:^0.4.5"
date-fns: "npm:^3.6.0"
emoji-mart: "npm:^5.6.0"
eslint: "npm:^8.57.0"
Expand Down

0 comments on commit 61b0635

Please sign in to comment.