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

@stylable/module-utils

Package Overview
Dependencies
Maintainers
6
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/module-utils - npm Package Compare versions

Comparing version 5.6.1 to 5.7.0

14

dist/generate-dts-sourcemaps.js

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

const path_1 = require("path");
const features_1 = require("@stylable/core/dist/features");
const process_declaration_functions_1 = require("@stylable/core/dist/process-declaration-functions");
const index_internal_1 = require("@stylable/core/dist/index-internal");
const index_internal_2 = require("@stylable/core/dist/index-internal");
const vlq_1 = require("vlq");

@@ -27,3 +27,3 @@ const dts_rough_tokenizer_1 = require("./dts-rough-tokenizer");

function getVarsSrcPosition(varName, meta) {
const cssVar = features_1.STSymbol.get(meta, `--${varName}`, `cssVar`);
const cssVar = index_internal_1.STSymbol.get(meta, `--${varName}`, `cssVar`);
let res;

@@ -64,3 +64,3 @@ if (cssVar) {

else {
(0, process_declaration_functions_1.processDeclarationFunctions)(decl, (node, level) => {
(0, index_internal_2.processDeclarationFunctions)(decl, (node, level) => {
var _a, _b;

@@ -91,3 +91,3 @@ if (node.type === 'item' && node.name === varName) {

function getKeyframeSrcPosition(keyframeName, meta) {
const keyframe = features_1.CSSKeyframes.getKeyframesStatements(meta).find((keyframe) => keyframe.params === keyframeName);
const keyframe = index_internal_1.CSSKeyframes.getKeyframesStatements(meta).find((keyframe) => keyframe.params === keyframeName);
if (keyframe && keyframe.source && keyframe.source.start) {

@@ -102,3 +102,3 @@ return {

function getLayersSrcPosition(layerName, meta) {
const definitionNode = features_1.CSSLayer.getDefinition(meta, layerName);
const definitionNode = index_internal_1.CSSLayer.getDefinition(meta, layerName);
if (definitionNode && definitionNode.source && definitionNode.source.start) {

@@ -113,3 +113,3 @@ return {

function getContainersSrcPosition(containerName, meta) {
const definitionNode = features_1.CSSContains.getDefinition(meta, containerName);
const definitionNode = index_internal_1.CSSContains.getDefinition(meta, containerName);
if (definitionNode && definitionNode.source && definitionNode.source.start) {

@@ -116,0 +116,0 @@ return {

{
"name": "@stylable/module-utils",
"version": "5.6.1",
"version": "5.7.0",
"description": "Stylable module creation utilities",

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

"dependencies": {
"@stylable/core": "^5.6.1",
"@stylable/core": "^5.7.0",
"@tokey/core": "^1.3.0",

@@ -13,0 +13,0 @@ "vlq": "^2.0.4"

import { basename } from 'path';
import type { ClassSymbol, StylableMeta } from '@stylable/core';
import { STSymbol, CSSKeyframes, CSSLayer, CSSContains } from '@stylable/core/dist/features';
import { processDeclarationFunctions } from '@stylable/core/dist/process-declaration-functions';
import { STSymbol, CSSKeyframes, CSSLayer, CSSContains } from '@stylable/core/dist/index-internal';
import { processDeclarationFunctions } from '@stylable/core/dist/index-internal';
import { encode } from 'vlq';

@@ -6,0 +6,0 @@ import {

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