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

@stylable/build-tools

Package Overview
Dependencies
Maintainers
7
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.0.0-rc.4 to 5.0.0-rc.5

8

dist/has-imported-side-effects.js

@@ -5,6 +5,10 @@ "use strict";

function hasImportedSideEffects(stylable, meta, imported) {
//keyframes
if (Object.keys(imported.keyframes).length) {
// direct import usage
const { keyframes, layer } = imported.typed;
if (keyframes && Object.keys(keyframes).length) {
return true;
}
if (layer && Object.keys(layer).length) {
return true;
}
//compose usage

@@ -11,0 +15,0 @@ for (const localSymbol of Object.values(meta.getAllClasses())) {

{
"name": "@stylable/build-tools",
"version": "5.0.0-rc.4",
"version": "5.0.0-rc.5",
"description": "Collection of helper functions for Stylable based tooling.",

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

"dependencies": {
"@stylable/core": "5.0.0-rc.4",
"@stylable/core": "5.0.0-rc.5",
"find-config": "^1.0.0"

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

import type { Imported, Stylable, StylableMeta } from '@stylable/core';
export function hasImportedSideEffects(stylable: Stylable, meta: StylableMeta, imported: Imported) {
//keyframes
if (Object.keys(imported.keyframes).length) {
// direct import usage
const { keyframes, layer } = imported.typed;
if (keyframes && Object.keys(keyframes).length) {
return true;
}
if (layer && Object.keys(layer).length) {
return true;
}

@@ -9,0 +13,0 @@ //compose usage

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