Socket
Socket
Sign inDemoInstall

bemc

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemc - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

lib/bemc.js

@@ -19,8 +19,7 @@ var ometajs = require('ometajs'),

xjstTree = xjst.translate(BEMCToXJST.match(tree, 'topLevel')),
exportName = options.exportName || 'TEMPLATES';
exportName = options.exportName || 'TEMPLATES',
xjstOpts = options.devMode? { 'no-opt': true } : { engine: 'sort-group' };
try {
var xjstJS = options.devMode ?
xjst.compile(xjstTree, '', { 'no-opt': true }):
xjst.compile(xjstTree, { engine: 'sort-group' });
var xjstJS = xjst.compile(xjstTree, xjstOpts);
} catch (e) {

@@ -27,0 +26,0 @@ throw new Error("xjst to js compilation failed:\n" + e.stack);

@@ -17,2 +17,8 @@ var PATH = require('path'),

.opt()
.title('Raw mode')
.name('rawMode')
.long('raw')
.flag()
.end()
.opt()
.title('Output file (stdout by default)')

@@ -49,3 +55,3 @@ .name('output')

var res = bemc.translate(src, { devMode: opts.devMode }),
var res = bemc.translate(src, { devMode: opts.devMode, raw: opts.rawMode }),
output = opts.output;

@@ -52,0 +58,0 @@

{
"name": "bemc",
"version": "1.0.0",
"version": "1.0.1",
"homepage": "http://github.com/bem/bemc",

@@ -43,2 +43,3 @@ "author": "Fedor Indutny <fedor.indutny@gmail.com> (http://github.com/indutny)",

"directories": {
"bin": "bin",
"test": "test"

@@ -45,0 +46,0 @@ },

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