adapt-authoring-adaptframework 2.0.4 → 2.0.5

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.
@@ -77,7 +77,7 @@ class AdaptFrameworkImport {
77
77
  * @constructor
78
78
  * @param {AdaptFrameworkImportOptions} options
79
79
  */
80
- constructor ({ importPath, userId, language, assetFolders, tags, isDryRun, importContent = true, importPlugins = true, migrateContent = true, updatePlugins = false, removeSource = true }) {
80
+ constructor ({ importPath, userId, language, assetFolders, tags, isDryRun = false, importContent = true, importPlugins = true, migrateContent = true, updatePlugins = false, removeSource = true }) {
81
81
  const e = App.instance.errors.INVALID_PARAMS
82
82
  if (!importPath) throw e.setData({ params: ['importPath'] })
83
83
  if (!userId) throw e.setData({ params: ['userId'] })
@@ -275,8 +275,8 @@ class AdaptFrameworkImport {
275
275
  [this.importCourseData, !isDryRun && importContent],
276
276
  [this.generateSummary]
277
277
  ]
278
- for (const [func, test] of tasks) {
279
- if (test === true || test === undefined) await func.call(this)
278
+ for (const task of tasks) {
279
+ if (task.length < 2 || task[1]) await task[0].call(this)
280
280
  }
281
281
  await this.postImportHook.invoke(this)
282
282
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-adaptframework",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Adapt framework integration for the Adapt authoring tool",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-adaptframework",
6
6
  "license": "GPL-3.0",