Socket
Socket
Sign inDemoInstall

postcss-advanced-variables

Package Overview
Dependencies
10
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.1 to 2.3.2

6

CHANGELOG.md
# Changes to PostCSS Advanced Variables
### 2.3.2 (February 10, 2018)
- Fixed: imports failing when `from` is missing
### 2.3.1 (February 10, 2018)
- Added: `babel-plugin-array-includes` instead of `babel-polyfill`
- Added: `babel-plugin-array-includes` instead of `babel-polyfill` for publish
- Fixed: `@mixin` rules to support being declared with empty parens

@@ -7,0 +11,0 @@ - Noted: Recommend `postcss-scss-syntax` to best support variable interpolation

27

index.bundle.js

@@ -56,2 +56,3 @@ 'use strict';

// tooling
// return content with its variables replaced by the corresponding values of a node

@@ -98,2 +99,3 @@ function getReplacedString(string, node, opts) {

// tooling
// set a variable on a node

@@ -118,2 +120,3 @@ function setVariable(node, name, value, opts) {

// tooling
// transform declarations

@@ -143,2 +146,3 @@ function transformDecl(decl, opts) {

// tooling
// transform generic at-rules

@@ -188,12 +192,2 @@ function transformAtrule(rule, opts) {

var toArray = function (arr) {

@@ -214,2 +208,3 @@ return Array.isArray(arr) ? arr : Array.from(arr);

// tooling
// return sass-like arrays as literal arrays ('(hello), (goodbye)' to [[hello], [goodbye]])

@@ -258,2 +253,3 @@ function getValueAsObject(value) {

// tooling
// transform @each at-rules

@@ -316,2 +312,3 @@ function transformEachAtrule(rule, opts) {

// tooling
// transform @if at-rules

@@ -379,2 +376,3 @@ function transformIfAtrule(rule, opts) {

// tooling
// transform @import at-rules

@@ -385,3 +383,3 @@ function transformImportAtrule(rule, opts) {

// @import options
var _getImportOpts = getImportOpts(rule),
var _getImportOpts = getImportOpts(rule, opts),
id = _getImportOpts.id,

@@ -476,2 +474,3 @@ media = _getImportOpts.media,

// tooling
// transform @include at-rules

@@ -538,2 +537,3 @@ function transformIncludeAtrule(rule, opts) {

// tooling
// transform @for at-rules

@@ -590,2 +590,3 @@ function transformForAtrule(rule, opts) {

// tooling
// transform @mixin at-rules

@@ -633,2 +634,3 @@ function transformMixinAtrule(rule, opts) {

// tooling
// transform rule nodes

@@ -641,2 +643,3 @@ function transformRule(rule, opts) {

// tooling
// transform @content at-rules

@@ -677,2 +680,3 @@ function transformContentAtrule(rule, opts) {

// tooling
// transform all nodes

@@ -732,2 +736,3 @@ function transformNode(node, opts) {

// tooling
// plugin

@@ -734,0 +739,0 @@ var index = postcss__default.plugin('postcss-advanced-variables', function (opts) {

@@ -13,3 +13,3 @@ // tooling

// @import options
const { id, media, cwf, cwd } = getImportOpts(rule);
const { id, media, cwf, cwd } = getImportOpts(rule, opts);

@@ -16,0 +16,0 @@ if (

{
"name": "postcss-advanced-variables",
"version": "2.3.1",
"version": "2.3.2",
"description": "Use Sass-like variables, conditionals, and iterators in CSS",

@@ -29,19 +29,19 @@ "author": "Jonathan Neal <jonathantneal@hotmail.com>",

"dependencies": {
"@csstools/sass-import-resolve": "^1.0",
"postcss": "^6.0"
"@csstools/sass-import-resolve": "^1",
"postcss": "^6"
},
"devDependencies": {
"babel-core": "^6.26",
"babel-eslint": "^8.2",
"babel-plugin-array-includes": "^2.0.3",
"babel-plugin-external-helpers": "^6.22",
"babel-preset-env": "^1.6",
"echint": "^4.0",
"eslint": "^4.17",
"eslint-config-dev": "2.0",
"postcss-scss": "^1.0.3",
"babel-core": "^6",
"babel-eslint": "^8",
"babel-plugin-array-includes": "^2",
"babel-plugin-external-helpers": "^6",
"babel-preset-env": "^1",
"echint": "^4",
"eslint": "^4",
"eslint-config-dev": "^2",
"postcss-scss": "^1",
"postcss-tape": "2.2",
"pre-commit": "^1.2",
"rollup": "^0.55",
"rollup-plugin-babel": "^3.0"
"pre-commit": "^1",
"rollup": "^0",
"rollup-plugin-babel": "^3"
},

@@ -48,0 +48,0 @@ "eslintConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc