webpagetest
Advanced tools
Comparing version 0.7.1 to 0.7.3
@@ -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 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5845790
131
894
117398
11
+ Addedxml2js@0.6.2(transitive)
- Removedxml2js@0.4.23(transitive)
Updatedxml2js@^0.6.2