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

@stencil/postcss

Package Overview
Dependencies
Maintainers
9
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencil/postcss - npm Package Compare versions

Comparing version 0.0.4 to 0.1.0

11

dist/declarations.d.ts

@@ -15,4 +15,4 @@ export interface PluginOptions {

config: {
rootDir: string;
srcDir: string;
rootDir?: string;
srcDir?: string;
};

@@ -24,9 +24,11 @@ fs: any;

level: 'error' | 'warn' | 'info' | 'log' | 'debug';
type: string;
type: 'typescript' | 'bundling' | 'build' | 'runtime' | 'hydrate' | 'css';
header?: string;
language?: string;
messageText: string;
language?: 'javascript' | 'typescript' | 'postcss' | 'css';
code?: string;
absFilePath?: string;
relFilePath?: string;
lineNumber?: number;
columnNumber?: number;
lines?: PrintLine[];

@@ -38,5 +40,4 @@ }

text?: string;
html?: string;
errorCharStart: number;
errorLength?: number;
}

@@ -8,3 +8,3 @@ export function loadDiagnostic(context, postcssError, filePath) {

level,
type: 'postcss',
type: 'css',
language: 'postcss',

@@ -11,0 +11,0 @@ header: `postcss ${level}`,

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

@@ -15,3 +17,3 @@

level,
type: 'postcss',
type: 'css',
language: 'postcss',

@@ -141,5 +143,6 @@ header: `postcss ${level}`,

module.exports = function postcss(opts = {}) {
function postcss(opts = {}) {
return {
transform: function (sourceText, fileName, context) {
name: 'postcss',
transform(sourceText, fileName, context) {
if (!opts.hasOwnProperty('plugins') || opts.plugins.length < 1) {

@@ -202,5 +205,6 @@ return null;

});
},
name: 'postcss'
}
};
};
}
exports.postcss = postcss;

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

export {};
import * as d from './declarations';
export declare function postcss(opts?: d.PluginOptions): {
name: string;
transform(sourceText: string, fileName: string, context: d.PluginCtx): Promise<d.PluginTransformResults>;
};

@@ -11,3 +11,3 @@ import { isAbsolute, join } from 'path';

level,
type: 'postcss',
type: 'css',
language: 'postcss',

@@ -137,5 +137,6 @@ header: `postcss ${level}`,

module.exports = function postcss(opts = {}) {
function postcss(opts = {}) {
return {
transform: function (sourceText, fileName, context) {
name: 'postcss',
transform(sourceText, fileName, context) {
if (!opts.hasOwnProperty('plugins') || opts.plugins.length < 1) {

@@ -198,5 +199,6 @@ return null;

});
},
name: 'postcss'
}
};
};
}
export { postcss };
{
"name": "@stencil/postcss",
"version": "0.0.4",
"version": "0.1.0",
"license": "MIT",

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

"version": "npm run build",
"deploy": "np",
"release": "np",
"lint": "tslint --project tsconfig.json",

@@ -59,4 +59,5 @@ "test": "jest",

"jsx"
]
],
"testURL": "http://localhost"
}
}

@@ -15,10 +15,12 @@ # @stencil/postcss

```
npm install autoprefixer --save-dev
npm install autoprefixer @types/autoprefixer --save-dev
```
```js
const postcss = require('@stencil/postcss');
const autoprefixer = require('autoprefixer');
#### stencil.config.ts
```ts
import { Config } from '@stencil/core';
import { postcss } from '@stencil/postcss';
import * as autoprefixer from 'autoprefixer';
exports.config = {
export const config: Config = {
plugins: [

@@ -25,0 +27,0 @@ 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