gonzales-pe
Advanced tools
Comparing version 3.0.0-6 to 3.0.0-7
@@ -1,23 +0,5 @@ | ||
// CSSP | ||
exports.cssToAST = require('./gonzales.css-to-ast.js').cssToAST; | ||
exports.astToCSS = require('./gonzales.ast-to-css.js').astToCSS; | ||
exports.astToTree = function(tree, level) { | ||
level = level || 0; | ||
var spaces = dummySpaces(level), | ||
s = (level ? '\n' + spaces : '') + '['; | ||
tree.forEach(function(e) { | ||
if (e.ln === undefined) { | ||
s += (Array.isArray(e) ? exports.astToTree(e, level + 1) : ('\'' + e.toString() + '\'')) + ', '; | ||
} | ||
}); | ||
return s.substr(0, s.length - 2) + ']'; | ||
} | ||
function dummySpaces(num) { | ||
return ' '.substr(0, num * 2); | ||
} | ||
module.exports = { | ||
astToSrc: require('./ast-to-src'), | ||
astToString: require('./ast-to-string'), | ||
srcToAST: require('./src-to-ast') | ||
}; |
{ | ||
"name": "gonzales-pe", | ||
"description": "Gonzales Preprocessor Edition (fast CSS parser)", | ||
"version": "3.0.0-6", | ||
"version": "3.0.0-7", | ||
"homepage": "http://github.com/tonyganch/gonzales-pe", | ||
@@ -19,9 +19,9 @@ "bugs": "http://github.com/tonyganch/gonzales-pe/issues", | ||
"scripts": { | ||
"test": "(make && mkdir -p log && node ./test/mocha.js) | tee ./log/test.log" | ||
"test": "(mkdir -p log && node ./test/mocha.js) | tee ./log/test.log" | ||
}, | ||
"devDependencies": { | ||
"benchmark": "~1.0.0", | ||
"coffee-script": "latest", | ||
"coffee-script": "~1.7.1", | ||
"microtime": "~0.3.3", | ||
"mocha": "latest" | ||
"mocha": "~1.20.0" | ||
}, | ||
@@ -28,0 +28,0 @@ "engines": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
453465
37
12892
4
1