Skip to content

Commit 86a40a5

Browse files
committed
Update dependencies, tests, readme, and copyright info.
1 parent 211349e commit 86a40a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+495
-435
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Copyright (c) 2013 Twitter Inc.
2-
Copyright (c) 2015 Google Inc.
3-
Copyright (c) 2015 Marcel Duran and other contributors
2+
Copyright (c) 2020 Google Inc.
3+
Copyright (c) 2020 Marcel Duran and other contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining
66
a copy of this software and associated documentation files (the

NOTICE

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
-------------- WebPagetest (http://code.google.com/p/webpagetest/) -------------
1+
---------- WebPagetest (https://github.com/WPO-Foundation/webpagetest) ---------
22

33
Copyright (c) 2005-2010, AOL, LLC. All rights reserved.
44
Copyrights licensed under the BSD License.
@@ -8,17 +8,27 @@ Copyrights licensed under the BSD License.
88
Copyright 2010, 2011, 2012, 2013. All rights reserved.
99
Licensed under the MIT License.
1010

11-
---------- commander (http://visionmedia.github.com/commander.js/) -------------
11+
--------------- commander (https://github.com/tj/commander.js) -----------------
1212

1313
Copyright (c) 2011 TJ Holowaychuk <[email protected]>.
1414
Licensed under the MIT License.
1515

16-
-------------- mocha (http://visionmedia.github.com/mocha/) --------------------
16+
---------------- mocha (https://github.com/mochajs/mocha) ----------------------
1717

18-
Copyright (c) 2011-2013 TJ Holowaychuk <[email protected]>.
18+
Copyright (c) 2011-2020 OpenJS Foundation and contributors, https://openjsf.org
1919
Licensed under the MIT License.
2020

21-
------------------- nock (https://github.com/flatiron/nock) --------------------
21+
--------------------- nock (https://github.com/nock/nock) ----------------------
2222

23-
Copyright (c) 2011 Pedro Teixeira. http://about.me/pedroteixeira
23+
Copyright (c) 2011-2019 Pedro Teixeira and other contributors
2424
Licensed under the MIT License.
25+
26+
------------------- csv (https://github.com/adaltas/node-csv) ------------------
27+
28+
Copyright (c) 2010 Adaltas
29+
Licensed under the MIT License.
30+
31+
----------------- entities (https://github.com/fb55/entities) ------------------
32+
33+
Copyright (c) Felix Böhm. All rights reserved.
34+
Licensed under BSD 2-Clause "Simplified" License.

README.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ $ npm install webpagetest -g
1717

1818
### Command line
1919
```bash
20-
$ webpagetest test https://twitter.com/marcelduran
20+
$ webpagetest test http://marcelduran.com/webpagetest-api
2121
```
2222

2323
### Docker
@@ -27,15 +27,15 @@ $ docker build -t webpagetest-api .
2727
```
2828
#### Run
2929
```bash
30-
$ docker run -it --rm webpagetest-api -k YOURAPIKEY test https://twitter.com/marcelduran
30+
$ docker run -it --rm webpagetest-api -k YOURAPIKEY test http://marcelduran.com/webpagetest-api
3131
```
3232

3333
### Module
3434
```javascript
3535
const WebPageTest = require('webpagetest');
3636
const wpt = new WebPageTest('www.webpagetest.org');
3737

38-
wpt.runTest('https://twitter.com/marcelduran', (err, data) => {
38+
wpt.runTest('http://marcelduran.com/webpagetest-api', (err, data) => {
3939
console.log(err || data);
4040
});
4141
```
@@ -229,9 +229,9 @@ $ webpagetest locations
229229
}
230230
```
231231

232-
#### 2. Run test on https://twitter.com/marcelduran from San Jose on IE9
232+
#### 2. Run test on http://marcelduran.com/webpagetest-api from San Jose on IE9
233233
```bash
234-
$ webpagetest test https://twitter.com/marcelduran --key 1F2A3K4E5 --location SanJose_IE9
234+
$ webpagetest test http://marcelduran.com/webpagetest-api --key 1F2A3K4E5 --location SanJose_IE9
235235
```
236236
```javascript
237237
{
@@ -279,7 +279,7 @@ $ webpagetest results 121025_PT_N8K
279279
"data": {
280280
"testId": "121025_PT_N8K",
281281
"summary": "https://www.webpagetest.org/result/121025_PT_N8K/",
282-
"testUrl": "https://twitter.com/marcelduran",
282+
"testUrl": "http://marcelduran.com/webpagetest-api",
283283
"location": "SanJose_IE9",
284284
"connectivity": "DSL",
285285
"bwDown": 1500, "bwUp": 384, "latency": 50, "plr": 0,
@@ -312,21 +312,21 @@ $ webpagetest waterfall 121025_PT_N8K --thumbnail --cached --uri
312312
}
313313
```
314314

315-
#### Run test on https://twitter.com/marcelduran and poll results every 5 seconds timing out in 60 seconds
315+
#### Run test on http://marcelduran.com/webpagetest-api and poll results every 5 seconds timing out in 60 seconds
316316
```bash
317-
$ webpagetest test https://twitter.com/marcelduran --poll 5 --timeout 60
317+
$ webpagetest test http://marcelduran.com/webpagetest-api --poll 5 --timeout 60
318318
```
319-
#### Or run test on https://twitter.com/marcelduran and wait for results listening on localhost\* port 8000\**
319+
#### Or run test on http://marcelduran.com/webpagetest-api and wait for results listening on localhost\* port 8000\**
320320
```bash
321-
$ webpagetest test https://twitter.com/marcelduran --wait 8000
321+
$ webpagetest test http://marcelduran.com/webpagetest-api --wait 8000
322322
```
323323
```javascript
324324
{
325325
"response": {
326326
"statusCode": 200, "statusText": "Ok",
327327
"data": {
328328
"testId": "121025_PT_N8K",
329-
"testUrl": "https://twitter.com/marcelduran",
329+
"testUrl": "http://marcelduran.com/webpagetest-api",
330330
...
331331
"median": {
332332
"firstView": {
@@ -543,9 +543,9 @@ wpt.getLocations((err, data) => {
543543
});
544544
```
545545

546-
#### 3. Run test on https://twitter.com/marcelduran from San Jose on IE9
546+
#### 3. Run test on http://marcelduran.com/webpagetest-api from San Jose on IE9
547547
```javascript
548-
wpt.runTest('https://twitter.com/marcelduran', {location: 'SanJose_IE9'}, (err, data) => {
548+
wpt.runTest('http://marcelduran.com/webpagetest-api', {location: 'SanJose_IE9'}, (err, data) => {
549549
console.log(err || data);
550550
});
551551
```
@@ -575,16 +575,16 @@ wpt.getWaterfallImage('121025_PT_N8K', {
575575
});
576576
```
577577

578-
#### Run test on https://twitter.com/marcelduran and poll results every 5 seconds timing out in 60 seconds
578+
#### Run test on http://marcelduran.com/webpagetest-api and poll results every 5 seconds timing out in 60 seconds
579579
```javascript
580-
wpt.runTest('https://twitter.com/marcelduran', {pollResults: 5, timeout: 60}, (err, data) => {
580+
wpt.runTest('http://marcelduran.com/webpagetest-api', {pollResults: 5, timeout: 60}, (err, data) => {
581581
console.log(err || data);
582582
});
583583
```
584584

585-
#### Or run test on https://twitter.com/marcelduran and wait results listening on localhost\* port 8000\*\*
585+
#### Or run test on http://marcelduran.com/webpagetest-api and wait results listening on localhost\* port 8000\*\*
586586
```javascript
587-
wpt.runTest('https://twitter.com/marcelduran', {waitResults: 'localhost:8000'}, (err, data) => {
587+
wpt.runTest('http://marcelduran.com/webpagetest-api', {waitResults: 'localhost:8000'}, (err, data) => {
588588
console.log(err || data);
589589
});
590590
```
@@ -605,7 +605,7 @@ http://localhost:8080
605605
```
606606
```bash
607607
$ curl http://localhost:8080/help
608-
$ curl http://localhost:8080/test/twitter.com/?location=SanJose_IE9
608+
$ curl http://localhost:8080/test/marcelduran.com/?location=SanJose_IE9
609609
```
610610
```bash
611611
$ webpagetest listen 8443 --key key.pem --cert cert.pem --server wpt.foo.com
@@ -643,8 +643,8 @@ $ webpagetest batch commands.txt
643643
```
644644
where `commands.txt` contains:
645645
```
646-
test twitter.com/marcelduran --first --location foo
647-
test twitter.com/marcelduran --first --location bar
646+
test marcelduran.com --first --location foo
647+
test marcelduran.com --first --location bar
648648
```
649649
It schedules the 2 tests above returning an array of size 2 in the same order as in `commands.txt` file:
650650
```javascript
@@ -675,8 +675,8 @@ By running multiple sync tests, i.e. with either `--poll` or `--wait`, all tests
675675

676676
`commands.txt`:
677677
```
678-
test twitter.com/marcelduran --first --location foo --poll --timeout 60
679-
test twitter.com/marcelduran --first --location bar --poll --timeout 60
678+
test marcelduran.com --first --location foo --poll --timeout 60
679+
test marcelduran.com --first --location bar --poll --timeout 60
680680
```
681681

682682
## Test Specs (Continuous Integration)
@@ -705,7 +705,7 @@ https://github.com/marcelduran/webpagetest-api/issues
705705
## License
706706

707707
Copyright 2013 Twitter Inc.
708-
Copyright 2017 Google Inc.
709-
Copyright 2017 Marcel Duran and other contributors
708+
Copyright 2020 Google Inc.
709+
Copyright 2020 Marcel Duran and other contributors
710710

711711
Licensed under the [MIT License](https://github.com/marcelduran/webpagetest-api/raw/master/LICENSE)

bin/webpagetest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
/**
44
* Copyright (c) 2013, Twitter Inc.
5-
* Copyright (c) 2015, Google Inc.
6-
* Copyright (c) 2015, Marcel Duran and other contributors
5+
* Copyright (c) 2020, Google Inc.
6+
* Copyright (c) 2020, Marcel Duran and other contributors
77
* Released under the MIT License
88
*/
99

lib/helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Copyright (c) 2013, Twitter Inc.
3-
* Copyright (c) 2015, Google Inc.
4-
* Copyright (c) 2015, Marcel Duran and other contributors
3+
* Copyright (c) 2020, Google Inc.
4+
* Copyright (c) 2020, Marcel Duran and other contributors
55
* Released under the MIT License
66
*/
77

lib/mapping.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Copyright (c) 2013, Twitter Inc.
3-
* Copyright (c) 2015, Google Inc.
4-
* Copyright (c) 2015, Marcel Duran and other contributors
3+
* Copyright (c) 2020, Google Inc.
4+
* Copyright (c) 2020, Marcel Duran and other contributors
55
* Released under the MIT License
66
*/
77

lib/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Copyright (c) 2013, Twitter Inc.
3-
* Copyright (c) 2015, Google Inc.
4-
* Copyright (c) 2015, Marcel Duran and other contributors
3+
* Copyright (c) 2020, Google Inc.
4+
* Copyright (c) 2020, Marcel Duran and other contributors
55
* Released under the MIT License
66
*/
77

lib/specs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Copyright (c) 2013, Twitter Inc.
3-
* Copyright (c) 2015, Google Inc.
4-
* Copyright (c) 2015, Marcel Duran and other contributors
3+
* Copyright (c) 2020, Google Inc.
4+
* Copyright (c) 2020, Marcel Duran and other contributors
55
* Released under the MIT License
66
*/
77

lib/webpagetest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* Copyright (c) 2013, Twitter Inc.
3-
* Copyright (c) 2015, Google Inc.
4-
* Copyright (c) 2015, Marcel Duran and other contributors
3+
* Copyright (c) 2020, Google Inc.
4+
* Copyright (c) 2020, Marcel Duran and other contributors
55
* Released under the MIT License
66
*/
77

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpagetest",
3-
"version": "0.3.10",
3+
"version": "0.4.0",
44
"description": "WebPageTest API wrapper for NodeJS",
55
"author": "Marcel Duran <[email protected]> (http://github.com/marcelduran)",
66
"homepage": "http://github.com/marcelduran/webpagetest-api",
@@ -28,13 +28,13 @@
2828
"node": ">=4.9.1 "
2929
},
3030
"dependencies": {
31-
"commander": "2.10.0",
32-
"csv": "^5.3.0",
33-
"entities": "^1.1.1",
34-
"mocha": "^5.2.0",
35-
"xml2js": "^0.4.19"
31+
"commander": "^5.1.0",
32+
"csv": "^5.3.2",
33+
"entities": "^2.0.3",
34+
"mocha": "^8.0.1",
35+
"xml2js": "^0.4.23"
3636
},
3737
"devDependencies": {
38-
"nock": "~9.0.13"
38+
"nock": "^12.0.3"
3939
}
4040
}

0 commit comments

Comments
 (0)