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 2.2.7-alpha.1 to 2.3.0

6

cjs/module-factory.js

@@ -16,6 +16,4 @@ "use strict";

var stylable = core_1.Stylable.create(stylableOptions);
if (legacyRuntime) {
if (runtimePath === '@stylable/runtime') {
runtimePath = '@stylable/runtime/cjs/index-legacy';
}
if (legacyRuntime && runtimePath === '@stylable/runtime') {
runtimePath = '@stylable/runtime/cjs/index-legacy';
afterModule += 'module.exports.default = module.exports;';

@@ -22,0 +20,0 @@ }

{
"name": "@stylable/module-utils",
"version": "2.2.7-alpha.1",
"version": "2.3.0",
"description": "Stylable module creation utilities",

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

"dependencies": {
"@stylable/core": "^2.1.5-alpha.0"
"@stylable/core": "^2.3.0"
},

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

"license": "BSD-3-Clause",
"gitHead": "c3d5e0f774b96b5cc7115bab6cb398a654634feb"
"gitHead": "e727713590e91a31858220a134710cce9e2051b7"
}

@@ -26,10 +26,6 @@ import { Stylable, StylableConfig } from '@stylable/core';

const stylable = Stylable.create(stylableOptions);
if (legacyRuntime) {
if (runtimePath === '@stylable/runtime') {
runtimePath = '@stylable/runtime/cjs/index-legacy';
}
if (legacyRuntime && runtimePath === '@stylable/runtime') {
runtimePath = '@stylable/runtime/cjs/index-legacy';
afterModule += 'module.exports.default = module.exports;'
}
return function stylableToModule(source: string, path: string) {

@@ -36,0 +32,0 @@ const res = stylable.transform(source, path);

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