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

oembetter

Package Overview
Dependencies
Maintainers
9
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oembetter - npm Package Compare versions

Comparing version 0.1.10 to 0.1.12

6

index.js

@@ -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;

2

package.json
{
"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 @@

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