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

bem-cn-fast

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bem-cn-fast - npm Package Compare versions

Comparing version

to
1.0.2

6

index.js

@@ -24,3 +24,3 @@ 'use strict';

let element;
var element;

@@ -43,3 +43,3 @@ if (typeof elementOrMods === 'string') {

let base = componentName;
var base = componentName;
if (element) {

@@ -52,3 +52,3 @@ base += '__' + element;

? Object.keys(mods).reduce(function (result, name) {
let value = mods[name];
var value = mods[name];

@@ -55,0 +55,0 @@ if (value) {

{
"name": "bem-cn-fast",
"version": "1.0.1",
"version": "1.0.2",
"description": "Fast BEM class name generator",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,3 +8,3 @@ 'use strict';

it('should return block css-class without arguments', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b()).to.be.equal('block-name');

@@ -14,3 +14,3 @@ });

it('should return element css-class with `element` argument', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b('element-name')).to.be.equal('block-name__element-name');

@@ -20,3 +20,3 @@ });

it('should return block with mod css-class with `mods` argument', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b({

@@ -28,3 +28,3 @@ 'some-mod': 'visible'

it('should return block with mod css-class with `mods` argument (Boolean mod)', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b({

@@ -36,3 +36,3 @@ 'some-mod': true

it('should return block without mod css-class with `mods` argument and empty mods values', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b({

@@ -47,3 +47,3 @@ 'some-mod': false,

it('should return element with mods css-classes with `element` and `mods` arguments', function () {
let b = bem('block-name');
var b = bem('block-name');
expect(b(

@@ -50,0 +50,0 @@ 'element-name',