<commit_before>const execute = require('@sweetalert2/execute')
const fs = require('fs')

const log = console.log // eslint-disable-line

;(async () => {
  log(`Purge jsdelivr cache...`)

  log(' - @latest')
  await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@latest`, { skipLogging: true })
  log(' - @8')
  await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@8`, { skipLogging: true })
  log(' - @7')
  await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@7`, { skipLogging: true })

  const distFiles = fs.readdirSync('dist')
  for (const distFile of distFiles) {
    log(` - ${distFile}`)
    await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@latest/dist/${distFile}`, { skipLogging: true })
    await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@7/dist/${distFile}`, { skipLogging: true })
  }

  log('OK!')
})().catch(console.error)<commit_msg>chore: improve jsdelivr cache purge<commit_after>const execute = require('@sweetalert2/execute')
const fs = require('fs')

const log = console.log // eslint-disable-line

;(async () => {
  log(`Purge jsdelivr cache...`)

  const distFiles = fs.readdirSync('dist')

  for (const version of ['latest', '7', '8']) {
    log(` - @${version}`)
    await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@${version}`, { skipLogging: true })

    // dist
    for (const distFile of distFiles) {
      log(`   - dist/${distFile}`)
      await execute(`curl --silent https://purge.jsdelivr.net/npm/sweetalert2@${version}/dist/${distFile}`, { skipLogging: true })
    }
  }

  log('OK!')
})().catch(console.error)
{'fraction_non_alphanumeric': 0.1937799043062201, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 3.9205882352941175, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 7, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5272322', 'n_tokens_mistral': 614, 'n_tokens_neox': 590, 'n_words': 113}