New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pandacss/postcss

Package Overview
Dependencies
Maintainers
0
Versions
710
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pandacss/postcss - npm Package Compare versions

Comparing version 0.0.0-dev-20241018171117 to 0.0.0-dev-20241022220846

4

dist/index.d.ts

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

import { Builder } from '@pandacss/node';
import { PluginCreator } from 'postcss';

@@ -10,4 +11,5 @@

declare const loadConfig: () => any;
declare const builder: Builder;
declare const pandacss: PluginCreator<PluginOptions>;
export { type PluginOptions, pandacss as default, loadConfig, pandacss };
export { type PluginOptions, builder, pandacss as default, loadConfig, pandacss };

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

__export(src_exports, {
builder: () => builder,
default: () => src_default,

@@ -48,2 +49,3 @@ loadConfig: () => loadConfig,

var builder = new import_node.Builder();
var builderGuard;
var pandacss = (options = {}) => {

@@ -54,28 +56,33 @@ const { configPath, cwd, logfile, allow } = options;

}
const postcssProcess = async function(root, result) {
const fileName = result.opts.from;
const skip = shouldSkip(fileName, allow);
if (skip)
return;
await builder.setup({ configPath, cwd });
if (!builder.isValidRoot(root))
return;
await builder.emit();
builder.extract();
builder.registerDependency((dep) => {
result.messages.push({
...dep,
plugin: PLUGIN_NAME,
parent: result.opts.from
});
});
builder.write(root);
root.walk((node) => {
if (!node.source) {
node.source = root.source;
}
});
};
return {
postcssPlugin: PLUGIN_NAME,
plugins: [
async function(root, result) {
const fileName = result.opts.from;
const skip = shouldSkip(fileName, allow);
if (skip)
return;
await builder.setup({ configPath, cwd });
if (!builder.isValidRoot(root))
return;
await builder.emit();
builder.extract();
builder.registerDependency((dep) => {
result.messages.push({
...dep,
plugin: PLUGIN_NAME,
parent: result.opts.from
});
});
builder.write(root);
root.walk((node) => {
if (!node.source) {
node.source = root.source;
}
});
function(...args) {
builderGuard = Promise.resolve(builderGuard).catch(() => {
}).then(() => postcssProcess(...args));
return builderGuard;
}

@@ -103,4 +110,5 @@ ]

0 && (module.exports = {
builder,
loadConfig,
pandacss
});
{
"name": "@pandacss/postcss",
"version": "0.0.0-dev-20241018171117",
"version": "0.0.0-dev-20241022220846",
"description": "PostCSS integration for Panda CSS",

@@ -36,6 +36,6 @@ "main": "dist/index.js",

"postcss": "8.4.47",
"@pandacss/node": "0.0.0-dev-20241018171117"
"@pandacss/node": "0.0.0-dev-20241022220846"
},
"devDependencies": {
"@pandacss/logger": "0.0.0-dev-20241018171117"
"@pandacss/logger": "0.0.0-dev-20241022220846"
},

@@ -42,0 +42,0 @@ "scripts": {

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