adapt-authoring-jsonschema 1.5.0 → 1.5.1
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.
|
@@ -10,7 +10,8 @@ permissions:
|
|
|
10
10
|
issues: write
|
|
11
11
|
pull-requests: write
|
|
12
12
|
id-token: write
|
|
13
|
+
packages: write
|
|
13
14
|
|
|
14
15
|
jobs:
|
|
15
16
|
release:
|
|
16
|
-
uses: adaptlearning/semantic-release-config/.github/workflows/release.yml@master
|
|
17
|
+
uses: adaptlearning/semantic-release-config/.github/workflows/release.yml@master
|
package/lib/JsonSchemaModule.js
CHANGED
|
@@ -234,7 +234,7 @@ class JsonSchemaModule extends AbstractModule {
|
|
|
234
234
|
return this._library.getSchema(schemaName, options)
|
|
235
235
|
} catch (e) {
|
|
236
236
|
if (e instanceof SchemaError && e.code === 'MISSING_SCHEMA') {
|
|
237
|
-
throw this.app.errors.MISSING_SCHEMA.setData({ schemaName })
|
|
237
|
+
throw this.app.errors.MISSING_SCHEMA.setData({ schemaName: e.data?.schemaName ?? schemaName })
|
|
238
238
|
}
|
|
239
239
|
throw e
|
|
240
240
|
}
|
package/package.json
CHANGED