From 51804519aca6155c2d42c7219fec63a443f01f33 Mon Sep 17 00:00:00 2001 From: Matt <7128721+TobiTenno@users.noreply.github.com> Date: Tue, 19 Nov 2024 10:20:46 -0600 Subject: [PATCH] refactor: replace assert with with (#345) --- handlers/RSS.js | 2 +- handlers/Twitter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/RSS.js b/handlers/RSS.js index ae34375..447af5f 100644 --- a/handlers/RSS.js +++ b/handlers/RSS.js @@ -1,6 +1,6 @@ import RssFeedEmitter from 'rss-feed-emitter'; -import feeds from '../resources/rssFeeds.json' assert { type: 'json' }; +import feeds from '../resources/rssFeeds.json' with { type: 'json' }; import { logger } from '../utilities/index.js'; /** diff --git a/handlers/Twitter.js b/handlers/Twitter.js index 7299e7a..5ef7e0b 100644 --- a/handlers/Twitter.js +++ b/handlers/Twitter.js @@ -1,6 +1,6 @@ import Twitter from 'twitter'; -import toWatch from '../resources/tweeters.json' assert { type: 'json' }; +import toWatch from '../resources/tweeters.json' with { type: 'json' }; import { logger } from '../utilities/index.js'; import { twiClientInfo, TWITTER_TIMEOUT } from '../utilities/env.js';