Phantomas

Latest version: v0.2.3

Safety actively analyzes 629503 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

1.13.0

This release of phantomas brings mostly various bug fixes.

One of the new features is DNS and TCP/IP connect timings (available in SlimerJS and PhantomJS2 engines) - see 477 for more details.

Full list of changes below.

Changelog

New metrics
- 477 - DNS and Connect timings (by gnublin)

Bug fixes
- 548 - Provide a proper Error in Node API
- 550 - JS redirection generates a 254 error
- 555 - Small fixes for hidden images (by gmetais)
- 559 - HTTP traffic events not fired
- 560 - appendSpy: TypeError: undefined is not a function
- 562 - Fix lazy load. Get scr via getAttribute. (by r-kovalenko)
- 563 - phantomas shouldn't modify the `options` parameter

1.12.0

This release of phantomas brings the **[support for PhantomJS 2.0](https://github.com/macbre/phantomasengines)** - see [488](https://github.com/macbre/phantomas/issues/488issuecomment-120605486) on how to use it as it's not the default engine yet.

[The statically linked PhantomJS 2.0 binaries](https://github.com/macbre/phantomjs2-npm/pull/1) were verified to work on the following amd64 distros:
- Debian 8
- Ubuntu 12.04 LTS (aka Precise)
- Travis CI environment (Ubuntu 12.04)

Full list of changes below.

Changelog

New metrics
- 524 - Count hidden images that can be lazy loaded
- 539 - Metric: Resources Responsible for Timeout

Improvements
- 531 - Introduce phantomjs2 engine that uses **PhantomJS 2.0** binary
- 532 - Add a DOM path to images that could be lazyloaded
- 544 - Send basic auth to analyze-css (by gmetais)

Bug fixes
- 535 - --no-externals does not seem to work for early loaded assets
- 542 - Do not fail when importing not existing engine
- 549 - If metric 'timeToLastByte' hasn't been fired, use last entry (by william-p)

Internals
- 540 - Prepare PhantomJS 2.0 binaries with statically-linked libraries
- 543 - Travis: migrate to container-based infrastructure

1.11.0

This release of phantomas detects **below the fold images that can be lazy-loaded** (see 494). You can now **instruct phantomas to stop immediately after load event** (i.e. not wait for all remaining HTTP requests) by passing `--stop-at-onload` option (513).

Full list of changes below.

Changelog

New metrics
- 494 - Count below the fold images that could be lazyloaded
- 486 - requetsTo\* related metrics

Improvements
- 520 - Introduce sections in usage help (by wladekb)
- 515 - Add some Content-Types to `assetsNotGzipped`
- 513 - Stop phantomas at onLoad event

Bug fixes
- 528 - Reporter is not executed when the assert is not met
- 519 - Don't count duplicated queries on elements not attached to DOM (by gmetais)
- 482 - JS errors : calling native `console.log()` failed

Internals
- 527 - Update dependencies
- 522 - Using the new `isSVG` (by gmetais)

1.10.2

This minor release brings the following bug fixes:
- 514 - eventsScrollBound on document too (by gmetais)
- 512 - Fix --wait-for-selector (by gmetais)
- 511 - Set window.screen.width and window.screen.height (by gmetais)

1.10.1

This minor release brings the following:
- 508 - Count the number of `window.addEventListener('scroll', ...)`
- 380 - Improved timeouts handling in multiple runs mode

1.10.0

This release of phantomas brings bug fixes and...

Python

**Python library for phantomas** is now available on PyPI.

[![Latest Version](https://pypip.in/version/phantomas/badge.svg?style=flat)](https://pypi.python.org/pypi/phantomas/) [![Supported Python versions](https://pypip.in/py_versions/phantomas/badge.svg?style=flat)](https://pypi.python.org/pypi/phantomas/)

python
import json
from phantomas import Phantomas

results = Phantomas(
url="http://example.com",
modules=['headers', 'requestsStats']
).run()

print('Generator: ' + results.get_generator()) phantomas v1.10.0
print('\nMetrics: ' + json.dumps(results.get_metrics(), indent=True, sort_keys=True))
print('\nDomains: ' + json.dumps(results.get_offenders('domains'), indent=True))

assertions
assert results.get_metric('notFound') == 0
assert results.get_metric('requests') < 5


All changes are listed below.

Changelog

Improvements
- 496 - Change the default viewport to 1366x768
- 489 - Use the latest engines
- 358 - phantomas library for Python

Bug fixes
- 499 - Make the date string compatible with windows file name restr... (by vinvol)
- 495 - Upgrading ascii-table version (by sorensen)
- 480 - Fix index of child node in getDOMPath (by gmetais)
- 479 - imagesScaledDown should probably not concern SVG
- 478 - jQueryEventTriggers: error with jQuery 1.4.4
- 476 - Negative cache (by gmetais)
- 467 - Scope problem with the spied version of eval() - introduce `--spy-eval` option

Internals
- 473 - Add tests for phantomas scope helpers

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.