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

apostrophe-rss

Package Overview
Dependencies
Maintainers
8
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apostrophe-rss - npm Package Compare versions

Comparing version 0.0.3 to 0.0.5

public/css/content.css

23

index.js
var feedparser = require('feedparser');
var extend = require('extend');
var cache = {};

@@ -16,4 +16,10 @@

self.pushAsset = function(type, name) {
return apos.pushAsset(type, name, __dirname, '/apos-rss');
self.pushAsset = function(type, name, optionsArg) {
var options = {};
if (optionsArg) {
extend(true, options, optionsArg);
}
options.fs = __dirname;
options.web = '/apos-rss';
return apos.pushAsset(type, name, options);
};

@@ -26,3 +32,3 @@

// Include our editor template in the markup when aposTemplates is called
self.pushAsset('template', 'rssEditor');
self.pushAsset('template', 'rssEditor', { when: 'user' });

@@ -33,4 +39,4 @@ // Make sure that aposScripts and aposStylesheets summon our assets

// resources needed also by non-editing users.)
self.pushAsset('script', 'rss');
self.pushAsset('stylesheet', 'rss');
self.pushAsset('script', 'editor', { when: 'user' });
self.pushAsset('stylesheet', 'content', { when: 'always' });

@@ -44,2 +50,3 @@ // Serve our assets

css: 'rss',
icon: 'rss',
sanitize: function(item) {

@@ -49,4 +56,3 @@ if (!item.feed.match(/^https?\:\/\//)) {

}
item.limit = parseInt(item.limit);
console.log(item);
item.limit = parseInt(item.limit, 10);
},

@@ -72,3 +78,2 @@ render: function(data) {

articles = articles.slice(0, item.limit);
console.log('SLICED: ', articles.length);

@@ -75,0 +80,0 @@ // map is native in node

{
"name": "apostrophe-rss",
"version": "0.0.3",
"version": "0.0.5",
"description": "Adds an RSS feed widget to the Apostrophe content management system",

@@ -25,5 +25,6 @@ "main": "index.js",

"dependencies": {
"feedparser": "~0.11.0"
"feedparser": "~0.11.0",
"extend": "~1.1.3"
},
"devDependencies": {}
}
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