bem-naming
Advanced tools
Comparing version 1.0.0 to 1.0.1
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 @@ ----- |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49892
0