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

webpagetest

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpagetest - npm Package Compare versions

Comparing version 0.7.1 to 0.7.3

assets/images/recipe-banner.png

19

lib/webpagetest.js

@@ -95,2 +95,3 @@ /**

if (encoding !== "binary") {
options.headers["X-WPT-API-KEY"] = this.config.key;
options.headers["accept-encoding"] = "gzip,deflate";

@@ -322,5 +323,2 @@ options.headers["User-Agent"] = "WebpagetestNodeWrapper/v0.6.0";

var query = helper.setQuery(mapping.commands.locations, options);
if (!query.k && this.config.key && !options.allLocations) {
query.k = this.config.key;
}
return api.call(this, paths.locations, callback, query, options);

@@ -343,5 +341,6 @@ }

var query = helper.setQuery(mapping.commands.testBalance, options);
if (!query.k && this.config.key) {
query.k = this.config.key;
}
// API key (to pass with the parans) (depricated)
// if (!query.k && this.config.key) {
// query.k = this.config.key;
// }
return api.call(this, paths.testBalance, callback, query, options);

@@ -372,6 +371,6 @@ }

// API key
if (!query.k && this.config.key) {
query.k = this.config.key;
}
// API key (to pass with the parans) (depricated)
// if (!query.k && this.config.key) {
// query.k = this.config.key;
// }

@@ -378,0 +377,0 @@ // synchronous tests with results

{
"name": "webpagetest",
"version": "0.7.1",
"version": "0.7.3",
"description": "WebPageTest API wrapper for NodeJS",

@@ -37,3 +37,3 @@ "author": "WebPageTest <github@WebPageTest.com> (http://github.com/WebPageTest)",

"mocha": "^10.1.0",
"xml2js": "^0.4.23"
"xml2js": "^0.6.2"
},

@@ -43,2 +43,2 @@ "devDependencies": {

}
}
}

@@ -1,2 +0,2 @@

<p align="center"><img src="https://docs.webpagetest.org/img/wpt-navy-logo.png" alt="WebPageTest Logo" /></p>
<p align="center"><img width="80%" src="assets/images/recipe-banner.png" alt="WebPageTest Logo" /></p>
<p align="center"><a href="https://docs.webpagetest.org/api/integrations/#officially-supported-integrations">Learn about more WebPageTest API Integrations in our docs</a></p>

@@ -46,5 +46,8 @@

const WebPageTest = require("webpagetest");
const wpt = new WebPageTest("www.webpagetest.org");
wpt.runTest("https://docs.webpagetest.org/api/integrations/", (err, data) => {
const wptServer = "www.webpagetest.org";
const wpt = new WebPageTest(wptServer, "YOUR_API_KEY");
const siteToTest = "https://docs.webpagetest.org/api/integrations/";
wpt.runTest(siteToTest, (err, data) => {
console.log(err || data);

@@ -51,0 +54,0 @@ });

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