New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

postcss-replace-overflow-wrap

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-replace-overflow-wrap - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

4

CHANGELOG.md

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

## 3.0
* Use PostCSS 7.x
* Bump various dependencies
## 2.0

@@ -2,0 +6,0 @@ * Use PostCSS 6.x

26

index.js

@@ -1,15 +0,15 @@

const postcss = require('postcss');
var postcss = require('postcss')
module.exports = postcss.plugin('postcss-replace-overflow-wrap', (opts) => {
opts = opts || {};
const method = opts.method || 'replace';
module.exports = postcss.plugin('postcss-replace-overflow-wrap', function (opts) {
opts = opts || {}
var method = opts.method || 'replace'
return (css) => {
css.walkDecls('overflow-wrap', (decl) => {
decl.cloneBefore({ prop: 'word-wrap' });
if (method === 'replace') {
decl.remove();
}
});
};
});
return function (css) {
css.walkDecls('overflow-wrap', function (decl) {
decl.cloneBefore({ prop: 'word-wrap' })
if (method === 'replace') {
decl.remove()
}
})
}
})
{
"name": "postcss-replace-overflow-wrap",
"version": "2.0.0",
"version": "3.0.0",
"description": "PostCSS plugin to replace overflow-wrap with word-wrap or optionally retain both declarations.",

@@ -23,8 +23,17 @@ "keywords": [

"dependencies": {
"postcss": "^6.0.1"
"postcss": "^7.0.2"
},
"devDependencies": {
"ava": "^0.19.1",
"eslint": "^3.19.0",
"eslint-config-postcss": "^2.0.2"
"ava": "^0.25.0",
"eslint": "^5.3.0",
"eslint-config-logux": "^24.0.0",
"eslint-config-postcss": "^3.0.3",
"eslint-config-standard": "^11.0.0",
"eslint-plugin-es5": "^1.3.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jest": "^21.20.1",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-standard": "^3.1.0"
},

@@ -37,5 +46,6 @@ "scripts": {

"rules": {
"max-len": 0
"max-len": 0,
"es5/no-modules": false
}
}
}

@@ -1,2 +0,2 @@

# PostCSS Replace Overflow Wrap [![Build Status][ci-img]][ci]
# PostCSS Replace Overflow Wrap [![CSS Standard Status][css-img]][css] [![Build Status][ci-img]][ci]

@@ -6,2 +6,4 @@ [PostCSS] plugin to replace overflow-wrap with word-wrap. May optionally retain both declarations.

[PostCSS]: https://github.com/postcss/postcss
[css-img]: https://jonathantneal.github.io/css-db/badge/css-text-overflow-wrap-property.svg
[css]: https://jonathantneal.github.io/css-db/#css-text-overflow-wrap-property
[ci-img]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap.svg

@@ -8,0 +10,0 @@ [ci]: https://travis-ci.org/MattDiMu/postcss-replace-overflow-wrap

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