adapt-authoring-contentplugin 1.5.3 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,9 +34,7 @@ export async function backupPluginVersion (pluginPath, pluginName, log) {
34
34
  }
35
35
  }
36
36
  const backupDir = `${pluginPath}-v${existingVersion}`
37
- try {
38
- await fs.rm(backupDir, { recursive: true, force: true })
39
- } catch (e) {} // ignore if doesn't exist
37
+ await fs.rm(backupDir, { recursive: true, force: true })
40
38
  await fs.rename(pluginPath, backupDir)
41
39
  if (log) log('info', `Backed up ${pluginName}@${existingVersion}`)
42
40
  return backupDir
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-contentplugin",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Module for managing framework plugins",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-contentplugin",
6
6
  "repository": "github:adapt-security/adapt-authoring-contentplugin",