postcss-image-inliner
Advanced tools
Comparing version 3.0.3 to 3.0.4
@@ -5,4 +5,3 @@ 'use strict'; | ||
const debug = require('debug')('image-inliner'); | ||
const last = require('lodash/last'); | ||
const escapeRegExp = require('lodash/escapeRegExp'); | ||
const escapeRegExp = require('escape-string-regexp'); | ||
const {getDataUriMapping} = require('./lib/image'); | ||
@@ -22,3 +21,3 @@ | ||
while ((match = matcher.exec(decl.value)) !== null) { | ||
cb({decl, url: last(match)}); | ||
cb({decl, url: match[match.length - 1]}); | ||
} | ||
@@ -25,0 +24,0 @@ }; |
{ | ||
"name": "postcss-image-inliner", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "PostCSS plugin to inline images into css", | ||
@@ -24,7 +24,7 @@ "keywords": [ | ||
"dependencies": { | ||
"asset-resolver": "^2.0.1", | ||
"asset-resolver": "^2.0.4", | ||
"debug": "^4.1.1", | ||
"filesize": "^4.1.2", | ||
"lodash": "^4.17.15", | ||
"postcss": "^7.0.17", | ||
"escape-string-regexp": "^2.0.0", | ||
"filesize": "^5.0.3", | ||
"postcss": "^7.0.18", | ||
"svgo": "^1.3.0" | ||
@@ -34,6 +34,6 @@ }, | ||
"chai": "^4.2.0", | ||
"eslint": "^5.16.0", | ||
"eslint": "^6.5.1", | ||
"eslint-config-xo-space": "^0.21.0", | ||
"finalhandler": "^1.1.2", | ||
"mocha": "^6.2.0", | ||
"mocha": "^6.2.2", | ||
"serve-static": "^1.14.1" | ||
@@ -40,0 +40,0 @@ }, |
9896
127
+ Addedescape-string-regexp@^2.0.0
+ Addedescape-string-regexp@2.0.0(transitive)
+ Addedfilesize@5.0.3(transitive)
- Removedlodash@^4.17.15
- Removedfilesize@4.2.1(transitive)
- Removedlodash@4.17.21(transitive)
Updatedasset-resolver@^2.0.4
Updatedfilesize@^5.0.3
Updatedpostcss@^7.0.18