i-promise-page-metrics
Advanced tools
Comparing version 0.0.6 to 0.0.7
13
index.js
@@ -49,8 +49,7 @@ "use strict"; | ||
const opts = { | ||
url: "http://www.checkmoz.com/moz-metrics/index_ajax.php", | ||
url: "http://www.checkmoz.com/moz-metrics/ajax.php", | ||
form: { | ||
"enter_url": url, | ||
"checks1": "68719476736", | ||
"checks2": "34359738368", | ||
"checks3": "16384" | ||
"checks2": "34359738368" | ||
} | ||
@@ -66,6 +65,6 @@ }; | ||
return { | ||
da: $(tds[3]).text(), | ||
pa: $(tds[5]).text(), | ||
ranks: $(tds[7]).text(), | ||
links: $(tds[19]).text() | ||
da: $(tds[3]).text().trim() || 0, | ||
pa: $(tds[5]).text().trim() || 0, | ||
ranks: $(tds[9]).text().trim() || 0, | ||
links: $(tds[11]).text().trim() || 0 | ||
}; | ||
@@ -72,0 +71,0 @@ }); |
{ | ||
"name": "i-promise-page-metrics", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Fetches different page metrics for a given URL", |
@@ -34,3 +34,3 @@ "use strict"; | ||
response.pa.should.be.above(10); | ||
response.ranks.should.be.above(1); | ||
response.ranks.should.equal(0); | ||
response.links.should.be.above(100); | ||
@@ -37,0 +37,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
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
8729
101