adapt-authoring-courseassets 1.2.2 → 1.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.
@@ -15,15 +15,13 @@ jobs:
15
15
  id-token: write # to enable use of OIDC for trusted publishing and npm provenance
16
16
  steps:
17
17
  - name: Checkout
18
- uses: actions/checkout@v3
18
+ uses: actions/checkout@v4
19
19
  with:
20
20
  fetch-depth: 0
21
21
  - name: Setup Node.js
22
- uses: actions/setup-node@v3
22
+ uses: actions/setup-node@v4
23
23
  with:
24
24
  node-version: 'lts/*'
25
- - name: Update npm
26
- run: npm install -g npm@latest
27
25
  - name: Install dependencies
28
26
  run: npm install
29
27
  - name: Release
@@ -8,10 +8,8 @@ import { extractAssetIds } from './utils.js'
8
8
  class CourseAssetsModule extends AbstractApiModule {
9
9
  /** @override */
10
10
  async setValues () {
11
- /** @ignore */ this.root = 'courseassets'
12
11
  /** @ignore */ this.schemaName = 'courseasset'
13
12
  /** @ignore */ this.collectionName = 'courseassets'
14
- /** @ignore */ this.routes = this.DEFAULT_ROUTES.filter(r => r.route === '/query')
15
13
  }
16
14
 
17
15
  /**
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "adapt-authoring-courseassets",
3
- "version": "1.2.2",
4
- "description": "Module for managing courseassets",
5
- "homepage": "https://github.com/deltanetdan/adapt-authoring-courseassets",
3
+ "version": "1.3.0",
4
+ "description": "Module for managing course asset usage",
5
+ "homepage": "https://github.com/adapt-security/adapt-authoring-courseassets",
6
6
  "license": "GPL-3.0",
7
7
  "type": "module",
8
8
  "main": "index.js",
@@ -12,17 +12,6 @@
12
12
  "adapt-authoring-content": "^2.0.0",
13
13
  "adapt-authoring-core": "^2.0.0"
14
14
  },
15
- "peerDependenciesMeta": {
16
- "adapt-authoring-assets": {
17
- "optional": true
18
- },
19
- "adapt-authoring-content": {
20
- "optional": true
21
- },
22
- "adapt-authoring-core": {
23
- "optional": true
24
- }
25
- },
26
15
  "devDependencies": {
27
16
  "@semantic-release/git": "^10.0.1",
28
17
  "conventional-changelog-eslint": "^6.0.0",
package/routes.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "root": "courseassets",
3
+ "useDefaultRoutes": false,
4
+ "routes": [
5
+ {
6
+ "route": "/query",
7
+ "validate": false,
8
+ "modifying": false,
9
+ "handlers": { "post": "query" },
10
+ "permissions": { "post": ["read:${scope}"] }
11
+ }
12
+ ]
13
+ }