adapt-authoring-contentplugin 1.2.1 → 1.2.3
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.
|
@@ -298,7 +298,7 @@ class ContentPluginModule extends AbstractApiModule {
|
|
|
298
298
|
async installPlugins (plugins, options = { strict: false, force: false }) {
|
|
299
299
|
const errors = []
|
|
300
300
|
const installed = []
|
|
301
|
-
|
|
301
|
+
for (const [name, versionOrPath] of plugins) {
|
|
302
302
|
try {
|
|
303
303
|
const data = await this.installPlugin(name, versionOrPath, options)
|
|
304
304
|
installed.push(data)
|
|
@@ -307,7 +307,7 @@ class ContentPluginModule extends AbstractApiModule {
|
|
|
307
307
|
this.log('warn', 'PLUGIN_INSTALL_FAIL', name, e?.data?.error ?? e)
|
|
308
308
|
errors.push(e)
|
|
309
309
|
}
|
|
310
|
-
}
|
|
310
|
+
}
|
|
311
311
|
if (errors.length && options.strict) {
|
|
312
312
|
throw this.app.errors.CONTENTPLUGIN_INSTALL_FAILED
|
|
313
313
|
.setData({ errors })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-contentplugin",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
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",
|
|
@@ -15,32 +15,12 @@
|
|
|
15
15
|
"semver": "^7.6.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"adapt-authoring-adaptframework": "^
|
|
19
|
-
"adapt-authoring-content": "^2.
|
|
20
|
-
"adapt-authoring-core": "^
|
|
18
|
+
"adapt-authoring-adaptframework": "^1.9.3",
|
|
19
|
+
"adapt-authoring-content": "^1.2.3",
|
|
20
|
+
"adapt-authoring-core": "^1.7.0",
|
|
21
21
|
"adapt-authoring-jsonschema": "^1.2.0",
|
|
22
22
|
"adapt-authoring-middleware": "^1.0.2",
|
|
23
|
-
"adapt-authoring-mongodb": "^
|
|
24
|
-
},
|
|
25
|
-
"peerDependenciesMeta": {
|
|
26
|
-
"adapt-authoring-adaptframework": {
|
|
27
|
-
"optional": true
|
|
28
|
-
},
|
|
29
|
-
"adapt-authoring-content": {
|
|
30
|
-
"optional": true
|
|
31
|
-
},
|
|
32
|
-
"adapt-authoring-core": {
|
|
33
|
-
"optional": true
|
|
34
|
-
},
|
|
35
|
-
"adapt-authoring-jsonschema": {
|
|
36
|
-
"optional": true
|
|
37
|
-
},
|
|
38
|
-
"adapt-authoring-middleware": {
|
|
39
|
-
"optional": true
|
|
40
|
-
},
|
|
41
|
-
"adapt-authoring-mongodb": {
|
|
42
|
-
"optional": true
|
|
43
|
-
}
|
|
23
|
+
"adapt-authoring-mongodb": "^1.1.3"
|
|
44
24
|
},
|
|
45
25
|
"devDependencies": {
|
|
46
26
|
"@semantic-release/git": "^10.0.1",
|