adapt-authoring-jsonschema 1.4.4 → 1.4.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/lib/JsonSchemaModule.js
CHANGED
|
@@ -60,7 +60,7 @@ class JsonSchemaModule extends AbstractModule {
|
|
|
60
60
|
}
|
|
61
61
|
})
|
|
62
62
|
|
|
63
|
-
this.onReady()
|
|
63
|
+
this._schemasRegistered = this.onReady()
|
|
64
64
|
.then(() => this.app.waitForModule('config', 'errors'))
|
|
65
65
|
.then(() => {
|
|
66
66
|
// Update library options from config
|
|
@@ -226,6 +226,7 @@ class JsonSchemaModule extends AbstractModule {
|
|
|
226
226
|
* @return {Promise<Schema>} The schema instance
|
|
227
227
|
*/
|
|
228
228
|
async getSchema (schemaName, options = {}) {
|
|
229
|
+
await this._schemasRegistered
|
|
229
230
|
try {
|
|
230
231
|
return await this._library.getSchema(schemaName, options)
|
|
231
232
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-jsonschema",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.6",
|
|
4
4
|
"description": "Module to add support for the JSON schema specification",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-jsonschema",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"repository": "github:adapt-security/adapt-authoring-jsonschema",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"adapt-authoring-core": "^2.0.0",
|
|
18
|
-
"adapt-schemas": "^
|
|
18
|
+
"adapt-schemas": "^2.0.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"adapt-authoring-config": "^1.1.4",
|