postcss-replace-overflow-wrap
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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 |
4220
49
12
+ Addedpicocolors@0.2.1(transitive)
+ Addedpostcss@7.0.39(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedpostcss@6.0.23(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedpostcss@^7.0.2