New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esifycss

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esifycss - npm Package Compare versions

Comparing version 1.2.7 to 1.2.8

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.2.8"></a>
## [1.2.8](https://github.com/kei-ito/esify/compare/v1.2.7...v1.2.8) (2019-06-22)
### Bug Fixes
* class → className ([9d3b3c1](https://github.com/kei-ito/esify/commit/9d3b3c1))
<a name="1.2.7"></a>

@@ -2,0 +12,0 @@ ## [1.2.7](https://github.com/kei-ito/esify/compare/v1.2.6...v1.2.7) (2019-06-21)

2

lib/postcssPlugin/mangleIdentifiers.d.ts

@@ -11,3 +11,3 @@ import * as postcss from 'postcss';

id: import("./types").IIdentifierMap;
class: import("./types").IIdentifierMap;
className: import("./types").IIdentifierMap;
}>;

@@ -8,3 +8,3 @@ "use strict";

id: {},
class: {},
className: {},
};

@@ -29,3 +29,4 @@ const parser = selectorParser((selectors) => {

}
selector.value = result[selector.type][before] = after;
const type = selector.type === 'id' ? 'id' : 'className';
selector.value = result[type][before] = after;
}

@@ -32,0 +33,0 @@ }

@@ -37,7 +37,7 @@ "use strict";

const identifiers = [
mapA.class.foo,
mapA.className.foo,
mapA.id.bar1,
mapA.id.bar2,
mapA.keyframes.aaa,
mapB.class.foo,
mapB.className.foo,
mapB.id.bar,

@@ -63,3 +63,3 @@ mapB.keyframes.aaa,

t.is(node.type, 'rule');
t.is(node.selector, `.${mapA.class.foo}:first-child[data-hello=abc]`);
t.is(node.selector, `.${mapA.className.foo}:first-child[data-hello=abc]`);
{

@@ -84,3 +84,3 @@ const declaration = getFirstDeclaration(node);

t.is(node.type, 'rule');
t.is(node.selector, `.${mapB.class.foo}>.foo`);
t.is(node.selector, `.${mapB.className.foo}>.foo`);
{

@@ -111,3 +111,3 @@ const declaration = getFirstDeclaration(node);

t.is(node.type, 'rule');
t.is(node.selector, `.${mapB.class.foo}`);
t.is(node.selector, `.${mapB.className.foo}`);
{

@@ -114,0 +114,0 @@ const declaration = getFirstDeclaration(node);

@@ -15,3 +15,3 @@ "use strict";

return {
class: filter(maps.class),
className: filter(maps.className),
id: filter(maps.id),

@@ -18,0 +18,0 @@ keyframes: filter(maps.keyframes),

@@ -19,3 +19,3 @@ import { IIdentifier } from '../util/createIdentifier';

export interface IEsifyCSSResult {
class: IIdentifierMap;
className: IIdentifierMap;
id: IIdentifierMap;

@@ -22,0 +22,0 @@ keyframes: IIdentifierMap;

@@ -6,3 +6,3 @@ "use strict";

const pluginResult = {
class: {},
className: {},
id: {},

@@ -14,3 +14,3 @@ keyframes: {},

const result = JSON.parse(warning.text);
Object.assign(pluginResult.class, result.class);
Object.assign(pluginResult.className, result.className);
Object.assign(pluginResult.id, result.id);

@@ -17,0 +17,0 @@ Object.assign(pluginResult.keyframes, result.keyframes);

@@ -14,3 +14,3 @@ "use strict";

`addStyle([${(postcssRoot.nodes || []).map((node) => `/* begin(css) */${JSON.stringify(node.toString())}/* end(css) */`).join(',')}]);`,
`export const className = ${JSON.stringify(esifycssResult.class, null, 4)};`,
`export const className = ${JSON.stringify(esifycssResult.className, null, 4)};`,
`export const id = ${JSON.stringify(esifycssResult.id, null, 4)};`,

@@ -17,0 +17,0 @@ `export const keyframes = ${JSON.stringify(esifycssResult.keyframes, null, 4)};`,

{
"name": "esifycss",
"version": "1.2.7",
"version": "1.2.8",
"description": "Generates .js or .ts exports class names and custom properties",

@@ -5,0 +5,0 @@ "author": {

@@ -219,3 +219,3 @@ # EsifyCSS

// → {
// class: {bar: '_1'},
// className: {bar: '_1'},
// id: {foo: '_0'},

@@ -222,0 +222,0 @@ // keyframes: {aaa: '_2'},

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