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 4.12.0 to 4.13.0

5

dist/load-stylable-config.d.ts

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

export declare function loadStylableConfig<T>(context: string, extract: (config: any) => T): T | undefined;
export declare function loadStylableConfig<T>(context: string, extract: (config: any) => T): {
path: string;
config: T;
} | undefined;
//# sourceMappingURL=load-stylable-config.d.ts.map

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

}
return extract(config);
return {
path,
config: extract(config),
};
}

@@ -24,0 +27,0 @@ return undefined;

4

package.json
{
"name": "@stylable/build-tools",
"version": "4.12.0",
"version": "4.13.0",
"description": "Collection of helper functions for Stylable based tooling.",

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

"dependencies": {
"@stylable/core": "^4.12.0",
"@stylable/core": "^4.13.0",
"find-config": "^1.0.0"

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

import findConfig from 'find-config';
export function loadStylableConfig<T>(context: string, extract: (config: any) => T): T | undefined {
export function loadStylableConfig<T>(
context: string,
extract: (config: any) => T
): { path: string; config: T } | undefined {
const path = findConfig('stylable.config.js', { cwd: context });

@@ -19,5 +22,8 @@ let config;

}
return extract(config);
return {
path,
config: extract(config),
};
}
return undefined;
}

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