less-vars-to-js
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -13,3 +13,3 @@ Object.defineProperty(exports, "__esModule", { | ||
var definition = variable.split(/:\s*/); | ||
lessVars[definition[0]] = definition[1]; | ||
lessVars[definition[0].replace(/['"]+/g, '').trim()] = definition[1]; | ||
}); | ||
@@ -16,0 +16,0 @@ |
{ | ||
"name": "less-vars-to-js", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Read LESS variables from the contents of a file and returning them as a javascript object.", | ||
@@ -19,7 +19,7 @@ "main": "dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/mjt01/less-vars-to-js.git" | ||
"url": "git+https://github.com/michaeltaranto/less-vars-to-js.git" | ||
}, | ||
"author": { | ||
"name": "Michael Taranto", | ||
"homepage": "https://github.com/mjt01" | ||
"homepage": "https://github.com/michaeltaranto" | ||
}, | ||
@@ -29,9 +29,9 @@ "license": [ | ||
"type": "MIT", | ||
"url": "http://mjt01.mit-license.org" | ||
"url": "http://michaeltaranto.mit-license.org" | ||
} | ||
], | ||
"bugs": { | ||
"url": "https://github.com/mjt01/less-vars-to-js/issues" | ||
"url": "https://github.com/michaeltaranto/less-vars-to-js/issues" | ||
}, | ||
"homepage": "https://github.com/mjt01/less-vars-to-js#readme", | ||
"homepage": "https://github.com/michaeltaranto/less-vars-to-js#readme", | ||
"devDependencies": { | ||
@@ -38,0 +38,0 @@ "babel-cli": "^6.7.7", |
@@ -1,3 +0,3 @@ | ||
[![Build Status](https://img.shields.io/travis/mjt01/less-vars-to-js/master.svg?style=flat-square)](https://travis-ci.org/mjt01/less-vars-to-js) | ||
[![Coverage Status](https://img.shields.io/coveralls/mjt01/less-vars-to-js.svg?style=flat-square)](https://coveralls.io/github/mjt01/less-vars-to-js?branch=master) | ||
[![Build Status](https://img.shields.io/travis/michaeltaranto/less-vars-to-js/master.svg?style=flat-square)](https://travis-ci.org/michaeltaranto/less-vars-to-js) | ||
[![Coverage Status](https://img.shields.io/coveralls/michaeltaranto/less-vars-to-js.svg?style=flat-square)](https://coveralls.io/github/michaeltaranto/less-vars-to-js?branch=master) | ||
[![npm](https://img.shields.io/npm/v/less-vars-to-js.svg?style=flat-square)](https://www.npmjs.com/package/less-vars-to-js) | ||
@@ -69,3 +69,3 @@ # less-vars-to-js | ||
<div style={{ backgroundColor: palette[colour] }}> | ||
<p>{ colour }<p> | ||
<p>{ colour }</p> | ||
<p>{ palette[colour] }</p> | ||
@@ -83,2 +83,2 @@ </div> | ||
[MIT](http://mjt01.mit-license.org) | ||
[MIT](http://michaeltaranto.mit-license.org) |
@@ -115,2 +115,11 @@ import lessVarsToJS from '../src'; | ||
output: {} | ||
}, | ||
{ | ||
should: 'should trim variable names', | ||
input: ` | ||
@blue : #0d3880; | ||
`, | ||
output: { | ||
'@blue': '#0d3880' | ||
} | ||
} | ||
@@ -117,0 +126,0 @@ ]; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11791
302