adapt-authoring-server 2.2.5 → 2.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapt-authoring-server",
3
- "version": "2.2.5",
3
+ "version": "2.3.0",
4
4
  "description": "Provides an Express application routing and more",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-server",
6
6
  "license": "GPL-3.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@adaptlearning/semantic-release-config": "^1.0.0",
21
- "adapt-schemas": "^1.1.0",
21
+ "adapt-schemas": "^3.1.0",
22
22
  "standard": "^17.1.0"
23
23
  },
24
24
  "release": {
@@ -34,9 +34,9 @@ describe('loadRouteConfig()', () => {
34
34
  // Build shared schema registry with the server's base schemas, mirroring how
35
35
  // adapt-authoring-jsonschema auto-discovers schema/ files from all dependencies at startup
36
36
  schemas = new Schemas()
37
- await schemas.init()
38
- await schemas.registerSchema(path.join(SCHEMA_DIR, 'routes.schema.json'))
39
- await schemas.registerSchema(path.join(SCHEMA_DIR, 'routeitem.schema.json'))
37
+ schemas.init()
38
+ schemas.registerSchema(path.join(SCHEMA_DIR, 'routes.schema.json'))
39
+ schemas.registerSchema(path.join(SCHEMA_DIR, 'routeitem.schema.json'))
40
40
 
41
41
  // Mock App.instance.waitForModule so loadRouteConfig can resolve 'jsonschema'
42
42
  // without a running app instance
@@ -150,7 +150,7 @@ describe('loadRouteConfig()', () => {
150
150
  }
151
151
  }
152
152
  })
153
- await schemas.registerSchema(schemaFile)
153
+ schemas.registerSchema(schemaFile)
154
154
  try {
155
155
  const dir = path.join(tmpDir, 'consumer-fields')
156
156
  await mkdir(dir, { recursive: true })
@@ -188,7 +188,7 @@ describe('loadRouteConfig()', () => {
188
188
  }
189
189
  }
190
190
  })
191
- await schemas.registerSchema(schemaFile)
191
+ schemas.registerSchema(schemaFile)
192
192
  try {
193
193
  const dir = path.join(tmpDir, 'missing-route-field')
194
194
  await mkdir(dir, { recursive: true })
@@ -217,7 +217,7 @@ describe('loadRouteConfig()', () => {
217
217
  }
218
218
  }
219
219
  })
220
- await schemas.registerSchema(schemaFile)
220
+ schemas.registerSchema(schemaFile)
221
221
  try {
222
222
  const dir = path.join(tmpDir, 'missing-schemaname')
223
223
  await mkdir(dir, { recursive: true })
@@ -270,7 +270,7 @@ describe('loadRouteConfig()', () => {
270
270
  }
271
271
 
272
272
  before(async () => {
273
- await schemas.registerSchema(await writeJson(path.join(tmpDir, 'perm-routes.schema.json'), permSchema))
273
+ schemas.registerSchema(await writeJson(path.join(tmpDir, 'perm-routes.schema.json'), permSchema))
274
274
  })
275
275
 
276
276
  after(() => schemas.deregisterSchema('perm-routes'))