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

babel-plugin-csjs-postcss

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-csjs-postcss - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

15

dist/index.js

@@ -26,3 +26,6 @@ 'use strict';

var plugins = state.opts.plugins || [];
var pluginsOpts = state.opts.plugins || [];
var plugins = pluginsOpts.map(handlePlugin);
var processed = postcss(plugins).process(css, { parser: safe, from: this.file.opts.filename }).css;

@@ -48,2 +51,12 @@

function handlePlugin(pluginArg) {
if (Array.isArray(pluginArg)) {
return require(pluginArg[0]).apply(null, pluginArg.slice(1));
} else if (typeof pluginArg === 'string') {
return require(pluginArg);
} else {
return pluginArg;
}
}
function expressionPlaceholder(i) {

@@ -50,0 +63,0 @@ return '___QUASI_EXPR_' + i + '___';

2

package.json
{
"name": "babel-plugin-csjs-postcss",
"version": "0.1.0",
"version": "0.2.0",
"description": "Babel plugin for running postcss on csjs",

@@ -5,0 +5,0 @@ "keywords": [

# babel-plugin-csjs-postcss
[![build status][build-badge]][build-href]
[![dependencies status][deps-badge]][deps-href]
Babel plugin for running postcss on csjs
[build-badge]: https://travis-ci.org/rtsao/babel-plugin-csjs-postcss.svg?branch=master
[build-href]: https://travis-ci.org/rtsao/babel-plugin-csjs-postcss
[deps-badge]: https://david-dm.org/rtsao/babel-plugin-csjs-postcss.svg
[deps-href]: https://david-dm.org/rtsao/babel-plugin-csjs-postcss
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