Socket
Socket
Sign inDemoInstall

bemmit

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

34

package.json
{
"name": "bemmit",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple, opinionated BEM-style classname generator.",

@@ -8,9 +8,11 @@ "main": "src/index.js",

"test": "npm run test:lint --silent && npm run test:jest --silent",
"test:jest": "jest",
"test:jest": "jest --coverage",
"test:lint": "eslint src/",
"test:coverage": "jest --coverage"
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commit": "npm test && git-cz",
"commitmsg": "validate-commit-msg"
},
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/jlengstorf/bemmit.git"
"url": "https://github.com/jlengstorf/bemmit.git"
},

@@ -36,7 +38,27 @@ "keywords": [

"devDependencies": {
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"eslint": "^3.16.0",
"eslint-config-airbnb-base": "^11.1.0",
"eslint-plugin-import": "^2.2.0",
"jest": "^19.0.0"
"husky": "^0.13.1",
"jest": "^19.0.0",
"semantic-release": "^6.3.2",
"validate-commit-msg": "^2.11.1"
},
"jest": {
"coverageThreshold": {
"global": {
"branches": 75,
"functions": 75,
"lines": 75,
"statements": 75
}
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}

2

src/index.js

@@ -12,3 +12,3 @@ function getBaseClass(block, element) {

const modifierFn = addModifier.bind(null, baseClass);
return [baseClass].concat(modifiers.map(modifierFn));
return [baseClass].concat(modifiers.map(modifierFn)).filter(c => c);
}

@@ -15,0 +15,0 @@

@@ -15,2 +15,6 @@ const bemmit = require('./index');

});
test('ignores empty modifier strings', () => {
expect(bemmit('foo')(null, ['', null, 'bar'])).toEqual('foo foo--bar');
});
});

@@ -17,0 +21,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc