adapt-authoring-adaptframework 1.9.3 → 1.9.5
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,11 +15,11 @@ 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@
|
|
18
|
+
uses: actions/checkout@master
|
|
19
19
|
with:
|
|
20
20
|
fetch-depth: 0
|
|
21
21
|
- name: Setup Node.js
|
|
22
|
-
uses: actions/setup-node@
|
|
22
|
+
uses: actions/setup-node@master
|
|
23
23
|
with:
|
|
24
24
|
node-version: 'lts/*'
|
|
25
25
|
- name: Update npm
|
|
@@ -452,7 +452,6 @@ class AdaptFrameworkBuild {
|
|
|
452
452
|
const zipPath = path.join(this.dir, this.isPublish ? 'build' : '')
|
|
453
453
|
const outputPath = `${this.dir}.zip`
|
|
454
454
|
await zipper.zip(zipPath, outputPath, { removeSource: true })
|
|
455
|
-
await fs.rm(this.dir, { recursive: true })
|
|
456
455
|
return outputPath
|
|
457
456
|
}
|
|
458
457
|
|
|
@@ -246,7 +246,7 @@ class AdaptFrameworkUtils {
|
|
|
246
246
|
}
|
|
247
247
|
if (action === 'publish' || action === 'export') {
|
|
248
248
|
res.set('content-disposition', `attachment; filename="${await AdaptFrameworkUtils.slugifyTitle(buildData)}.zip"`)
|
|
249
|
-
return res.sendFile(path.resolve(buildData.location), next)
|
|
249
|
+
return res.sendFile(path.resolve(buildData.location), e => e && next(e))
|
|
250
250
|
}
|
|
251
251
|
if (action === 'preview') {
|
|
252
252
|
if (!req.auth.user) {
|
|
@@ -254,7 +254,8 @@ class AdaptFrameworkUtils {
|
|
|
254
254
|
}
|
|
255
255
|
const filePath = path.resolve(buildData.location, req.path.slice(req.path.indexOf(id) + id.length + 1) || 'index.html')
|
|
256
256
|
await res.sendFile(filePath, e => {
|
|
257
|
-
if (e
|
|
257
|
+
if (!e) return
|
|
258
|
+
if (e.code === 'ENOENT') e = App.instance.errors.NOT_FOUND.setData({ type: 'file', id: filePath })
|
|
258
259
|
next(e)
|
|
259
260
|
})
|
|
260
261
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adapt-authoring-adaptframework",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.5",
|
|
4
4
|
"description": "Adapt framework integration for the Adapt authoring tool",
|
|
5
5
|
"homepage": "https://github.com/adapt-security/adapt-authoring-adaptframework",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -8,31 +8,59 @@
|
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"repository": "github:adapt-security/adapt-authoring-adaptframework",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"adapt-authoring-browserslist": "
|
|
12
|
-
"adapt-authoring-content": "
|
|
13
|
-
"adapt-authoring-contentplugin": "
|
|
14
|
-
"adapt-authoring-
|
|
15
|
-
"adapt-authoring-
|
|
16
|
-
"adapt-authoring-
|
|
17
|
-
"adapt-
|
|
18
|
-
"adapt-
|
|
11
|
+
"adapt-authoring-browserslist": "^1.2.1",
|
|
12
|
+
"adapt-authoring-content": "^1.2.3",
|
|
13
|
+
"adapt-authoring-contentplugin": "^1.0.3",
|
|
14
|
+
"adapt-authoring-core": "^1.7.0",
|
|
15
|
+
"adapt-authoring-courseassets": "^1.0.3",
|
|
16
|
+
"adapt-authoring-coursetheme": "^1.0.2",
|
|
17
|
+
"adapt-authoring-spoortracking": "^1.0.2",
|
|
18
|
+
"adapt-cli": "^3.3.3",
|
|
19
|
+
"adapt-octopus": "^0.1.2",
|
|
19
20
|
"bytes": "^3.1.2",
|
|
20
|
-
"fs-extra": "11.3.
|
|
21
|
-
"glob": "^
|
|
21
|
+
"fs-extra": "11.3.3",
|
|
22
|
+
"glob": "^13.0.0",
|
|
22
23
|
"lodash": "^4.17.21",
|
|
23
24
|
"semver": "^7.6.0",
|
|
24
25
|
"upath": "^2.0.1",
|
|
25
|
-
"zipper": "github:adapt-security/zipper#v1.
|
|
26
|
+
"zipper": "github:adapt-security/zipper#v1.1.0"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"adapt-authoring-assets": "^1.3.1",
|
|
30
|
+
"adapt-authoring-auth": "^1.0.3",
|
|
31
|
+
"adapt-authoring-jsonschema": "^1.1.5",
|
|
32
|
+
"adapt-authoring-middleware": "^1.0.1",
|
|
33
|
+
"adapt-authoring-mongodb": "^1.1.2",
|
|
34
|
+
"adapt-authoring-server": "^1.2.0",
|
|
35
|
+
"adapt-authoring-tags": "^1.0.1"
|
|
36
|
+
},
|
|
37
|
+
"peerDependenciesMeta": {
|
|
38
|
+
"adapt-authoring-assets": {
|
|
39
|
+
"optional": true
|
|
40
|
+
},
|
|
41
|
+
"adapt-authoring-auth": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"adapt-authoring-jsonschema": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
"adapt-authoring-middleware": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"adapt-authoring-mongodb": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"adapt-authoring-server": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"adapt-authoring-tags": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
26
59
|
},
|
|
27
60
|
"devDependencies": {
|
|
28
|
-
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
29
61
|
"@semantic-release/git": "^10.0.1",
|
|
30
|
-
"@semantic-release/github": "^12.0.2",
|
|
31
|
-
"@semantic-release/npm": "^13.1.2",
|
|
32
|
-
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
33
62
|
"conventional-changelog-eslint": "^6.0.0",
|
|
34
63
|
"semantic-release": "^25.0.2",
|
|
35
|
-
"semantic-release-replace-plugin": "^1.2.7",
|
|
36
64
|
"standard": "^17.1.0"
|
|
37
65
|
},
|
|
38
66
|
"release": {
|
|
@@ -56,8 +84,7 @@
|
|
|
56
84
|
{
|
|
57
85
|
"assets": [
|
|
58
86
|
"package.json"
|
|
59
|
-
]
|
|
60
|
-
"message": "Chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
|
87
|
+
]
|
|
61
88
|
}
|
|
62
89
|
]
|
|
63
90
|
]
|