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

@stylable/core

Package Overview
Dependencies
Maintainers
5
Versions
218
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylable/core - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

6

cjs/create-infra-structure.js

@@ -6,3 +6,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const enhanced_resolve_1 = require("enhanced-resolve");
const path_1 = __importDefault(require("path"));

@@ -13,4 +12,7 @@ const cached_process_file_1 = require("./cached-process-file");

const timed_cache_1 = require("./timed-cache");
// importing the factory directly, as we feed it our own fs, and don't want graceful-fs to be implicitly imported
// this allows @stylable/core to be bundled for browser usage without special custom configuration
const ResolverFactory = require('enhanced-resolve/lib/ResolverFactory');
function createInfrastructure(projectRoot, fileSystem, onProcess, resolveOptions = {}, resolveNamespace, timedCacheOptions) {
const eResolver = enhanced_resolve_1.ResolverFactory.createResolver(Object.assign({ useSyncFileSystemCalls: true, fileSystem }, resolveOptions));
const eResolver = ResolverFactory.createResolver(Object.assign({ useSyncFileSystemCalls: true, fileSystem }, resolveOptions));
let resolvePath = (context = projectRoot, moduleId) => {

@@ -17,0 +19,0 @@ if (!path_1.default.isAbsolute(moduleId) && moduleId.charAt(0) !== '.') {

{
"name": "@stylable/core",
"version": "2.5.0",
"version": "2.5.1",
"description": "CSS for Components",

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

"license": "BSD-3-Clause",
"gitHead": "9d3151697859778eb3c2fa08a11566819e8d4929"
"gitHead": "e16709344319d8a21264d9e0b48419b9965d112e"
}

@@ -1,2 +0,1 @@

import { ResolverFactory } from 'enhanced-resolve';
import path from 'path';

@@ -8,2 +7,6 @@ import { cachedProcessFile, FileProcessor, MinimalFS } from './cached-process-file';

// importing the factory directly, as we feed it our own fs, and don't want graceful-fs to be implicitly imported
// this allows @stylable/core to be bundled for browser usage without special custom configuration
const ResolverFactory = require('enhanced-resolve/lib/ResolverFactory') as typeof import('enhanced-resolve').ResolverFactory;
export interface StylableInfrastructure {

@@ -10,0 +13,0 @@ fileProcessor: FileProcessor<StylableMeta>;

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