Socket
Socket
Sign inDemoInstall

beezlib

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beezlib - npm Package Compare versions

Comparing version 0.9.3 to 0.9.4

15

lib/css/stylus.js

@@ -86,7 +86,16 @@ /**

// define functions and constant values
if (options.fn && Object.keys(options.fn).length) {
styl.use(function (styl) {
for (var key in options.fn) {
styl.define(key, function() { return options.fn[key]; });
}
_.each(options.fn, function (fn, name) {
if (_.isFunction(fn)) {
styl.define(name, function (data) {
return fn(data && data.val);
});
} else {
styl.define(name, function () {
return fn;
});
}
});
});

@@ -93,0 +102,0 @@ }

2

package.json
{
"name": "beezlib",
"version": "0.9.3",
"version": "0.9.4",
"description": "",

@@ -5,0 +5,0 @@ "keywords": [

@@ -161,3 +161,2 @@ var path = require('path');

};
debugger;
var dstpath = index.template.hbs2hbsc2html('test/hbs/local.develop.html', 'index.html.hbs', store);

@@ -172,9 +171,8 @@ dstpath.should.equal('test/hbs/local.develop.html');

nib: true,
fn : function (styl) {
styl.define('body-padding', function (data) {
var rate = data.val || 1;
var base = 10;
return (rate * base) + 'px';
});
fn : {
TEST: 'TEST',
'body-padding': function (value) {
value.should.equal(3);
return value + 'px';
}
}

@@ -181,0 +179,0 @@ }, function (err, css) {

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