icss-replace-symbols
Advanced tools
Comparing version 1.0.2 to 1.1.0
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
@@ -10,3 +10,3 @@ }); | ||
function replaceAll(replacements, text) { | ||
var matches = undefined; | ||
var matches = void 0; | ||
while (matches = matchConstName.exec(text)) { | ||
@@ -22,3 +22,3 @@ var replacement = replacements[matches[0]]; | ||
exports['default'] = function (css, translations) { | ||
exports.default = function (css, translations) { | ||
css.walkDecls(function (decl) { | ||
@@ -25,0 +25,0 @@ return decl.value = replaceAll(translations, decl.value); |
{ | ||
"name": "icss-replace-symbols", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Replacing symbols during the linking phase of ICSS", | ||
@@ -10,3 +10,3 @@ "main": "lib/index.js", | ||
"autotest": "chokidar src test -c 'npm test'", | ||
"test": "mocha --compilers js:babel/register", | ||
"test": "mocha --compilers js:babel-register", | ||
"posttest": "npm run lint && npm run build", | ||
@@ -33,8 +33,10 @@ "travis": "npm run test", | ||
"devDependencies": { | ||
"babel": "^5.8.23", | ||
"chokidar": "^1.0.6", | ||
"mocha": "^2.3.2", | ||
"postcss": "^5.0.5", | ||
"standard": "^5.3.1" | ||
"babel-cli": "^6.18.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-register": "^6.18.0", | ||
"chokidar": "^1.3.0", | ||
"mocha": "^3.1.2", | ||
"postcss": "^6.0.1", | ||
"standard": "^8.4.0" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
[![Build Status](https://img.shields.io/travis/css-modules/icss-replace-symbols/master.svg?style=flat-square)]() | ||
# ICSS — Replace Symbols | ||
@@ -2,0 +4,0 @@ |
Sorry, the diff of this file is not supported yet
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
34
3033
7
4
24