Socket
Socket
Sign inDemoInstall

postcss

Package Overview
Dependencies
Maintainers
2
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## 5.0.9
* Fix source map type detection (by @asan).
## 5.0.8

@@ -2,0 +5,0 @@ * Fixed a missed step in `5.0.7` that caused the module to be published as

7

docs/api.md

@@ -82,2 +82,3 @@ # PostCSS API

var remove = postcss.plugin('postcss-remove', function (opts) {
opts = opts || {};
var filter = opts.prop || 'z-index';

@@ -91,4 +92,4 @@ return function (css, result) {

postcss().use(remove) // with default options
postcss().use(remove({ prop: 'color' })) // with options
postcss([ remove ]) // with default options
postcss([ remove({ prop: 'color' })]) // with options
```

@@ -263,3 +264,3 @@

var processor = postcss();
processor.use(autoprefixer).use(cssnext).use(cssgrace);
processor.use(autoprefixer()).use(cssnext()).use(cssgrace());
```

@@ -266,0 +267,0 @@

@@ -83,3 +83,3 @@ 'use strict';

return prev.toString();
} else if (typeof prev === 'object' && prev.mappings) {
} else if (this.isMap(prev)) {
return JSON.stringify(prev);

@@ -104,2 +104,7 @@ } else {

PreviousMap.prototype.isMap = function isMap(map) {
if (typeof map !== 'object') return false;
return map.mappings || map._mappings;
};
return PreviousMap;

@@ -106,0 +111,0 @@ })();

{
"name": "postcss",
"version": "5.0.8",
"version": "5.0.9",
"description": "Tool for transforming styles with JS plugins",

@@ -24,11 +24,11 @@ "engines": {

"supports-color": "^3.1.1",
"source-map": "^0.5.0",
"source-map": "^0.5.1",
"js-base64": "^2.1.9"
},
"devDependencies": {
"concat-with-sourcemaps": "1.0.2",
"concat-with-sourcemaps": "1.0.4",
"postcss-parser-tests": "5.0.4",
"gulp-json-editor": "2.2.1",
"gulp-istanbul": "0.10.0",
"run-sequence": "1.1.3",
"gulp-istanbul": "0.10.1",
"run-sequence": "1.1.4",
"babel-eslint": "4.1.3",

@@ -39,8 +39,8 @@ "gulp-eslint": "1.0.0",

"strip-ansi": "3.0.0",
"gulp-shell": "0.4.3",
"gulp-shell": "0.5.0",
"yaspeller": "2.5.0",
"fs-extra": "0.24.0",
"isparta": "3.0.4",
"eslint": "1.5.0",
"sinon": "1.16.1",
"isparta": "3.1.0",
"eslint": "1.6.0",
"sinon": "1.17.1",
"mocha": "2.3.3",

@@ -47,0 +47,0 @@ "gulp": "3.9.0",

@@ -21,2 +21,4 @@ # PostCSS [![Travis Build Status][travis-img]][travis] [![AppVeyor Build Status][appveyor-img]][appveyor] [![Gitter][chat-img]][chat]

Support / Discussion: [gitter](https://gitter.im/postcss/postcss).
[appveyor-img]: https://img.shields.io/appveyor/ci/ai/postcss.svg?label=windows

@@ -241,2 +243,3 @@ [travis-img]: https://img.shields.io/travis/postcss/postcss.svg?label=unix

* [`cssnext`] contains plugins that allow you to use future CSS features today.
* [`oldie`] contains plugins that transform your CSS for older Internet Explorer compatibility.
* [`precss`] contains plugins that allow you to use Sass-like CSS.

@@ -252,2 +255,3 @@ * [`rucksack`] contains plugins to speed up CSS development

[`cssnext`]: http://cssnext.io/
[`oldie`]: https://github.com/jonathantneal/oldie
[`precss`]: https://github.com/jonathantneal/precss

@@ -311,2 +315,4 @@ [`atcss`]: https://github.com/morishitter/atcss

* [`postcss-for`] adds `@for` loops.
* [`postcss-at-rules-variables`] adds support for custom properties in at-rules
`@for`, `@each`, `@if` and more.
* [`postcss-functions`] enables exposure of JavaScript functions.

@@ -326,2 +332,3 @@ * [`postcss-local-constants`] adds support for localized constants.

* [`postcss-quantity-queries`] enables quantity queries.
* [`postcss-reverse-media`] reverse/Invert media query parameters.
* [`postcss-sassy-mixins`] enables mixins with Sass keywords.

@@ -355,2 +362,3 @@ * [`postcss-simple-extend`] lightweight extending of silent classes,

* [`postcss-color-short`] adds shorthand color declarations.
* [`postcss-color-yiq`] sets foreground colors using the YIQ color space.
* [`postcss-colorblind`] transforms colors using filters to simulate

@@ -436,2 +444,6 @@ colorblindness.

* [`postcss-responsive-type`] changes `font-size` depends on screen size.
* [`postcss-short-font-size`] extends `font-size` to define line-height as a second value.
* [`postcss-short-position`] extends `position` to define edges as additional values.
* [`postcss-short-spacing`] extends `margin` and `padding` to allow for omitted edges.
* [`postcss-short-text`] adds a `text` shortcut property for several text-related properties.
* [`postcss-size`] adds a `size` shortcut that sets width and height

@@ -461,2 +473,3 @@ with one declaration.

* [`postcss-pxtorem`] converts pixel units to `rem`.
* [`postcss-shorthand-expand`] expands shorthand properties.
* [`postcss-remove-prefixes`] removes vendor prefixes.

@@ -519,2 +532,3 @@ * [`postcss-style-guide`] generates a style guide automatically.

[`postcss-transform-shortcut`]: https://github.com/jonathantneal/postcss-transform-shortcut
[`postcss-at-rules-variables`]: https://github.com/GitScrum/postcss-at-rules-variables
[`postcss-responsive-images`]: https://github.com/azat-io/postcss-responsive-images

@@ -531,2 +545,3 @@ [`postcss-tatar-stylesheets`]: https://github.com/azat-io/postcss-tatar-stylesheets

[`postcss-selector-matches`]: https://github.com/postcss/postcss-selector-matches
[`postcss-shorthand-expand`]: https://github.com/johnotander/postcss-shorthand-expand
[`postcss-all-link-colors`]: https://github.com/jedmao/postcss-all-link-colors

@@ -543,2 +558,3 @@ [`postcss-color-hex-alpha`]: https://github.com/postcss/postcss-color-hex-alpha

[`postcss-round-subpixels`]: https://github.com/himynameisdave/postcss-round-subpixels
[`postcss-short-font-size`]: https://github.com/jonathantneal/postcss-short-font-size
[`postcss-color-function`]: https://github.com/postcss/postcss-color-function

@@ -549,2 +565,3 @@ [`postcss-conic-gradient`]: https://github.com/jonathantneal/postcss-conic-gradient

[`postcss-pseudoelements`]: https://github.com/axa-ch/postcss-pseudoelements
[`postcss-short-position`]: https://github.com/jonathantneal/postcss-short-position
[`postcss-single-charset`]: https://github.com/hail2u/postcss-single-charset

@@ -561,2 +578,3 @@ [`postcss-flexbugs-fixes`]: https://github.com/luisrudge/postcss-flexbugs-fixes

[`postcss-reduce-idents`]: https://github.com/ben-eb/postcss-reduce-idents
[`postcss-short-spacing`]: https://github.com/jonathantneal/postcss-short-spacing
[`postcss-simple-extend`]: https://github.com/davidtheclark/postcss-simple-extend

@@ -569,2 +587,3 @@ [`postcss-russian-units`]: https://github.com/Semigradsky/postcss-russian-units

[`postcss-conditionals`]: https://github.com/andyjansson/postcss-conditionals
[`postcss-reverse-media`]: https://github.com/MadLittleMods/postcss-reverse-media
[`postcss-sassy-mixins`]: https://github.com/andyjansson/postcss-sassy-mixins

@@ -599,2 +618,3 @@ [`postcss-custom-media`]: https://github.com/postcss/postcss-custom-media

[`postcss-color-hexa`]: https://github.com/nicksheffield/postcss-color-hexa
[`postcss-short-text`]: https://github.com/jonathantneal/postcss-short-text
[`postcss-autoreset`]: https://github.com/maximkoretskiy/postcss-autoreset

@@ -606,2 +626,3 @@ [`postcss-font-pack`]: https://github.com/jedmao/postcss-font-pack

[`postcss-color-mix`]: https://github.com/iamstarkov/postcss-color-mix
[`postcss-color-yiq`]: https://github.com/ben-eb/postcss-color-yiq
[`postcss-image-set`]: https://github.com/alex499/postcss-image-set

@@ -608,0 +629,0 @@ [`postcss-write-svg`]: https://github.com/jonathantneal/postcss-write-svg

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