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

rollup-plugin-postcss

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-postcss - npm Package Compare versions

Comparing version 0.0.22 to 0.0.23

17

index.js

@@ -36,8 +36,13 @@ 'use strict';

};
code = postcss(options.plugins || []).process(code, opts).css;
code = 'export default ' + injectFnName + '(' + JSON.stringify(code) + ');';
return {
code: code,
map: { mappings: '' }
};
return new Promise(function (resolve, reject) {
postcss(options.plugins || []).process(code, opts).then(function (result) {
result.css = 'export default ' + injectFnName + '(' + JSON.stringify(result.css) + ');';
resolve({
code: result.css,
map: result.map
});
})['catch'](function (err) {
return reject(err);
});
});
}

@@ -44,0 +49,0 @@ };

{
"name": "rollup-plugin-postcss",
"version": "0.0.22",
"version": "0.0.23",
"description": "Seamless integration between Rollup and PostCSS",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -29,10 +29,16 @@ import { createFilter } from 'rollup-pluginutils';

};
code = postcss(options.plugins || []).process(code, opts).css;
code = `export default ${injectFnName}(${JSON.stringify(code)});`
return {
code,
map: { mappings: '' }
};
return new Promise((resolve, reject) => {
postcss(options.plugins || [])
.process(code, opts)
.then(result => {
result.css = `export default ${injectFnName}(${JSON.stringify(result.css)});`
resolve({
code: result.css,
map: result.map
});
})
.catch(err => reject(err));
});
}
};
};
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