@pushrocks/smartfeed
Advanced tools
Comparing version 1.0.4 to 1.0.5
import { Feed, IFeedOptions } from './smartfeed.classes.feed'; | ||
import * as plugins from './smartfeed.plugins'; | ||
export declare class Smartfeed { | ||
createFeed(optionsArg: IFeedOptions): Feed; | ||
parseFeedFromString(rssFeedString: string): Promise<plugins.rssParser.Output>; | ||
parseFeedFromUrl(urlArg: string): Promise<plugins.rssParser.Output>; | ||
} |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Smartfeed = void 0; | ||
const smartfeed_classes_feed_1 = require("./smartfeed.classes.feed"); | ||
const plugins = __importStar(require("./smartfeed.plugins")); | ||
class Smartfeed { | ||
@@ -10,4 +30,14 @@ createFeed(optionsArg) { | ||
} | ||
async parseFeedFromString(rssFeedString) { | ||
const parser = new plugins.rssParser(); | ||
const resultingFeed = await parser.parseString(rssFeedString); | ||
return resultingFeed; | ||
} | ||
async parseFeedFromUrl(urlArg) { | ||
const parser = new plugins.rssParser(); | ||
const resultingFeed = await parser.parseURL(urlArg); | ||
return resultingFeed; | ||
} | ||
} | ||
exports.Smartfeed = Smartfeed; | ||
//# sourceMappingURL=data:application/json;base64,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UFTLEVBQUUsQ0FBQztRQUN2QyxNQUFNLGFBQWEsR0FBRyxNQUFNLE1BQU0sQ0FBQyxRQUFRLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDcEQsT0FBTyxhQUFhLENBQUM7SUFDdkIsQ0FBQztDQUNGO0FBakJELDhCQWlCQyJ9 |
@@ -0,2 +1,3 @@ | ||
import rssParser from 'rss-parser'; | ||
import * as feed from 'feed'; | ||
export { feed }; | ||
export { rssParser, feed }; |
@@ -21,7 +21,12 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.feed = void 0; | ||
exports.feed = exports.rssParser = void 0; | ||
// third party scope | ||
const rss_parser_1 = __importDefault(require("rss-parser")); | ||
exports.rssParser = rss_parser_1.default; | ||
const feed = __importStar(require("feed")); | ||
exports.feed = feed; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRmZWVkLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGZlZWQucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsb0JBQW9CO0FBQ3BCLDJDQUE2QjtBQUczQixvQkFBSSJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRmZWVkLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGZlZWQucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsb0JBQW9CO0FBQ3BCLDREQUFtQztBQUlqQyxvQkFKSyxvQkFBUyxDQUlMO0FBSFgsMkNBQTZCO0FBSTNCLG9CQUFJIn0= |
{ | ||
"name": "@pushrocks/smartfeed", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"private": false, | ||
@@ -24,3 +24,4 @@ "description": "create and parse feeds", | ||
"dependencies": { | ||
"feed": "^4.2.1" | ||
"feed": "^4.2.1", | ||
"rss-parser": "^3.9.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "browserslist": [ |
@@ -9,2 +9,14 @@ import { Feed, IFeedOptions } from './smartfeed.classes.feed'; | ||
} | ||
public async parseFeedFromString(rssFeedString: string) { | ||
const parser = new plugins.rssParser(); | ||
const resultingFeed = await parser.parseString(rssFeedString); | ||
return resultingFeed; | ||
} | ||
public async parseFeedFromUrl(urlArg: string) { | ||
const parser = new plugins.rssParser(); | ||
const resultingFeed = await parser.parseURL(urlArg); | ||
return resultingFeed; | ||
} | ||
} |
// third party scope | ||
import rssParser from 'rss-parser'; | ||
import * as feed from 'feed'; | ||
export { | ||
rssParser, | ||
feed | ||
}; |
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
17231
281
2
+ Addedrss-parser@^3.9.0
+ Addedentities@2.2.0(transitive)
+ Addedrss-parser@3.13.0(transitive)
+ Addedxml2js@0.5.0(transitive)
+ Addedxmlbuilder@11.0.1(transitive)