adapt-authoring-adaptframework 2.0.4 → 2.0.6
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.
- package/index.js +1 -0
- package/lib/AdaptFrameworkImport.js +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* @namespace adaptframework
|
|
4
4
|
*/
|
|
5
5
|
export { default } from './lib/AdaptFrameworkModule.js'
|
|
6
|
+
export { copyFrameworkSource } from './lib/utils.js'
|
|
6
7
|
export { default as AdaptFrameworkBuild } from './lib/AdaptFrameworkBuild.js'
|
|
7
8
|
export { default as AdaptFrameworkImport } from './lib/AdaptFrameworkImport.js'
|
|
@@ -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
|
|
279
|
-
if (
|
|
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.
|
|
3
|
+
"version": "2.0.6",
|
|
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",
|