Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

probe-image-size

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

probe-image-size - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

4.0.1 / 2019-07-08
------------------
- Fix regexp to ignore SVG `stroke-width` attr, #33.
4.0.0 / 2018-03-05

@@ -2,0 +8,0 @@ ------------------

2

lib/parse_stream/svg.js

@@ -15,3 +15,3 @@ 'use strict';

var SVG_HEADER_RE = /<svg\s[^>]+>/;
var SVG_WIDTH_RE = /\bwidth="([^%]+?)"|\bwidth='([^%]+?)'/;
var SVG_WIDTH_RE = /[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/;
var SVG_HEIGHT_RE = /\bheight="([^%]+?)"|\bheight='([^%]+?)'/;

@@ -18,0 +18,0 @@ var SVG_VIEWBOX_RE = /\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/;

@@ -25,3 +25,3 @@ 'use strict';

var SVG_HEADER_RE = /<svg\s[^>]+>/;
var SVG_WIDTH_RE = /\bwidth="([^%]+?)"|\bwidth='([^%]+?)'/;
var SVG_WIDTH_RE = /[^-]\bwidth="([^%]+?)"|[^-]\bwidth='([^%]+?)'/;
var SVG_HEIGHT_RE = /\bheight="([^%]+?)"|\bheight='([^%]+?)'/;

@@ -28,0 +28,0 @@ var SVG_VIEWBOX_RE = /\bview[bB]ox="(.+?)"|\bview[bB]ox='(.+?)'/;

{
"name": "probe-image-size",
"version": "4.0.0",
"version": "4.0.1",
"description": "Get image size without full download (JPG, GIF, PNG, WebP, BMP, TIFF, PSD)",

@@ -5,0 +5,0 @@ "keywords": [

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