adapt-authoring-config 1.1.3 → 1.1.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.
@@ -138,9 +138,13 @@ class ConfigModule extends AbstractModule {
138
138
  */
139
139
  async storeSchemaSettings () {
140
140
  const jsonschema = await this.app.waitForModule('jsonschema')
141
- const deps = Object.values(this.app.dependencies)
142
- // run core first as other modules may use its config values
143
- await this.processModuleSchema(deps.find(d => d.name === this.app.name), jsonschema)
141
+ const isCore = d => d.name === this.app.name
142
+ const deps = Object.values(this.app.dependencies).sort((a, b) => {
143
+ // put core first as other modules may use its config values
144
+ if (isCore(a)) return -1
145
+ if (isCore(b)) return 1
146
+ return a.name.localeCompare(b.name)
147
+ })
144
148
  const promises = deps.map(d => this.processModuleSchema(d, jsonschema))
145
149
  let hasErrored = false;
146
150
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-config",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "A configuration module for the Adapt authoring tool.",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-config",
6
6
  "license": "GPL-3.0",