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

@stylable/module-utils

Package Overview
Dependencies
Maintainers
5
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 3.3.0 to 3.3.2-rc.1

7

cjs/module-source.js

@@ -31,2 +31,5 @@ "use strict";

}
const cssString = includeCSSInJS
? JSON.stringify(stylableResult.meta.outputAst.toString())
: '""';
switch (moduleFormat) {

@@ -40,3 +43,3 @@ case 'dts':

`import { $, ${importKey} } from ${JSON.stringify(runtimeRequest)}`
], `$`, `create`, `createRenderable`, includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst.toString()) : '""', depth, 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $
], `$`, `create`, `createRenderable`, cssString, depth, 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $
[

@@ -51,3 +54,3 @@ `export { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css };`,

`const runtime = require(${JSON.stringify(runtimeRequest)})`
], `runtime.$`, `runtime.create`, `runtime.createRenderable`, includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst.toString()) : '""', depth, 'module.exports', afterModule.join('\n'), renderableOnly);
], `runtime.$`, `runtime.create`, `runtime.createRenderable`, cssString, depth, 'module.exports', afterModule.join('\n'), renderableOnly);
}

@@ -54,0 +57,0 @@ throw new Error('Unknown module format ' + moduleFormat);

{
"name": "@stylable/module-utils",
"version": "3.3.0",
"version": "3.3.2-rc.1",
"description": "Stylable module creation utilities",

@@ -14,3 +14,3 @@ "main": "cjs/index.js",

"dependencies": {
"@stylable/core": "^3.3.0"
"@stylable/core": "^3.3.2-rc.1"
},

@@ -30,3 +30,3 @@ "files": [

"license": "BSD-3-Clause",
"gitHead": "a84e57e76b8a1fd81d8ce5f0ffb3a3e2f3cb66e6"
"gitHead": "1262e65a7151abeb401911cd9a5d25cff13eb536"
}

@@ -54,3 +54,6 @@ import { StylableResults } from '@stylable/core';

}
const cssString = includeCSSInJS
? JSON.stringify(stylableResult.meta.outputAst!.toString())
: '""';
switch (moduleFormat) {

@@ -71,3 +74,3 @@ case 'dts':

`createRenderable`,
includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst!.toString()) : '""',
cssString,
depth,

@@ -93,3 +96,3 @@ 'const { classes, keyframes, vars, stVars, cssStates, style, st, $depth, $id, $css }', // = $

`runtime.createRenderable`,
includeCSSInJS ? JSON.stringify(stylableResult.meta.outputAst!.toString()) : '""',
cssString,
depth,

@@ -96,0 +99,0 @@ 'module.exports',

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