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

bem-naming

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bem-naming - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

27

CHANGELOG.md
Changelog
=========
1.0.1
-----
## Bug fixes
- Functions not working without context ([#91]).
**Example:**
```js
var stringifyEntity = require('bem-naming').stringify;
stringifyEntity({ block: 'button', modName: 'size', modVal: 's' });
// Uncaught TypeError: Cannot read property 'modDelim' of undefined
```
[#91]: https://github.com/bem/bem-naming/issues/91
### Commits
* [[`ff861f691e`](https://github.com/Andrew Abramov <mail@blond.im>/bem-naming/commit/ff861f691e)] - **fix**: functions should working without context (blond)
* [[`d5b735f2a4`](https://github.com/Andrew Abramov <mail@blond.im>/bem-naming/commit/d5b735f2a4)] - **test**: use functions without context (blond)
* [[`12909e709b`](https://github.com/Andrew Abramov <mail@blond.im>/bem-naming/commit/12909e709b)] - chore(package): update eslint to version 2.5.3 (greenkeeperio-bot)
* [[`ff8f65fc1a`](https://github.com/Andrew Abramov <mail@blond.im>/bem-naming/commit/ff8f65fc1a)] - chore(package): update eslint to version 2.5.2 (greenkeeperio-bot)
1.0.0

@@ -5,0 +32,0 @@ -----

6

index.js

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

if (obj.elem) {
res += this.elemDelim + obj.elem;
res += delims.elem + obj.elem;
}

@@ -134,7 +134,7 @@

if (modVal || modVal === 0 || !obj.hasOwnProperty('modVal')) {
res += this.modDelim + obj.modName;
res += delims.mod.name + obj.modName;
}
if (modVal && modVal !== true) {
res += this.modValDelim + modVal;
res += delims.mod.val + modVal;
}

@@ -141,0 +141,0 @@ }

{
"name": "bem-naming",
"version": "1.0.0",
"version": "1.0.1",
"description": "Manage naming of BEM entities",

@@ -25,3 +25,3 @@ "license": "MPL-2.0",

"coveralls": "2.11.9",
"eslint": "2.5.1",
"eslint": "2.5.3",
"eslint-config-pedant": "0.1.1",

@@ -28,0 +28,0 @@ "jscs": "2.11.0",

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