diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-05-13 13:31:58 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-05-13 13:34:21 -0300 |
commit | 43f1a1dd1b44065663a797603012394c52a9baea (patch) | |
tree | 3df4c15a1249d68541a208827e20e436ca30295a /smart-playlist.js | |
parent | e8a55f10dd9749ad240b165e318db0a1d2f00a9a (diff) |
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.
Diffstat (limited to 'smart-playlist.js')
-rw-r--r-- | smart-playlist.js | 8 |
1 files changed, 3 insertions, 5 deletions
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 |