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

embedza

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embedza - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

4

assets/player.js
$(document).on('click', '.ez-player-placeholder', function (event) {
if (event.target.nodeName === 'A') {
return;
}
if (event.target.nodeName === 'A') return;

@@ -6,0 +4,0 @@ var $el = $(this);

@@ -0,1 +1,7 @@

2.1.0 / 2017-01-27
------------------
- Reworked player layout to allow `max-width` use.
2.0.0 / 2016-12-03

@@ -2,0 +8,0 @@ ------------------

@@ -38,2 +38,3 @@ 'use strict';

// - cache (Cache) - optional, custom cache class, default `new Cache()`
// - request - default options for `got` in `.request()` method
//

@@ -40,0 +41,0 @@ function Embedza(options) {

@@ -31,3 +31,3 @@ 'use strict';

var placeholder = '<iframe class="ez-block-frame" src="' + _.escape(href) + '" allowfullscreen></iframe>';
var placeholder = '<iframe class="ez-player-frame" src="' + _.escape(href) + '" allowfullscreen></iframe>';

@@ -52,18 +52,20 @@ var duration;

<div class="ez-player ez-domain-<%= self.domain.replace(/[.]/g, '_') %> ez-block" data-placeholder="<%- placeholder %>" style="padding-bottom: <%= _.round(100 / player.media.width * player.media.height, 4) %>%;">
<div class="ez-player-placeholder">
<div class="ez-player-picture" style="background-image: url('<%- thumbnail.href %>');"></div>
<% if (self.meta.title) { %>
<div class="ez-player-header">
<div class="ez-player-title">
<a target="_blank" href="<%- self.src %>" rel="nofollow"><%- self.meta.title %></a>
<div class="ez-player ez-domain-<%= self.domain.replace(/[.]/g, '_') %> ez-block" data-placeholder="<%- placeholder %>">
<div class="ez-player-container" style="padding-bottom: <%= _.round(100 / player.media.width * player.media.height, 4) %>%;">
<div class="ez-player-placeholder">
<div class="ez-player-picture" style="background-image: url('<%- thumbnail.href %>');"></div>
<% if (self.meta.title) { %>
<div class="ez-player-header">
<div class="ez-player-title">
<a target="_blank" href="<%- self.src %>" rel="nofollow"><%- self.meta.title %></a>
</div>
</div>
</div>
<% } %>
<div class="ez-player-button"></div>
<div class="ez-player-logo"></div>
<% if (duration) { %>
<div class="ez-player-duration"><%= duration.join(':') %></div>
<% } %>
<% } %>
<div class="ez-player-button"></div>
<div class="ez-player-logo"></div>
<% if (duration) { %>
<div class="ez-player-duration"><%= duration.join(':') %></div>
<% } %>
</div>
</div>
</div>`;
{
"name": "embedza",
"version": "2.0.0",
"version": "2.1.0",
"description": "Create HTML snippets/embeds from URLs using info from oEmbed, Open Graph, meta tags.",

@@ -47,4 +47,5 @@ "keywords": [

"build-demo": "rm -rf ./demo/embedza.js && browserify -r ./ -s embedza -o ./demo/embedza.js",
"gh-pages": "git subtree split --prefix demo -b gh-pages && git push -f origin gh-pages:gh-pages && git branch -D gh-pages"
"gh-pages": "git subtree split --prefix demo -b gh-pages && git push -f origin gh-pages:gh-pages && git branch -D gh-pages",
"heroku-postbuild": "npm install express pug"
}
}

@@ -21,4 +21,3 @@ embedza

[**Live Demo**](https://nodeca.github.io/embedza/) (browser-only, restricted to
vimeo, run local dev server to see more).
[**Live Demo**](https://embedza.herokuapp.com/)

@@ -25,0 +24,0 @@

@@ -45,4 +45,5 @@ // Test and debug server

if (!url) {
res.render('index', result);
return;
result.url = url = 'https://www.youtube.com/watch?v=o0u4M6vppCI';
// res.render('index', result);
// return;
}

@@ -83,7 +84,7 @@

.listen(3000, function () {
.listen(process.env.PORT || 3000, function () {
let host = this.address().address;
let port = this.address().port;
console.log('Embedza listening at http://%s:%s', host, port);
console.log(`Embedza listening at http://${host}:${port}`);
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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