apostrophe-rss
Advanced tools
Comparing version 0.5.0 to 0.5.1
16
index.js
@@ -15,14 +15,7 @@ var feedparser = require('feedparser'); | ||
var self = this; | ||
self._apos = apos; | ||
self._app = app; | ||
var lifetime = options.lifetime ? options.lifetime : 60000; | ||
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); | ||
}; | ||
self._apos.mixinModuleAssets(self, 'rss', __dirname, options); | ||
@@ -43,5 +36,2 @@ // This widget should be part of the default set of widgets for areas | ||
// Serve our assets | ||
app.get('/apos-rss/*', apos.static(__dirname + '/public')); | ||
apos.itemTypes.rss = { | ||
@@ -48,0 +38,0 @@ widget: true, |
{ | ||
"name": "apostrophe-rss", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Adds an RSS feed widget to the Apostrophe content management system", | ||
@@ -29,2 +29,2 @@ "main": "index.js", | ||
"devDependencies": {} | ||
} | ||
} |
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
7682
108