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.
@@ -25,7 +25,7 @@ jobs:
25
25
  - name: Update npm
26
26
  run: npm install -g npm@latest
27
27
  - name: Install dependencies
28
- run: npm ci
28
+ run: npm install
29
29
  - name: Release
30
30
  env:
31
31
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -8,6 +8,5 @@ jobs:
8
8
  - uses: actions/setup-node@master
9
9
  with:
10
10
  node-version: 'lts/*'
11
- cache: 'npm'
12
- - run: npm ci
11
+ - run: npm install
13
12
  - run: npx standard
@@ -10,6 +10,5 @@ jobs:
10
10
  - uses: actions/setup-node@v4
11
11
  with:
12
12
  node-version: 'lts/*'
13
- cache: 'npm'
14
- - run: npm ci
13
+ - run: npm install
15
14
  - run: npm test
@@ -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
- await Promise.all(plugins.map(async ([name, versionOrPath]) => {
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.1",
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": "^2.0.0",
19
- "adapt-authoring-content": "^2.0.0",
20
- "adapt-authoring-core": "^2.0.0",
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": "^2.0.0"
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",