New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bemhtml-syntax

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bemhtml-syntax - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

lib/api.js

4

bower.json
{
"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

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