Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gonzales-pe

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gonzales-pe - npm Package Compare versions

Comparing version 3.0.0-6 to 3.0.0-7

lib/ast-to-src.js

28

lib/gonzales.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc