From 1bb5927c7ae76de96d9b5d05ca71d223b0a2ee48 Mon Sep 17 00:00:00 2001 From: susanta96 Date: Sat, 11 Dec 2021 22:56:49 +0530 Subject: [PATCH] final v1.4.2 --- README.md | 8 +++++++- package.json | 2 +- src/__tests__/json2scssMap-test.js | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 34355d2..77c1ef9 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,13 @@ json2scss.convertJs([1, 2, 3]); // (1, 2, 3) 1. Added support for ch unit as value . 2. Also , Now you can use any color format you are not strict to use hex only . Use rgba, hsl, rgb etc. +## Minor Update on v1.4.2 + 1. Improvement / Fix Regarding compiling Nested Array of Objects. + 2. Updated the unexpectedly remove Quotes from the strings. + +Thanks to the [Dylan Awalt-Conley](https://github.com/dawaltconley) for your PR. + + ## ISSUE Please let us know the issues on issues tab. We will happy to fix the update the package . @@ -109,7 +116,6 @@ Returns a through stream. Available options: Convert a normal JavaScript value to its string representation in Sass. Ignores `undefined` and functions. Calls `.toString()` on non-plain object instances. ## License - ISC [AS Developers](https://github.com/AS-Devs) diff --git a/package.json b/package.json index 8766d62..2f15fed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "json2scss-map", - "version": "1.4.1", + "version": "1.4.2", "description": "Covert JSON into scss map. Utility Tool for those who want there theme colors and font can be modified from json , but also use all the scss feature using scss varibles.", "main": "lib/json2scss.js", "bin": "lib/bin/json2scss", diff --git a/src/__tests__/json2scssMap-test.js b/src/__tests__/json2scssMap-test.js index 379953e..723d0a5 100644 --- a/src/__tests__/json2scssMap-test.js +++ b/src/__tests__/json2scssMap-test.js @@ -15,6 +15,7 @@ describe('JSON to SCSS Map', function() { it('should handle strings', function() { expect(json2scssMap('foo')).to.equal('"foo"'); expect(json2scssMap('item')).to.equal('"item"'); + expect(json2scssMap('ch')).to.equal('"ch"'); expect(json2scssMap('12px')).to.equal('12px'); expect(json2scssMap('14ch')).to.equal('14ch'); expect(json2scssMap('2.4rem')).to.equal('2.4rem');