New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@financial-times/x-live-blog-wrapper

Package Overview
Dependencies
Maintainers
18
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@financial-times/x-live-blog-wrapper - npm Package Compare versions

Comparing version 0.0.3 to 1.6.2

19

dist/LiveBlogWrapper.cjs.js

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

if (!post || !post.postId) {
if (!post || !post.id) {
return;

@@ -114,7 +114,6 @@ }

}, 0);
}; // const eventSource = new EventSource(`https://next-live-event.ft.com/v2/liveblog/${liveBlogPackageUuid}`, { withCredentials: true });
};
var eventSource = new EventSource("http://localhost:3003/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: false
var eventSource = new EventSource("https://next-live-event.ft.com/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: true
});

@@ -152,5 +151,5 @@ eventSource.addEventListener('insert-post', function (event) {

invokeAction('deletePost', [post.postId]);
invokeAction('deletePost', [post.id]);
dispatchLiveUpdateEvent('LiveBlogWrapper.DELETE_POST', {
postId: post.postId
postId: post.id
});

@@ -170,3 +169,3 @@ });

var index = props.posts.findIndex(function (post) {
return post.postId === updated.postId;
return post.id === updated.id;
});

@@ -184,3 +183,3 @@

var index = props.posts.findIndex(function (post) {
return post.postId === postId;
return post.id === postId;
});

@@ -205,3 +204,3 @@

return xEngine.h(xLiveBlogPost.LiveBlogPost, Object.assign({
key: "live-blog-post-".concat(post.postId)
key: "live-blog-post-".concat(post.id)
}, post, {

@@ -208,0 +207,0 @@ articleUrl: articleUrl,

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

if (!post || !post.postId) {
if (!post || !post.id) {
return;

@@ -114,7 +114,6 @@ }

}, 0);
}; // const eventSource = new EventSource(`https://next-live-event.ft.com/v2/liveblog/${liveBlogPackageUuid}`, { withCredentials: true });
};
var eventSource = new EventSource("http://localhost:3003/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: false
var eventSource = new EventSource("https://next-live-event.ft.com/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: true
});

@@ -152,5 +151,5 @@ eventSource.addEventListener('insert-post', function (event) {

invokeAction('deletePost', [post.postId]);
invokeAction('deletePost', [post.id]);
dispatchLiveUpdateEvent('LiveBlogWrapper.DELETE_POST', {
postId: post.postId
postId: post.id
});

@@ -170,3 +169,3 @@ });

var index = props.posts.findIndex(function (post) {
return post.postId === updated.postId;
return post.id === updated.id;
});

@@ -184,3 +183,3 @@

var index = props.posts.findIndex(function (post) {
return post.postId === postId;
return post.id === postId;
});

@@ -205,3 +204,3 @@

return xEngine.h(xLiveBlogPost.LiveBlogPost, Object.assign({
key: "live-blog-post-".concat(post.postId)
key: "live-blog-post-".concat(post.id)
}, post, {

@@ -208,0 +207,0 @@ articleUrl: articleUrl,

@@ -41,3 +41,3 @@ import { h } from '@financial-times/x-engine';

if (!post || !post.postId) {
if (!post || !post.id) {
return;

@@ -110,7 +110,6 @@ }

}, 0);
}; // const eventSource = new EventSource(`https://next-live-event.ft.com/v2/liveblog/${liveBlogPackageUuid}`, { withCredentials: true });
};
var eventSource = new EventSource("http://localhost:3003/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: false
var eventSource = new EventSource("https://next-live-event.ft.com/v2/liveblog/".concat(liveBlogPackageUuid), {
withCredentials: true
});

@@ -148,5 +147,5 @@ eventSource.addEventListener('insert-post', function (event) {

invokeAction('deletePost', [post.postId]);
invokeAction('deletePost', [post.id]);
dispatchLiveUpdateEvent('LiveBlogWrapper.DELETE_POST', {
postId: post.postId
postId: post.id
});

@@ -166,3 +165,3 @@ });

var index = props.posts.findIndex(function (post) {
return post.postId === updated.postId;
return post.id === updated.id;
});

@@ -180,3 +179,3 @@

var index = props.posts.findIndex(function (post) {
return post.postId === postId;
return post.id === postId;
});

@@ -201,3 +200,3 @@

return h(LiveBlogPost, Object.assign({
key: "live-blog-post-".concat(post.postId)
key: "live-blog-post-".concat(post.id)
}, post, {

@@ -204,0 +203,0 @@ articleUrl: articleUrl,

{
"name": "@financial-times/x-live-blog-wrapper",
"version": "0.0.3",
"version": "1.6.2",
"description": "",

@@ -18,5 +18,5 @@ "main": "dist/LiveBlogWrapper.cjs.js",

"dependencies": {
"@financial-times/x-engine": "^1.4.1",
"@financial-times/x-live-blog-post": "^1.4.1",
"@financial-times/x-interaction": "^1.4.1"
"@financial-times/x-engine": "^1.6.2",
"@financial-times/x-live-blog-post": "^1.6.2",
"@financial-times/x-interaction": "^1.6.2"
},

@@ -23,0 +23,0 @@ "devDependencies": {

@@ -156,3 +156,3 @@ # x-live-blog-wrapper

const wrapperElement = document.querySelector(
`[data-x-dash-id="x-dash-element-id"]`
`[data-live-blog-wrapper-id="x-dash-element-id"]`
);

@@ -169,3 +169,3 @@

document.addEventListener('LiveBlogWrapper.DELETE_POST',
wrapperElement.addEventListener('LiveBlogWrapper.DELETE_POST',
(ev) => {

@@ -178,3 +178,3 @@ const { postId } = ev.detail;

document.addEventListener('LiveBlogWrapper.UPDATE_POST',
wrapperElement.addEventListener('LiveBlogWrapper.UPDATE_POST',
(ev) => {

@@ -181,0 +181,0 @@ const { post } = ev.detail;

@@ -10,7 +10,7 @@ import React from 'react';

{
postId: 12345,
id: 12345,
title: 'Title 1',
content: '<p>Post 1</p>',
bodyHTML: '<p>Post 1</p>',
isBreakingNews: false,
publishedTimestamp: '2020-05-13T18:52:28.000Z',
publishedDate: '2020-05-13T18:52:28.000Z',
articleUrl: 'https://www.ft.com/content/2b665ec7-a88f-3998-8f39-5371f9c791ed',

@@ -20,7 +20,7 @@ showShareButtons: true,

{
postId: 12346,
id: 12346,
title: 'Title 2',
content: '<p>Post 2</p>',
bodyHTML: '<p>Post 2</p>',
isBreakingNews: true,
publishedTimestamp: '2020-05-13T19:52:28.000Z',
publishedDate: '2020-05-13T19:52:28.000Z',
articleUrl: 'https://www.ft.com/content/2b665ec7-a88f-3998-8f39-5371f9c791ed',

@@ -30,7 +30,7 @@ showShareButtons: true,

{
postId: 12347,
id: 12347,
title: 'Title 3',
content: '<p>Post 3</p>',
bodyHTML: '<p>Post 3</p>',
isBreakingNews: false,
publishedTimestamp: '2020-05-13T20:52:28.000Z',
publishedDate: '2020-05-13T20:52:28.000Z',
articleUrl: 'https://www.ft.com/content/2b665ec7-a88f-3998-8f39-5371f9c791ed',

@@ -37,0 +37,0 @@ showShareButtons: true,

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