solid-server 5.8.4 → 5.8.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.
- package/lib/handlers/get.js +2 -2
- package/package.json +20 -20
package/lib/handlers/get.js
CHANGED
|
@@ -98,7 +98,7 @@ async function handler (req, res, next) {
|
|
|
98
98
|
const isHtmlResource = mimeTypeByExt && mimeTypeByExt.includes('html')
|
|
99
99
|
const useDataBrowser = ldp.dataBrowserPath && (
|
|
100
100
|
container ||
|
|
101
|
-
RDFs.includes(contentType) && !isHtmlResource && !ldp.suppressDataBrowser)
|
|
101
|
+
[...RDFs, 'text/markdown'].includes(contentType) && !isHtmlResource && !ldp.suppressDataBrowser)
|
|
102
102
|
|
|
103
103
|
if (useDataBrowser) {
|
|
104
104
|
res.setHeader('Content-Type', 'text/html')
|
|
@@ -136,7 +136,7 @@ async function handler (req, res, next) {
|
|
|
136
136
|
headers
|
|
137
137
|
})) return
|
|
138
138
|
|
|
139
|
-
res.
|
|
139
|
+
res.set(headers)
|
|
140
140
|
return stream.pipe(res)
|
|
141
141
|
}
|
|
142
142
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-server",
|
|
3
3
|
"description": "Solid server on top of the file-system",
|
|
4
|
-
"version": "5.8.
|
|
4
|
+
"version": "5.8.5",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Tim Berners-Lee",
|
|
7
7
|
"email": "timbl@w3.org"
|
|
@@ -64,21 +64,21 @@
|
|
|
64
64
|
"@solid/oidc-auth-manager": "^0.24.3",
|
|
65
65
|
"@solid/oidc-op": "^0.11.6",
|
|
66
66
|
"async-lock": "^1.4.1",
|
|
67
|
-
"body-parser": "^1.20.
|
|
67
|
+
"body-parser": "^1.20.3",
|
|
68
68
|
"bootstrap": "^3.4.1",
|
|
69
69
|
"cached-path-relative": "^1.1.0",
|
|
70
70
|
"camelize": "^1.0.1",
|
|
71
|
-
"cheerio": "^1.0.0
|
|
71
|
+
"cheerio": "^1.0.0",
|
|
72
72
|
"colorette": "^2.0.20",
|
|
73
73
|
"commander": "^8.3.0",
|
|
74
74
|
"cors": "^2.8.5",
|
|
75
|
-
"debug": "^4.
|
|
76
|
-
"express": "^4.
|
|
75
|
+
"debug": "^4.4.0",
|
|
76
|
+
"express": "^4.21.2",
|
|
77
77
|
"express-accept-events": "^0.3.0",
|
|
78
78
|
"express-handlebars": "^5.3.5",
|
|
79
79
|
"express-negotiate-events": "^0.3.0",
|
|
80
80
|
"express-prep": "^0.6.4",
|
|
81
|
-
"express-session": "^1.18.
|
|
81
|
+
"express-session": "^1.18.1",
|
|
82
82
|
"extend": "^3.0.2",
|
|
83
83
|
"from2": "^2.3.0",
|
|
84
84
|
"fs-extra": "^10.1.0",
|
|
@@ -86,26 +86,26 @@
|
|
|
86
86
|
"glob": "^7.2.3",
|
|
87
87
|
"global-tunnel-ng": "^2.7.1",
|
|
88
88
|
"handlebars": "^4.7.8",
|
|
89
|
-
"http-proxy-middleware": "^2.0.
|
|
89
|
+
"http-proxy-middleware": "^2.0.7",
|
|
90
90
|
"inquirer": "^8.2.6",
|
|
91
91
|
"into-stream": "^6.0.0",
|
|
92
92
|
"ip-range-check": "0.2.0",
|
|
93
93
|
"is-ip": "^3.1.0",
|
|
94
94
|
"li": "^1.3.0",
|
|
95
|
-
"mashlib": "^1.10.
|
|
95
|
+
"mashlib": "^1.10.4",
|
|
96
96
|
"mime-types": "^2.1.35",
|
|
97
|
-
"negotiator": "^0.6.
|
|
97
|
+
"negotiator": "^0.6.4",
|
|
98
98
|
"node-fetch": "^2.7.0",
|
|
99
99
|
"node-forge": "^1.3.1",
|
|
100
100
|
"node-mailer": "^0.1.1",
|
|
101
|
-
"nodemailer": "^6.
|
|
101
|
+
"nodemailer": "^6.10.0",
|
|
102
102
|
"oidc-op-express": "^0.0.3",
|
|
103
103
|
"owasp-password-strength-test": "^1.3.0",
|
|
104
104
|
"recursive-readdir": "^2.2.3",
|
|
105
105
|
"request": "^2.88.2",
|
|
106
106
|
"rimraf": "^3.0.2",
|
|
107
107
|
"solid-auth-client": "^2.5.6",
|
|
108
|
-
"solid-namespace": "^0.5.
|
|
108
|
+
"solid-namespace": "^0.5.4",
|
|
109
109
|
"solid-ws": "^0.4.3",
|
|
110
110
|
"text-encoder-lite": "^2.0.0",
|
|
111
111
|
"the-big-username-blacklist": "^1.5.2",
|
|
@@ -113,28 +113,28 @@
|
|
|
113
113
|
"urijs": "^1.19.11",
|
|
114
114
|
"uuid": "^8.3.2",
|
|
115
115
|
"valid-url": "^1.0.9",
|
|
116
|
-
"validator": "^13.
|
|
116
|
+
"validator": "^13.12.0",
|
|
117
117
|
"vhost": "^3.0.2"
|
|
118
118
|
},
|
|
119
119
|
"devDependencies": {
|
|
120
|
-
"@cxres/structured-headers": "^2.0.0-
|
|
120
|
+
"@cxres/structured-headers": "^2.0.0-nesting.0",
|
|
121
121
|
"@solid/solid-auth-oidc": "0.3.0",
|
|
122
|
-
"c8": "^10.1.
|
|
123
|
-
"chai": "^4.
|
|
124
|
-
"chai-as-promised": "7.1.
|
|
122
|
+
"c8": "^10.1.3",
|
|
123
|
+
"chai": "^4.5.0",
|
|
124
|
+
"chai-as-promised": "7.1.2",
|
|
125
125
|
"cross-env": "7.0.3",
|
|
126
126
|
"dirty-chai": "2.0.1",
|
|
127
127
|
"eslint": "^7.32.0",
|
|
128
128
|
"localstorage-memory": "1.0.3",
|
|
129
|
-
"mocha": "^10.
|
|
130
|
-
"nock": "^13.5.
|
|
131
|
-
"node-mocks-http": "^1.
|
|
129
|
+
"mocha": "^10.8.2",
|
|
130
|
+
"nock": "^13.5.6",
|
|
131
|
+
"node-mocks-http": "^1.16.2",
|
|
132
132
|
"pre-commit": "1.2.2",
|
|
133
133
|
"prep-fetch": "^0.1.0",
|
|
134
134
|
"randombytes": "2.1.0",
|
|
135
135
|
"sinon": "12.0.1",
|
|
136
136
|
"sinon-chai": "3.7.0",
|
|
137
|
-
"snyk": "^1.
|
|
137
|
+
"snyk": "^1.1295.3",
|
|
138
138
|
"standard": "16.0.4",
|
|
139
139
|
"supertest": "^6.3.4",
|
|
140
140
|
"turtle-validator": "1.1.1",
|