Socket
Socket
Sign inDemoInstall

postcss-env-function

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-env-function - npm Package Compare versions

Comparing version 2.0.2 to 3.0.0

dist/index.js

6

CHANGELOG.md
# Changes to PostCSS Environment Variables
### 3.0.0 (June 13, 2019)
- Updated: `postcss-values-parser` to 3.2.0 (major)
- Updated: `postcss` to 7.0.27 (patch)
- Updated: Support for Node 10+ (major)
### 2.0.2 (September 20, 2018)

@@ -4,0 +10,0 @@

85

package.json
{
"name": "postcss-env-function",
"version": "2.0.2",
"version": "3.0.0",
"description": "Use env() variables in CSS",
"author": "Jonathan Neal <jonathantneal@hotmail.com>",
"license": "CC0-1.0",
"repository": "jonathantneal/postcss-env-function",
"homepage": "https://github.com/jonathantneal/postcss-env-function#readme",
"bugs": "https://github.com/jonathantneal/postcss-env-function/issues",
"main": "index.cjs.js",
"module": "index.es.mjs",
"repository": "csstools/postcss-env-function",
"homepage": "https://github.com/csstools/postcss-env-function#readme",
"bugs": "https://github.com/csstools/postcss-env-function/issues",
"main": "dist/index.js",
"module": "dist/index.mjs",
"files": [
"index.cjs.js",
"index.cjs.js.map",
"index.es.mjs",
"index.es.mjs.map"
"dist"
],
"scripts": {
"prepublishOnly": "npm test",
"pretest": "rollup -c .rollup.js --silent",
"test": "echo 'Running tests...'; npm run test:js && npm run test:tape",
"test:ec": "echint --ignore index.*.js test",
"test:js": "eslint *.js --cache --ignore-path .gitignore --quiet",
"test:tape": "postcss-tape"
"build": "npx rollup -c .rollup.js",
"build:watch": "npx rollup -c .rollup.js --watch",
"lint": "npx eslint --cache src",
"lint:fix": "npx eslint --cache --fix",
"pretest": "npm install && npm run build",
"test": "npm run lint && npm run tape",
"tape": "npx postcss-tape",
"prepublishOnly": "npm test"
},
"engines": {
"node": ">=6.0.0"
"node": ">=8.0.0"
},
"dependencies": {
"postcss": "^7.0.2",
"postcss-values-parser": "^2.0.0"
"postcss": "^7.0.27",
"postcss-values-parser": "^3.2.0"
},
"devDependencies": {
"@babel/core": "^7.1.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"babel-eslint": "^9.0.0",
"eslint": "^5.6.0",
"eslint-config-dev": "^2.0.0",
"postcss-tape": "^2.2.0",
"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"postcss-tape": "^5.0.2",
"pre-commit": "^1.2.2",
"rollup": "^0.66.1",
"rollup-plugin-babel": "^4.0.3"
"rollup": "^2.7.2",
"rollup-plugin-babel": "^4.4.0"
},
"babel": {
"presets": [
[
"@babel/env",
{
"targets": "maintained node versions"
}
]
]
},
"eslintConfig": {
"extends": "dev",
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "babel-eslint"
},
"rollup": {
"input": "src/index.js",
"plugins": [
"rollup-plugin-babel"
],
"output": [
{
"file": "dist/index.js",
"format": "cjs"
},
{
"file": "dist/index.mjs",
"format": "esm"
}
]
},
"keywords": [

@@ -50,0 +77,0 @@ "postcss",

# PostCSS Environment Variables [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][postcss]
[![NPM Version][npm-img]][npm-url]
[![CSS Standard Status][css-img]][css-url]
[![Build Status][cli-img]][cli-url]
[![Support Chat][git-img]][git-url]
[<img alt="NPM Version" src="https://img.shields.io/npm/v/postcss-env-function.svg" height="20">][npm-url]
[<img alt="CSS Standard Status" src="https://cssdb.org/badge/environment-variables.svg" height="20">][css-url]
[<img alt="Build Status" src="https://img.shields.io/travis/csstools/postcss-env-function/master.svg" height="20">][cli-url]
[<img alt="Support Chat" src="https://img.shields.io/badge/support-chat-blue.svg" height="20">][git-url]

@@ -124,11 +124,7 @@ [PostCSS Environment Variables] lets you use `env()` variables in CSS,

See example imports written in [JS](test/import-variables.js) and
[JSON](test/import-variables.json).
[JSON](test/import-variables.json). Currently only valid [custom property names] (beginning with `--`) are accepted. Not all valid [declaration value names] are accepted.
[cli-img]: https://img.shields.io/travis/jonathantneal/postcss-env-function.svg
[cli-url]: https://travis-ci.org/jonathantneal/postcss-env-function
[css-img]: https://cssdb.org/badge/environment-variables.svg
[cli-url]: https://travis-ci.org/csstools/postcss-env-function
[css-url]: https://cssdb.org/#environment-variables
[git-img]: https://img.shields.io/badge/support-chat-blue.svg
[git-url]: https://gitter.im/postcss/postcss
[npm-img]: https://img.shields.io/npm/v/postcss-env-function.svg
[npm-url]: https://www.npmjs.com/package/postcss-env-function

@@ -138,2 +134,5 @@

[PostCSS]: https://github.com/postcss/postcss
[PostCSS Environment Variables]: https://github.com/jonathantneal/postcss-env-function
[PostCSS Environment Variables]: https://github.com/csstools/postcss-env-function
[custom property names]: https://drafts.csswg.org/css-variables-1/#typedef-custom-property-name
[declaration value names]: https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value
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