Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylable/core

Package Overview
Dependencies
Maintainers
6
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/core - npm Package Compare versions

Comparing version 3.11.1 to 3.11.2

2

cjs/create-infra-structure.d.ts

@@ -9,3 +9,3 @@ import { FileProcessor, MinimalFS } from './cached-process-file';

}
export declare function createInfrastructure(projectRoot: string, fileSystem: MinimalFS, onProcess?: (meta: StylableMeta, path: string) => StylableMeta, resolveOptions?: any, resolveNamespace?: typeof processNamespace, timedCacheOptions?: Omit<TimedCacheOptions, 'createKey'>, resolveModule?: import("./types").ModuleResolver, diagnostics?: Diagnostics): StylableInfrastructure;
export declare function createInfrastructure(projectRoot: string, fileSystem: MinimalFS, onProcess?: (meta: StylableMeta, path: string) => StylableMeta, resolveOptions?: any, resolveNamespace?: typeof processNamespace, timedCacheOptions?: Omit<TimedCacheOptions, 'createKey'>, resolveModule?: import("./types").ModuleResolver, createDiagnostics?: (from: string) => Diagnostics): StylableInfrastructure;
//# sourceMappingURL=create-infra-structure.d.ts.map

@@ -13,4 +13,3 @@ "use strict";

const module_resolver_1 = require("./module-resolver");
const diagnostics_1 = require("./diagnostics");
function createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions = {}, resolveNamespace, timedCacheOptions, resolveModule = module_resolver_1.createDefaultResolver(fileSystem, resolveOptions), diagnostics = new diagnostics_1.Diagnostics()) {
function createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions = {}, resolveNamespace, timedCacheOptions, resolveModule = module_resolver_1.createDefaultResolver(fileSystem, resolveOptions), createDiagnostics) {
let resolvePath = (context = projectRoot, moduleId) => {

@@ -30,3 +29,4 @@ if (!path_1.default.isAbsolute(moduleId) && !moduleId.startsWith('.')) {

const fileProcessor = cached_process_file_1.cachedProcessFile((from, content) => {
return stylable_processor_1.process(parser_1.safeParse(content, { from: resolvePath(projectRoot, from) }), diagnostics, resolveNamespace);
const resolvedFrom = resolvePath(projectRoot, from);
return stylable_processor_1.process(parser_1.safeParse(content, { from: resolvedFrom }), createDiagnostics === null || createDiagnostics === void 0 ? void 0 : createDiagnostics(resolvedFrom), resolveNamespace);
}, {

@@ -33,0 +33,0 @@ readFileSync(resolvedPath) {

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

MISSING_SCOPING_PARAM() {
return '"@st-scope" must receive a simple selector or stylesheet "root" as its scoping parameter';
return '"@st-scope" missing scoping selector parameter';
},

@@ -122,0 +122,0 @@ ILLEGAL_GLOBAL_CSS_VAR(name) {

{
"name": "@stylable/core",
"version": "3.11.1",
"version": "3.11.2",
"description": "CSS for Components",

@@ -23,6 +23,6 @@ "main": "./cjs/index.js",

"murmurhash": "^1.0.0",
"postcss": "^8.0.8",
"postcss-js": "^3.0.0",
"postcss-nested": "^5.0.0",
"postcss-safe-parser": "^5.0.1",
"postcss": "^8.1.1",
"postcss-js": "^3.0.1",
"postcss-nested": "^5.0.1",
"postcss-safe-parser": "^5.0.2",
"postcss-selector-matches": "^4.0.0",

@@ -29,0 +29,0 @@ "postcss-value-parser": "^4.1.0"

@@ -22,3 +22,3 @@ import path from 'path';

resolveModule = createDefaultResolver(fileSystem, resolveOptions),
diagnostics = new Diagnostics()
createDiagnostics?: (from: string) => Diagnostics
): StylableInfrastructure {

@@ -42,5 +42,6 @@ let resolvePath = (context: string | undefined = projectRoot, moduleId: string) => {

(from, content) => {
const resolvedFrom = resolvePath(projectRoot, from);
return process(
safeParse(content, { from: resolvePath(projectRoot, from) }),
diagnostics,
safeParse(content, { from: resolvedFrom }),
createDiagnostics?.(resolvedFrom),
resolveNamespace

@@ -47,0 +48,0 @@ );

@@ -123,3 +123,3 @@ import hash from 'murmurhash';

MISSING_SCOPING_PARAM() {
return '"@st-scope" must receive a simple selector or stylesheet "root" as its scoping parameter';
return '"@st-scope" missing scoping selector parameter';
},

@@ -126,0 +126,0 @@ ILLEGAL_GLOBAL_CSS_VAR(name: string) {

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

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