File tree Expand file tree Collapse file tree 5 files changed +13
-9
lines changed
Expand file tree Collapse file tree 5 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ npm install telegram-rss
2323## Example Usage
2424
2525``` javascript
26- import telegram_rss from ' telegram-rss'
26+ import { telegram_rss } from ' telegram-rss'
2727
2828void async function main () {
2929
@@ -37,7 +37,7 @@ void async function main() {
3737```
3838
3939``` javascript
40- const telegram_rss = require (' telegram-rss' ). default
40+ const { telegram_rss } = require (' telegram-rss' )
4141
4242void async function main () {
4343
@@ -53,7 +53,7 @@ void async function main() {
5353## Example App
5454
5555``` javascript
56- const telegram_rss = require (' telegram-rss' ). default
56+ const { telegram_rss } = require (' telegram-rss' )
5757
5858const http = require (' http' )
5959
Original file line number Diff line number Diff line change 11{
22 "name" : " telegram-rss" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " A simple converter Telegram channel to RSS Feeds" ,
55 "main" : " dist/cjs/telegram-rss.js" ,
66 "module" : " dist/mjs/telegram-rss.js" ,
2222 "prepare-build" : " if exist .\\ dist (echo ok) && mkdir dist && del /S /Q .\\ dist\\ *" ,
2323 "prepare-build-win" : " if not exist .\\ dist (mkdir dist) else (rmdir /S /Q .\\ dist\\ )"
2424 },
25+ "files" : [
26+ " dist/" ,
27+ " LICENSE"
28+ ],
2529 "repository" : {
2630 "type" : " git" ,
2731 "url" : " git+https://github.com/nuzulul/telegram-rss.git"
5155 "typescript" : " ^5.3.3"
5256 },
5357 "dependencies" : {
54- "telegram-scraper" : " ^1.0.0 "
58+ "telegram-scraper" : " ^1.0.1 "
5559 }
5660}
Original file line number Diff line number Diff line change 1- import telegram_scraper from 'telegram-scraper'
1+ import { telegram_scraper } from 'telegram-scraper'
22
3- export default async function telegram_rss ( channel ) {
3+ export async function telegram_rss ( channel ) {
44
55 var HtmlEntities = function ( ) { } ;
66
Original file line number Diff line number Diff line change 1- import telegram_rss from './../src/telegram-rss'
1+ import { telegram_rss } from './../src/telegram-rss'
22
33import http from 'http'
44
Original file line number Diff line number Diff line change 1- const telegram_rss = require ( './../src/telegram-rss' ) . default
1+ const { telegram_rss} = require ( './../src/telegram-rss' )
22
33const http = require ( 'http' )
44
You can’t perform that action at this time.
0 commit comments