Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dr/bem-helper

Package Overview
Dependencies
Maintainers
43
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dr/bem-helper - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

index.js

@@ -37,3 +37,3 @@ function BEM (...args) {

function modifierReducer (result, [modifier, value]) {
if (value !== false || value !== undefined || value !== null) {
if (value !== false && value !== undefined && value !== null) {
result.push(`--${modifier}${(value !== true) ? `-${value}` : "" }`);

@@ -40,0 +40,0 @@ }

{
"name": "@dr/bem-helper",
"version": "1.1.0",
"version": "1.1.1",
"description": "Helper to create BEM-style classnames",

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

@@ -11,2 +11,7 @@ var BEM = require("./index");

console.log(singleBound({rating: 3}));
console.log(singleBound({rating: 3}));
(function (foo, bar, qq) {
console.log(BEM("dr-module", "list", {foo, bar, qq}));
} ("foo", null));
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