@stylable/core
Advanced tools
Comparing version 4.2.1 to 4.2.2
@@ -326,3 +326,3 @@ "use strict"; | ||
handleChunkNode(context) { | ||
const { currentAnchor, metaParts, node, originMeta, transformGlobals, } = context; | ||
const { currentAnchor, metaParts, node, originMeta, transformGlobals } = context; | ||
const { type, name } = node; | ||
@@ -329,0 +329,0 @@ if (type === 'class') { |
{ | ||
"name": "@stylable/core", | ||
"version": "4.2.1", | ||
"version": "4.2.2", | ||
"description": "CSS for Components", | ||
@@ -13,3 +13,3 @@ "main": "dist/index.js", | ||
"deindent": "^0.1.0", | ||
"enhanced-resolve": "^5.8.0", | ||
"enhanced-resolve": "^5.8.2", | ||
"is-vendor-prefixed": "^4.0.0", | ||
@@ -19,3 +19,3 @@ "jest-docblock": "^26.0.0", | ||
"lodash.clonedeepwith": "^4.5.0", | ||
"postcss": "^8.2.13", | ||
"postcss": "^8.2.15", | ||
"postcss-js": "^3.0.3", | ||
@@ -22,0 +22,0 @@ "postcss-nested": "^5.0.5", |
@@ -136,5 +136,3 @@ import cloneDeepWith from 'lodash.clonedeepwith'; | ||
getValue: (v: Value, key: string) => string | Box<string, unknown>; | ||
flattenValue?: ( | ||
v: Box<string, Value> | ||
) => { | ||
flattenValue?: (v: Box<string, Value>) => { | ||
parts: Array<string | Box<string, unknown>>; | ||
@@ -141,0 +139,0 @@ delimiter: ',' | ' '; |
@@ -496,9 +496,4 @@ import { basename } from 'path'; | ||
private handleChunkNode(context: ScopeContext) { | ||
const { | ||
currentAnchor, | ||
metaParts, | ||
node, | ||
originMeta, | ||
transformGlobals, | ||
} = context as Required<ScopeContext>; | ||
const { currentAnchor, metaParts, node, originMeta, transformGlobals } = | ||
context as Required<ScopeContext>; | ||
const { type, name } = node; | ||
@@ -728,6 +723,4 @@ if (type === 'class') { | ||
if (!metaParts) { | ||
const resolvedClasses: Record< | ||
string, | ||
Array<CSSResolve<ClassSymbol | ElementSymbol>> | ||
> = {}; | ||
const resolvedClasses: Record<string, Array<CSSResolve<ClassSymbol | ElementSymbol>>> = | ||
{}; | ||
for (const className of Object.keys(meta.classes)) { | ||
@@ -779,6 +772,4 @@ resolvedClasses[className] = this.resolver.resolveExtends( | ||
const resolvedElements: Record< | ||
string, | ||
Array<CSSResolve<ClassSymbol | ElementSymbol>> | ||
> = {}; | ||
const resolvedElements: Record<string, Array<CSSResolve<ClassSymbol | ElementSymbol>>> = | ||
{}; | ||
for (const k of Object.keys(meta.elements)) { | ||
@@ -866,5 +857,7 @@ resolvedElements[k] = this.resolver.resolveExtends(meta, k, true); | ||
function anyElementAnchor( | ||
meta: StylableMeta | ||
): { type: 'class' | 'element'; name: string; resolved: Array<CSSResolve<ElementSymbol>> } { | ||
function anyElementAnchor(meta: StylableMeta): { | ||
type: 'class' | 'element'; | ||
name: string; | ||
resolved: Array<CSSResolve<ElementSymbol>>; | ||
} { | ||
return { | ||
@@ -871,0 +864,0 @@ type: 'element', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
691874
11911
Updatedenhanced-resolve@^5.8.2
Updatedpostcss@^8.2.15