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

@stylable/build-tools

Package Overview
Dependencies
Maintainers
6
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/build-tools - npm Package Compare versions

Comparing version 5.3.0 to 5.3.1-rc.1

2

dist/calc-depth.d.ts

@@ -8,3 +8,3 @@ export interface CalcDepthContext<T> {

export declare function calcDepth<T>(module: T, context: CalcDepthContext<T>, path?: T[], cache?: Map<T, number>): number;
export declare function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>): T | undefined;
export declare function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>, force?: boolean): T | undefined;
//# sourceMappingURL=calc-depth.d.ts.map

@@ -29,4 +29,4 @@ "use strict";

exports.calcDepth = calcDepth;
function getCSSViewModule(module, context) {
if (context.isStylableModule(module)) {
function getCSSViewModule(module, context, force = false) {
if (context.isStylableModule(module) || force) {
const parentViewsList = [];

@@ -37,3 +37,4 @@ const viewPath = context.getModulePathNoExt(module);

context.getModulePathNoExt(importer) === viewPath) {
parentViewsList.push(importer);
const redirectedView = getCSSViewModule(importer, context, true);
parentViewsList.push(redirectedView || importer);
}

@@ -40,0 +41,0 @@ }

{
"name": "@stylable/build-tools",
"version": "5.3.0",
"version": "5.3.1-rc.1",
"description": "Collection of helper functions for Stylable based tooling.",

@@ -10,3 +10,3 @@ "main": "dist/index.js",

"dependencies": {
"@stylable/core": "^5.3.0",
"@stylable/core": "^5.3.1-rc.1",
"find-config": "^1.0.0"

@@ -13,0 +13,0 @@ },

@@ -45,4 +45,4 @@ export interface CalcDepthContext<T> {

export function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>) {
if (context.isStylableModule(module)) {
export function getCSSViewModule<T>(module: T, context: CalcDepthContext<T>, force = false) {
if (context.isStylableModule(module) || force) {
const parentViewsList: T[] = [];

@@ -55,3 +55,4 @@ const viewPath = context.getModulePathNoExt(module);

) {
parentViewsList.push(importer);
const redirectedView = getCSSViewModule(importer, context, true);
parentViewsList.push(redirectedView || importer);
}

@@ -58,0 +59,0 @@ }

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