From 43f1a1dd1b44065663a797603012394c52a9baea Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 13 May 2023 13:31:58 -0300 Subject: use ESM module syntax & update tui-lib Exciting update! This doesn't make any substantial changes exactly but does update the most quickly-archaic parts of older Node code. --- smart-playlist.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'smart-playlist.js') diff --git a/smart-playlist.js b/smart-playlist.js index 19294db..c8abf62 100644 --- a/smart-playlist.js +++ b/smart-playlist.js @@ -1,7 +1,7 @@ -const { getCrawlerByName } = require('./crawlers') -const { isGroup, filterTracks, sourceSymbol, updatePlaylistFormat } = require('./playlist-utils') +import {getCrawlerByName} from './crawlers.js' +import {filterTracks, isGroup, updatePlaylistFormat} from './playlist-utils.js' -async function processSmartPlaylist(item, topItem = true) { +export default async function processSmartPlaylist(item, topItem = true) { // Object.assign is used so that we keep original properties, e.g. "name" // or "apply". (It's also used so we return copies of original objects.) @@ -133,5 +133,3 @@ async function processSmartPlaylist(item, topItem = true) { return newItem } } - -module.exports = processSmartPlaylist -- cgit 1.3.0-6-gf8a5