@stylable/core
Advanced tools
Comparing version 5.10.0 to 5.11.0
@@ -5,2 +5,3 @@ import type * as postcss from 'postcss'; | ||
import type { PlugableRecord } from './helpers/plugable-record'; | ||
import type { StylableExports } from './stylable-transformer'; | ||
import { STImport, STVar, CSSClass, CSSType, CSSCustomProperty, CSSKeyframes, CSSLayer, CSSContains } from './features'; | ||
@@ -10,2 +11,3 @@ export declare class StylableMeta { | ||
diagnostics: Diagnostics; | ||
exports?: StylableExports; | ||
data: PlugableRecord; | ||
@@ -12,0 +14,0 @@ root: string; |
@@ -68,3 +68,3 @@ import type { FileProcessor } from './cached-process-file'; | ||
constructor(fileProcessor: FileProcessor<StylableMeta>, requireModule: (resolvedPath: string) => any, moduleResolver: ModuleResolver, cache?: StylableResolverCache | undefined); | ||
getModule({ context, request }: Imported): CachedModuleEntity; | ||
getModule({ context, request, }: Pick<Imported, 'context' | 'request'>): CachedModuleEntity; | ||
analyze(filePath: string): StylableMeta; | ||
@@ -71,0 +71,0 @@ resolvePath(directoryPath: string, request: string): string; |
@@ -21,3 +21,3 @@ "use strict"; | ||
} | ||
getModule({ context, request }) { | ||
getModule({ context, request, }) { | ||
let entity; | ||
@@ -24,0 +24,0 @@ let resolvedPath; |
@@ -68,3 +68,3 @@ "use strict"; | ||
transform(meta) { | ||
const metaExports = { | ||
meta.exports = { | ||
classes: {}, | ||
@@ -91,5 +91,5 @@ vars: {}, | ||
} | ||
this.transformAst(meta.targetAst, meta, metaExports); | ||
this.transformAst(meta.targetAst, meta, meta.exports); | ||
meta.transformDiagnostics = this.diagnostics; | ||
const result = { meta, exports: metaExports }; | ||
const result = { meta, exports: meta.exports }; | ||
return this.postProcessor ? this.postProcessor(result, this) : result; | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"name": "@stylable/core", | ||
"version": "5.10.0", | ||
"version": "5.11.0", | ||
"description": "CSS for Components", | ||
@@ -18,7 +18,7 @@ "main": "dist/index.js", | ||
"cssesc": "^3.0.0", | ||
"enhanced-resolve": "^5.12.0", | ||
"enhanced-resolve": "^5.13.0", | ||
"is-vendor-prefixed": "^4.0.0", | ||
"lodash.clonedeep": "^4.5.0", | ||
"lodash.clonedeepwith": "^4.5.0", | ||
"postcss": "^8.4.22", | ||
"postcss": "^8.4.23", | ||
"postcss-js": "^4.0.1", | ||
@@ -25,0 +25,0 @@ "postcss-nested": "^6.0.1", |
@@ -6,2 +6,3 @@ import type * as postcss from 'postcss'; | ||
import type { PlugableRecord } from './helpers/plugable-record'; | ||
import type { StylableExports } from './stylable-transformer'; | ||
import { getSourcePath } from './stylable-utils'; | ||
@@ -49,2 +50,3 @@ import { | ||
export class StylableMeta { | ||
public exports?: StylableExports; | ||
public data: PlugableRecord = {}; | ||
@@ -51,0 +53,0 @@ public root = ''; |
@@ -122,3 +122,6 @@ import type { FileProcessor } from './cached-process-file'; | ||
) {} | ||
public getModule({ context, request }: Imported): CachedModuleEntity { | ||
public getModule({ | ||
context, | ||
request, | ||
}: Pick<Imported, 'context' | 'request'>): CachedModuleEntity { | ||
let entity: CachedModuleEntity; | ||
@@ -125,0 +128,0 @@ let resolvedPath: string | undefined; |
@@ -161,3 +161,3 @@ import isVendorPrefixed from 'is-vendor-prefixed'; | ||
public transform(meta: StylableMeta): StylableResults { | ||
const metaExports: StylableExports = { | ||
meta.exports = { | ||
classes: {}, | ||
@@ -184,5 +184,5 @@ vars: {}, | ||
} | ||
this.transformAst(meta.targetAst, meta, metaExports); | ||
this.transformAst(meta.targetAst, meta, meta.exports); | ||
meta.transformDiagnostics = this.diagnostics; | ||
const result = { meta, exports: metaExports }; | ||
const result = { meta, exports: meta.exports }; | ||
@@ -189,0 +189,0 @@ return this.postProcessor ? this.postProcessor(result, this) : result; |
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
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
1290691
23236
Updatedenhanced-resolve@^5.13.0
Updatedpostcss@^8.4.23