Skip to content

Commit

Permalink
final v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
susanta96 committed Dec 11, 2021
1 parent ae6d3fd commit 1bb5927
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/json2scssMap-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 1bb5927

Please sign in to comment.