postcss-normalize-url
Advanced tools
Comparing version
@@ -0,1 +1,6 @@ | ||
# 2.1.3 | ||
* Replaces trim space nodes function with a built in method | ||
of postcss-value-parser. | ||
# 2.1.2 | ||
@@ -2,0 +7,0 @@ |
13
index.js
@@ -5,2 +5,3 @@ 'use strict'; | ||
var parser = require('postcss-value-parser'); | ||
var trimSpaceNodes = parser.trim; | ||
var stringify = parser.stringify; | ||
@@ -22,14 +23,2 @@ var normalize = require('normalize-url'); | ||
function trimSpaceNodes(nodes) { | ||
var first = nodes[0]; | ||
if (first && first.type === 'space') { | ||
nodes.shift(); | ||
} | ||
var last = nodes[nodes.length - 1]; | ||
if (last && last.type === 'space') { | ||
nodes.pop(); | ||
} | ||
} | ||
function namespaceOptimiser (options) { | ||
@@ -36,0 +25,0 @@ return function (rule) { |
{ | ||
"name": "postcss-normalize-url", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Normalize URLs with PostCSS", | ||
@@ -20,3 +20,3 @@ "main": "index.js", | ||
"postcss", | ||
"postcss-plugins", | ||
"postcss-plugin", | ||
"url" | ||
@@ -26,7 +26,7 @@ ], | ||
"dependencies": { | ||
"postcss-value-parser": "^1.2.2", | ||
"is-absolute-url": "^2.0.0", | ||
"normalize-url": "^1.3.0", | ||
"object-assign": "^3.0.0", | ||
"postcss": "^4.1.16" | ||
"object-assign": "^4.0.1", | ||
"postcss": "^4.1.16", | ||
"postcss-value-parser": "^1.4.2" | ||
}, | ||
@@ -36,4 +36,4 @@ "devDependencies": { | ||
"jshint-stylish": "^2.0.1", | ||
"tap-spec": "^4.0.2", | ||
"tape": "^4.1.0" | ||
"tap-spec": "^4.1.0", | ||
"tape": "^4.2.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "homepage": "https://github.com/ben-eb/postcss-normalize-url", |
8107
-1.37%87
-9.37%- Removed
Updated
Updated