From 78925f78c73a19920b31ee947fa7e8b8bf2618db Mon Sep 17 00:00:00 2001 From: Arjun Gole <31399532+arjungole@users.noreply.github.com> Date: Fri, 3 Oct 2025 11:11:28 +0530 Subject: [PATCH 1/2] Update index.cjs.js Updated this to work it in lower versions of node js 16 --- dist/index.cjs.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 228fe22..72cbfa6 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -1973,7 +1973,10 @@ function getset(model, channel, modifier) { model = Array.isArray(model) ? model : [model]; for (const m of model) { - (limiters[m] ||= [])[channel] = modifier; + if (!limiters[m]) { + limiters[m] = []; + } + limiters[m][channel] = modifier; } model = model[0]; From c975d19a9b3e6e0b93a1b9cb88c87dd32daa7043 Mon Sep 17 00:00:00 2001 From: Arjun Gole <31399532+arjungole@users.noreply.github.com> Date: Fri, 3 Oct 2025 18:26:45 +0530 Subject: [PATCH 2/2] changes to work with node 14 and below index.cjs.js --- dist/index.cjs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 72cbfa6..61fecec 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -155,7 +155,7 @@ const reverseNames = Object.create(null); // Create a list of reverse color names for (const name in cssKeywords) { - if (Object.hasOwn(cssKeywords, name)) { + if (Object.prototype.hasOwnProperty.call(cssKeywords, name)) { reverseNames[cssKeywords[name]] = name; } } @@ -257,7 +257,7 @@ cs.get.rgb = function (string) { return [0, 0, 0, 0]; } - if (!Object.hasOwn(cssKeywords, match[1])) { + if (!!Object.prototype.hasOwnProperty.call(cssKeywords, match[1])) { return null; }