@bem-react/classname
Advanced tools
Comparing version 1.5.12 to 1.5.13-dev.19
@@ -41,2 +41,3 @@ 'use strict'; | ||
if (mix !== undefined) { | ||
mix = Array.isArray(mix) ? mix : [mix]; | ||
for (var i = 0, len = mix.length; i < len; i++) { | ||
@@ -61,3 +62,3 @@ var value = mix[i]; | ||
if (typeof elemOrMods === 'string') { | ||
if (Array.isArray(elemModsOrBlockMix)) { | ||
if (typeof elemModsOrBlockMix === 'string' || Array.isArray(elemModsOrBlockMix)) { | ||
return stringify(b, elemOrMods, undefined, elemModsOrBlockMix); | ||
@@ -64,0 +65,0 @@ } |
@@ -1,1 +0,1 @@ | ||
'use strict';function r(r){function e(e,i,a,o){var f=i?t+e+r.e+i:t+e,v=f;if(a){var u=' '+v+r.m;for(var s in a)if(a.hasOwnProperty(s)){var p=a[s];!0===p?v+=u+s:p&&(v+=u+s+n+p)}}if(void 0!==o)for(var c=0,l=o.length;c<l;c++){var y=o[c];if(y&&'string'==typeof y.valueOf())for(var g=y.valueOf().split(' '),d=0;d<g.length;d++){var h=g[d];h!==f&&(v+=' '+h)}}return v}var t=r.n||'',n=r.v||r.m;return function(r,t){return function(n,i,a){return'string'==typeof n?Array.isArray(i)?e(r,n,void 0,i):e(r,n,i,a):e(r,t,n,i)}}}Object.defineProperty(exports,'__esModule',{value:!0});var e=r({e:'-',m:'_'});exports.cn=e,exports.withNaming=r; | ||
'use strict';function r(r){function t(t,i,a,o){var f=i?e+t+r.e+i:e+t,v=f;if(a){var s=' '+v+r.m;for(var u in a)if(a.hasOwnProperty(u)){var p=a[u];!0===p?v+=s+u:p&&(v+=s+u+n+p)}}if(void 0!==o)for(var y=0,c=(o=Array.isArray(o)?o:[o]).length;y<c;y++){var l=o[y];if(l&&'string'==typeof l.valueOf())for(var g=l.valueOf().split(' '),d=0;d<g.length;d++){var h=g[d];h!==f&&(v+=' '+h)}}return v}var e=r.n||'',n=r.v||r.m;return function(r,e){return function(n,i,a){return'string'==typeof n?'string'==typeof i||Array.isArray(i)?t(r,n,void 0,i):t(r,n,i,a):t(r,e,n,i)}}}Object.defineProperty(exports,'__esModule',{value:!0});var t=r({e:'-',m:'_'});exports.cn=t,exports.withNaming=r; |
/** | ||
* List of classname. | ||
*/ | ||
export declare type ClassNameList = Array<string | undefined>; | ||
export type ClassNameList = string | Array<string | undefined>; | ||
/** | ||
@@ -10,7 +10,7 @@ * Allowed modifiers format. | ||
*/ | ||
export declare type NoStrictEntityMods = Record<string, string | boolean | number | undefined>; | ||
export type NoStrictEntityMods = Record<string, string | boolean | number | undefined>; | ||
/** | ||
* BEM Entity className initializer. | ||
*/ | ||
export declare type ClassNameInitilizer = (blockName: string, elemName?: string) => ClassNameFormatter; | ||
export type ClassNameInitilizer = (blockName: string, elemName?: string) => ClassNameFormatter; | ||
/** | ||
@@ -28,3 +28,3 @@ * BEM Entity className formatter. | ||
*/ | ||
export declare type Preset = { | ||
export type Preset = { | ||
/** | ||
@@ -31,0 +31,0 @@ * Global namespace. |
{ | ||
"name": "@bem-react/classname", | ||
"version": "1.5.12", | ||
"version": "1.5.13-dev.19+c1c9731", | ||
"description": "BEM React ClassName", | ||
@@ -29,3 +29,3 @@ "homepage": "https://github.com/bem/bem-react/tree/master/packages/classname", | ||
}, | ||
"gitHead": "95cb27909cc232d3676b4d010b5b9b8cf171e8e3" | ||
"gitHead": "c1c97312b80d24da88eafffd8e7c235887d65bd6" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
35483
191
1
2