adapt-authoring-content 1.2.2 → 1.2.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.
@@ -1,19 +1,15 @@
1
- name: Add to main project
1
+ # Calls the org-level reusable workflow to add PRs to the TODO Board
2
+
3
+ name: Add PR to Project
2
4
 
3
5
  on:
4
- issues:
5
- types:
6
- - opened
7
6
  pull_request:
8
7
  types:
9
8
  - opened
9
+ - reopened
10
10
 
11
11
  jobs:
12
12
  add-to-project:
13
- name: Add to main project
14
- runs-on: ubuntu-latest
15
- steps:
16
- - uses: actions/add-to-project@v0.1.0
17
- with:
18
- project-url: https://github.com/orgs/adapt-security/projects/5
19
- github-token: ${{ secrets.PROJECTS_SECRET }}
13
+ uses: adapt-security/.github/.github/workflows/new.yml@main
14
+ secrets:
15
+ PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }}
@@ -9,27 +9,19 @@ import apidefs from './apidefs.js'
9
9
  class ContentModule extends AbstractApiModule {
10
10
  /** @override */
11
11
  async setValues () {
12
- const server = await this.app.waitForModule('server')
13
- /** @ignore */ this.root = 'content'
14
- /** @ignore */ this.collectionName = 'content'
15
- /** @ignore */ this.schemaName = 'content'
16
- /** @ignore */ this.router = server.api.createChildRouter('content')
12
+ /** @ignore */ this.root = this.collectionName = this.schemaName = 'content'
17
13
  this.useDefaultRouteConfig()
18
- /** @ignore */ this.routes = [
19
- {
20
- route: '/insertrecusive',
21
- handlers: { post: this.handleInsertRecursive.bind(this) },
22
- permissions: { post: ['write:content'] },
23
- meta: apidefs.insertrecursive
24
- },
25
- {
26
- route: '/clone',
27
- handlers: { post: this.handleClone.bind(this) },
28
- permissions: { post: ['write:content'] },
29
- meta: apidefs.clone
30
- },
31
- ...this.routes
32
- ]
14
+ this.routes.push({
15
+ route: '/insertrecursive',
16
+ handlers: { post: this.handleInsertRecursive.bind(this) },
17
+ permissions: { post: ['write:content'] },
18
+ meta: apidefs.insertrecursive
19
+ }, {
20
+ route: '/clone',
21
+ handlers: { post: this.handleClone.bind(this) },
22
+ permissions: { post: ['write:content'] },
23
+ meta: apidefs.clone
24
+ })
33
25
  }
34
26
 
35
27
  /** @override */
package/package.json CHANGED
@@ -1,21 +1,44 @@
1
1
  {
2
2
  "name": "adapt-authoring-content",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "Module for managing Adapt content",
5
5
  "homepage": "https://github.com/adapt-security/adapt-authoring-content",
6
6
  "license": "GPL-3.0",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "repository": "github:adapt-security/adapt-authoring-content",
10
+ "peerDependencies": {
11
+ "adapt-authoring-authored": "^1.1.1",
12
+ "adapt-authoring-contentplugin": "^1.0.6",
13
+ "adapt-authoring-core": "^1.7.0",
14
+ "adapt-authoring-jsonschema": "^1.2.0",
15
+ "adapt-authoring-mongodb": "^1.1.3",
16
+ "adapt-authoring-tags": "^1.0.2"
17
+ },
18
+ "peerDependenciesMeta": {
19
+ "adapt-authoring-authored": {
20
+ "optional": true
21
+ },
22
+ "adapt-authoring-contentplugin": {
23
+ "optional": true
24
+ },
25
+ "adapt-authoring-core": {
26
+ "optional": true
27
+ },
28
+ "adapt-authoring-jsonschema": {
29
+ "optional": true
30
+ },
31
+ "adapt-authoring-mongodb": {
32
+ "optional": true
33
+ },
34
+ "adapt-authoring-tags": {
35
+ "optional": true
36
+ }
37
+ },
10
38
  "devDependencies": {
11
- "@semantic-release/commit-analyzer": "^13.0.1",
12
39
  "@semantic-release/git": "^10.0.1",
13
- "@semantic-release/github": "^12.0.2",
14
- "@semantic-release/npm": "^13.1.2",
15
- "@semantic-release/release-notes-generator": "^14.1.0",
16
40
  "conventional-changelog-eslint": "^6.0.0",
17
41
  "semantic-release": "^25.0.2",
18
- "semantic-release-replace-plugin": "^1.2.7",
19
42
  "standard": "^17.1.0"
20
43
  },
21
44
  "release": {
@@ -1,16 +0,0 @@
1
- name: Add labelled PRs to project
2
-
3
- on:
4
- pull_request:
5
- types: [ labeled ]
6
-
7
- jobs:
8
- add-to-project:
9
- if: ${{ github.event.label.name == 'dependencies' }}
10
- name: Add to main project
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/add-to-project@v0.1.0
14
- with:
15
- project-url: https://github.com/orgs/adapt-security/projects/5
16
- github-token: ${{ secrets.PROJECTS_SECRET }}