bemhtml-syntax
Advanced tools
Comparing version 0.0.18 to 0.0.19
{ | ||
"name": "bemhtml-source-convert", | ||
"version": "0.0.1", | ||
"name": "bemhtml-syntax", | ||
"version": "0.0.19", | ||
"description": "BEMHTML source conversion tool", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
@@ -10,6 +10,2 @@ var Blueprint = exports, | ||
beautifyHtml = require('js-beautify').html, | ||
ibem = require('fs') | ||
.readFileSync( | ||
__dirname + '/../bower_components/bem-core/common.blocks/i-bem/i-bem.bemhtml', | ||
'utf8'), | ||
bemxjst = require('bem-xjst'), | ||
@@ -173,7 +169,3 @@ BH = require('bh').BH; | ||
match: function (json) { | ||
// NB: ibem is in js-syntax and compat.transpile leaves js intact | ||
// only transpiling the old syntax, which means it doesn't matter | ||
// wheather you stick ibem to old or js-syntax - compat.transpile | ||
// will do the right thing | ||
var srcjs = compat.transpile(ibem + this.src), | ||
var srcjs = compat.transpile(this.src), | ||
compiled = bemxjst.compile(srcjs, {}); | ||
@@ -180,0 +172,0 @@ return beautifyHtml(compiled.apply.call (json)); |
{ | ||
"name": "bemhtml-syntax", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "BEMHTML syntax converter", | ||
@@ -11,3 +11,2 @@ "main": "lib/syntax.js", | ||
"scripts": { | ||
"install": "./node_modules/.bin/bower install", | ||
"test": "mocha --reporter spec test/*-test.js" | ||
@@ -25,3 +24,2 @@ }, | ||
"dependencies": { | ||
"bower": "", | ||
"ometajs": "4.0.x", | ||
@@ -38,8 +36,10 @@ "esprima": "2.3.0", | ||
"bem-xjst": "1.0.0", | ||
"xjst": "0.4.21" | ||
"xjst": "0.4.21", | ||
"q": "" | ||
}, | ||
"devDependencies": { | ||
"escodegen": "1.6.1", | ||
"mocha": "2.2.4" | ||
"mocha": "2.2.4", | ||
"bower": "1.4.x" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
797
0
35
3581721
3
62603
+ Addedq@
+ Addedasap@2.0.6(transitive)
+ Addedpop-iterate@1.0.1(transitive)
+ Addedq@2.0.3(transitive)
+ Addedweak-map@1.0.8(transitive)
- Removedbower@
- Removedbower@1.8.14(transitive)