Skip to content

Commit

Permalink
Upgrade epg-grabber package
Browse files Browse the repository at this point in the history
  • Loading branch information
freearhey committed Nov 25, 2023
1 parent 83c80ce commit 13fc521
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 27 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
"cron": "^2.4.3",
"csv-parser": "^3.0.0",
"cwait": "^1.1.2",
"dayjs": "^1.11.7",
"epg-grabber": "^0.35.0",
"dayjs": "^1.11.10",
"epg-grabber": "^0.36.0",
"epg-parser": "^0.2.0",
"eslint": "^8.17.0",
"eslint-config-prettier": "^9.0.0",
Expand Down
6 changes: 3 additions & 3 deletions scripts/core/grabber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class Grabber {
this.logger = logger
this.queue = queue
this.options = options
this.grabber = process.env.NODE_ENV === 'test' ? new EPGGrabberMock() : new EPGGrabber()
}

async grab(): Promise<{ channels: Collection; programs: Collection }> {
Expand Down Expand Up @@ -48,11 +49,10 @@ export class Grabber {
config.delay = delay
}

const grabber =
process.env.NODE_ENV === 'test' ? new EPGGrabberMock(config) : new EPGGrabber(config)
const _programs = await grabber.grab(
const _programs = await this.grabber.grab(
channel,
date,
config,
(data: GrabCallbackData, error: Error | null) => {
const { programs, date } = data

Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1951,10 +1951,10 @@ cwait@^1.1.2:
dependencies:
cdata "^0.1.1"

dayjs@^1.10.4, dayjs@^1.11.6, dayjs@^1.11.7:
version "1.11.7"
resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.7.tgz"
integrity sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ==
dayjs@^1.10.4, dayjs@^1.11.10, dayjs@^1.11.6:
version "1.11.10"
resolved "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz"
integrity sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==

debug@^3.1.0:
version "3.2.7"
Expand Down Expand Up @@ -2137,10 +2137,10 @@ entities@^4.2.0, entities@^4.3.0, entities@^4.4.0:
resolved "https://registry.npmjs.org/entities/-/entities-4.4.0.tgz"
integrity sha512-oYp7156SP8LkeGD0GF85ad1X9Ai79WtRsZ2gxJqtBuzH+98YUV6jkHEKlZkMbcrjJjIVJNIDP/3WL9wQkoPbWA==

epg-grabber@^0.35.0:
version "0.35.0"
resolved "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.35.0.tgz"
integrity sha512-DhvciNp3xCTG9VzYR9GU5uDjujW/rG3CgBCy1eP2BEI6I0V5okGWPmEGf73V/IK+hZnbpskjmbeziaK4RXOtBg==
epg-grabber@^0.36.0:
version "0.36.0"
resolved "https://registry.npmjs.org/epg-grabber/-/epg-grabber-0.36.0.tgz"
integrity sha512-N8bqGP7ofr5ckhFvHtbZHZaIlJbJwIOqYG213/pWG/qvOjQQ7sVYgrQtMt0r/7LGJtvaBDyqNVWbiVaUtEkZSw==
dependencies:
axios "^1.6.1"
axios-cache-interceptor "^0.10.3"
Expand Down

0 comments on commit 13fc521

Please sign in to comment.