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

@sitespeed.io/throttle

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sitespeed.io/throttle - npm Package Compare versions

Comparing version 0.4.3 to 0.5.0

10

bin/index.js

@@ -44,3 +44,3 @@ #!/usr/bin/env node

if (argv.help) {
if (argv.help || argv._[0] === 'help') {
console.log(' Set the connectivity using the throttler (pfctl/tc)');

@@ -77,3 +77,3 @@ console.log(' Usage: throttler [options]');

} else {
if (argv.stop) {
if (argv.stop || argv._[0] === 'stop') {
const options = {

@@ -88,5 +88,7 @@ localhost: argv.localhost

let options;
if (argv.profile in profiles) {
options = profiles[argv.profile];
if (argv.profile in profiles || argv._[0] in profiles) {
options = profiles[argv.profile || argv._[0]];
console.log('Using profile ' + (argv.profile ? argv.profile : argv._[0]));
} else {
console.log('Using default profile');
options = {

@@ -93,0 +95,0 @@ up: argv.up || defaultUp,

10

CHANGELOG.md
# CHANGELOG - throttle
## 0.5.0 2018-12-07
### Added
* Simplified profile/stop/help. You can now start with: ```throttle $profile``` and stop with ```throttle stop```
## 0.4.3 2018-09-01
### Fixed
* Upload throttling was wrong on Mac OS X, thank you [Paul](https://github.com/paulz) for the [PR](https://github.com/sitespeedio/throttle/pull/16).
* Upload throttling was wrong on Mac OS X, thank you [Paul](https://github.com/paulz) for the [PR](https://github.com/sitespeedio/throttle/pull/16).

@@ -29,3 +33,3 @@ ## 0.4.2 2018-05-30

### Added
### Added
* You can now see the version with --version

@@ -37,2 +41,2 @@ * You can now use pre defined profiles.

### Fixed
* Always remove filters before we try to set them.
* Always remove filters before we try to set them.
{
"name": "@sitespeed.io/throttle",
"version": "0.4.3",
"version": "0.5.0",
"description": "Throttle your connection",

@@ -5,0 +5,0 @@ "repository": {

@@ -50,2 +50,7 @@ # Simulate slow network connections on Linux and Mac OS X

or even simpler
```
throttle 3gslow
```
## Stop simulate the network

@@ -58,2 +63,8 @@ Stopping is as easy as giving the parameter *stop* to throttle.

or
```
throttle stop
```
## Add delay on your localhost (Linux only at the moment)

@@ -60,0 +71,0 @@ This is useful if you run [WebPageReplay](https://github.com/catapult-project/catapult/blob/master/web_page_replay_go/README.md) and want to add som latency to your tests.

Sorry, the diff of this file is not supported yet

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