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.1.1 to 5.0.0

163

CHANGELOG.md

@@ -1,32 +0,44 @@

4.1.1 / 2019-07-11
------------------
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.0.0] - 2019-09-14
### Changed
- Drop `any-promise`, use native, #32.
## [4.1.1] - 2019-07-11
### Fixed
- Fix streams unpipe (after 4.1.0 changes), #34.
4.1.0 / 2019-07-09
------------------
- Fix content ungzip from misconfigured servers, #31.
## [4.1.0] - 2019-07-09
### Changed
- Deps bump.
- Update Travis-CI node versions to actual.
### Fixed
- Fix content ungzip from misconfigured servers, #31.
4.0.1 / 2019-07-08
------------------
## [4.0.1] - 2019-07-08
### Fixed
- Fix regexp to ignore SVG `stroke-width` attr, #33.
4.0.0 / 2018-03-05
------------------
## [4.0.0] - 2018-03-05
### Changed
- Roll back `got` -> `request`, see #16.
- Default timeout 30s -> 60s.
### Fixed
- Fix padding parse in jpeg, #20.
3.2.0 / 2017-11-22
------------------
## [3.2.0] - 2017-11-22
### Changed
- Roll back `got` to 6.x due serious regressions, see #16.

@@ -36,5 +48,4 @@ Next attempt will be switching to `request` and releasing 4.0.0.

3.1.0 / 2017-06-08
------------------
## [3.1.0] - 2017-06-08
### Changed
- Maintenance, deps bump. `got` 6.x -> 7.x. `got` timeouts may work a bit

@@ -44,5 +55,4 @@ different but should affect result.

3.0.0 / 2016-12-02
------------------
## [3.0.0] - 2016-12-02
### Changed
- Rewrite internals to `Promise`.

@@ -60,55 +70,56 @@ - Separate options from url for http probe (old signature still supported

2.2.0 / 2016-10-26
------------------
## [2.2.0] - 2016-10-26
### Added
- Add `.url` with actual image address (after redirects) for remotes.
2.1.1 / 2016-08-25
------------------
## [2.1.1] - 2016-08-25
### Added
- Add default user agent to http requests (if not set by options), #8.
2.1.0 / 2016-07-14
------------------
## [2.1.0] - 2016-07-14
### Changed
- Internal parsers api cleanup - switch from callbacks to events.
- Internal parsers api cleanup - switch from callbacks to events.
### Fixed
- Fixed "write after end" error under heavy load.
2.0.1 / 2016-07-01
------------------
## [2.0.1] - 2016-07-01
### Fixed
- Fixed bug in streams cleanup condition.
2.0.0 / 2016-06-25
------------------
## [2.0.0] - 2016-06-25
### Added
- SVG support
- Return dimention units ('px' everywhere except SVG)
### Changed
- width/height now can be float (with fractional part)
- Return dimention units ('px' everywhere except SVG)
1.2.1 / 2016-05-30
------------------
## [1.2.1] - 2016-05-30
### Fixed
- Stream: posponed callback to avoid possible races on forced stream close.
1.2.0 / 2016-05-28
------------------
## [1.2.0] - 2016-05-28
### Added
- Added `.sync.probe()` method.
- 100% tests coverage.
- Added `.sync.probe()` method.
### Changed
- Splited to separate files (simplify browserification).
- Faster return on positive result & faster resource release.
### Fixed
- Fix stream error handling.
- 100% tests coverage.
1.1.0 / 2016-05-25
------------------
## [1.1.0] - 2016-05-25
### Added
- Added promise support.
- Added promise support.
### Changed
- Use `readable-stream` instead of `stream`.

@@ -118,11 +129,9 @@ - Reorganised internal files structure & tests.

1.0.6 / 2016-04-13
------------------
## [1.0.6] - 2016-04-13
### Fixed
- Fixed parser crashes on zero length data & offsets.
1.0.5 / 2015-12-15
------------------
## [1.0.5] - 2015-12-15
### Changed
- Increased http request timeout to 30 seconds.

@@ -132,23 +141,19 @@ - Don't check SSL sertificates.

1.0.4 / 2015-09-22
------------------
## [1.0.4] - 2015-09-22
### Fixed
- Fixed crash on empty JPEG markers.
1.0.3 / 2015-09-19
------------------
## [1.0.3] - 2015-09-19
### Fixed
- Fixed catch internal exceptions from `request`.
1.0.2 / 2015-09-16
------------------
## [1.0.2] - 2015-09-16
### Added
- Added `ECONTENT` error code for parse errors.
1.0.1 / 2015-09-14
------------------
## [1.0.1] - 2015-09-14
### Added
- Return image length when possible.

@@ -158,5 +163,29 @@ - Support URLs in dev helper script.

1.0.0 / 2015-09-12
------------------
## [1.0.0] - 2015-09-12
### Added
- First release.
- First release.
[5.0.0]: https://github.com/nodeca/probe-image-size/compare/4.1.1...5.0.0
[4.1.1]: https://github.com/nodeca/probe-image-size/compare/4.1.0...4.1.1
[4.1.0]: https://github.com/nodeca/probe-image-size/compare/4.0.1...4.1.0
[4.0.1]: https://github.com/nodeca/probe-image-size/compare/4.0.0...4.0.1
[4.0.0]: https://github.com/nodeca/probe-image-size/compare/3.2.0...4.0.0
[3.2.0]: https://github.com/nodeca/probe-image-size/compare/3.1.0...3.2.0
[3.1.0]: https://github.com/nodeca/probe-image-size/compare/3.0.0...3.1.0
[3.0.0]: https://github.com/nodeca/probe-image-size/compare/2.2.0...3.0.0
[2.2.0]: https://github.com/nodeca/probe-image-size/compare/2.1.1...2.2.0
[2.1.1]: https://github.com/nodeca/probe-image-size/compare/2.1.0...2.1.1
[2.1.0]: https://github.com/nodeca/probe-image-size/compare/2.0.1...2.1.0
[2.0.1]: https://github.com/nodeca/probe-image-size/compare/2.0.0...2.0.1
[2.0.0]: https://github.com/nodeca/probe-image-size/compare/1.2.1...2.0.0
[1.2.1]: https://github.com/nodeca/probe-image-size/compare/1.2.0...1.2.1
[1.2.0]: https://github.com/nodeca/probe-image-size/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/nodeca/probe-image-size/compare/1.0.6...1.1.0
[1.0.6]: https://github.com/nodeca/probe-image-size/compare/1.0.5...1.0.6
[1.0.5]: https://github.com/nodeca/probe-image-size/compare/1.0.4...1.0.5
[1.0.4]: https://github.com/nodeca/probe-image-size/compare/1.0.3...1.0.4
[1.0.3]: https://github.com/nodeca/probe-image-size/compare/1.0.2...1.0.3
[1.0.2]: https://github.com/nodeca/probe-image-size/compare/1.0.1...1.0.2
[1.0.1]: https://github.com/nodeca/probe-image-size/compare/1.0.0...1.0.1
[1.0.0]: https://github.com/nodeca/probe-image-size/releases/tag/1.0.0

@@ -32,10 +32,5 @@ 'use strict';

var P;
module.exports = function probeHttp(src, options) {
// lazy Promise init
P = P || require('any-promise');
return new P(function (resolve, reject) {
return new Promise(function (resolve, reject) {
var stream, length, finalUrl;

@@ -42,0 +37,0 @@

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

@@ -34,3 +34,2 @@ "keywords": [

"dependencies": {
"any-promise": "^1.3.0",
"deepmerge": "^4.0.0",

@@ -37,0 +36,0 @@ "inherits": "^2.0.3",

@@ -144,5 +144,5 @@ probe-image-size

License
-------
Support probe-image-size
------------------------
[MIT](https://raw.github.com/nodeca/probe-image-size/master/LICENSE)
You can support this project via [Tidelift subscription](https://tidelift.com/subscription/pkg/npm-probe-image-size?utm_source=npm-probe-image-size&utm_medium=referral&utm_campaign=readme).

@@ -8,13 +8,8 @@ 'use strict';

var P;
module.exports = function probeStream(stream) {
// lazy Promise init
P = P || require('any-promise');
var proxy = new PassThrough();
var cnt = 0; // count of working parsers
var result = new P(function (resolve, reject) {
var result = new Promise(function (resolve, reject) {
stream.on('error', reject);

@@ -21,0 +16,0 @@ proxy.on('error', reject);

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