From f41bfc29efd1ba251e395f981a7f3da1c0e3efb5 Mon Sep 17 00:00:00 2001 From: Randy Luecke Date: Wed, 10 Jul 2019 11:00:15 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20for=20incorrect=20color=20parsing=20for?= =?UTF-8?q?=20strings=20like=20=E2=80=9Cconstructor=E2=80=9D=20and=20?= =?UTF-8?q?=E2=80=9C=5F=5Fproto=5F=5F=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- colors.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/colors.js b/colors.js index 506c14b..58b883f 100644 --- a/colors.js +++ b/colors.js @@ -1,5 +1,5 @@ -module.exports = { +module.exports = Object.create(null, { aliceblue: [240, 248, 255] , antiquewhite: [250, 235, 215] , aqua: [0, 255, 255] @@ -148,4 +148,4 @@ module.exports = { , whitesmoke: [245, 245, 245] , yellow: [255, 255, 0] , yellowgreen: [154, 205, 5] -}; +}); diff --git a/package.json b/package.json index 5cc4df8..903dc20 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "color-parser", "repo": "component/color-parser", "description": "CSS color string parser", - "version": "0.1.0", + "version": "0.1.1", "main": "index.js", "keywords": [ "color",