Comparing version 0.1.10 to 0.1.12
@@ -42,2 +42,5 @@ var oembed = require('./oembed.js'); | ||
for (i = 0; (i < self._whitelist.length); i++) { | ||
if (!parsed.hostname) { | ||
continue; | ||
} | ||
if (self.inDomain(self._whitelist[i], parsed.hostname)) { | ||
@@ -55,2 +58,5 @@ good = true; | ||
for (i = 0; i < self._endpoints.length; i++) { | ||
if (!parsed.hostname) { | ||
continue; | ||
} | ||
if (self.inDomain(self._endpoints[i].domain, parsed.hostname)) { | ||
@@ -57,0 +63,0 @@ endpoint = self._endpoints[i].endpoint; |
{ | ||
"name": "oembetter", | ||
"version": "0.1.10", | ||
"version": "0.1.12", | ||
"description": "A modern oembed client. Allows you to register filters to improve or supply oembed support for sites that don't normally have it. You can also supply a whitelist of services you trust to prevent XSS attacks.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -187,2 +187,4 @@ # oembetter | ||
0.1.11: don't crash when evaluating whitelists if `parsed.hostname` somehow manages not to be set. | ||
0.1.10: user agent string to please Facebook. Thanks to `equinox7`. | ||
@@ -189,0 +191,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
30223
503
208