solid-server 5.8.4 → 5.8.6
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/.github/workflows/ci.yml +2 -2
- package/lib/handlers/get.js +2 -2
- package/package.json +27 -27
package/.github/workflows/ci.yml
CHANGED
|
@@ -17,7 +17,7 @@ jobs:
|
|
|
17
17
|
|
|
18
18
|
strategy:
|
|
19
19
|
matrix:
|
|
20
|
-
node-version: [ '^
|
|
20
|
+
node-version: [ '^22.14.0' ]
|
|
21
21
|
os: [ubuntu-latest]
|
|
22
22
|
|
|
23
23
|
steps:
|
|
@@ -53,7 +53,7 @@ jobs:
|
|
|
53
53
|
# test code
|
|
54
54
|
- run: npm run standard
|
|
55
55
|
- run: npm run validate
|
|
56
|
-
- run: npm run
|
|
56
|
+
- run: npm run nyc
|
|
57
57
|
# Test global install of the package
|
|
58
58
|
- run: npm pack .
|
|
59
59
|
- run: npm install -g solid-server-*.tgz
|
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.6",
|
|
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,27 @@
|
|
|
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.
|
|
95
|
+
"mashlib": "^1.11.1",
|
|
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
|
+
"nyc": "^15.1.0",
|
|
102
103
|
"oidc-op-express": "^0.0.3",
|
|
103
104
|
"owasp-password-strength-test": "^1.3.0",
|
|
104
105
|
"recursive-readdir": "^2.2.3",
|
|
105
106
|
"request": "^2.88.2",
|
|
106
107
|
"rimraf": "^3.0.2",
|
|
107
108
|
"solid-auth-client": "^2.5.6",
|
|
108
|
-
"solid-namespace": "^0.5.
|
|
109
|
+
"solid-namespace": "^0.5.4",
|
|
109
110
|
"solid-ws": "^0.4.3",
|
|
110
111
|
"text-encoder-lite": "^2.0.0",
|
|
111
112
|
"the-big-username-blacklist": "^1.5.2",
|
|
@@ -113,28 +114,27 @@
|
|
|
113
114
|
"urijs": "^1.19.11",
|
|
114
115
|
"uuid": "^8.3.2",
|
|
115
116
|
"valid-url": "^1.0.9",
|
|
116
|
-
"validator": "^13.
|
|
117
|
+
"validator": "^13.12.0",
|
|
117
118
|
"vhost": "^3.0.2"
|
|
118
119
|
},
|
|
119
120
|
"devDependencies": {
|
|
120
|
-
"@cxres/structured-headers": "^2.0.0-
|
|
121
|
+
"@cxres/structured-headers": "^2.0.0-nesting.0",
|
|
121
122
|
"@solid/solid-auth-oidc": "0.3.0",
|
|
122
|
-
"
|
|
123
|
-
"chai": "
|
|
124
|
-
"chai-as-promised": "7.1.1",
|
|
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",
|
|
@@ -146,12 +146,12 @@
|
|
|
146
146
|
"main": "index.js",
|
|
147
147
|
"scripts": {
|
|
148
148
|
"build": "echo nothing to build",
|
|
149
|
-
"solid": "node
|
|
149
|
+
"solid": "node ./bin/solid",
|
|
150
150
|
"standard": "standard \"{bin,examples,lib,test}/**/*.js\"",
|
|
151
151
|
"validate": "node ./test/validate-turtle.js",
|
|
152
|
-
"
|
|
153
|
-
"mocha": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha
|
|
154
|
-
"mocha-integration": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha
|
|
152
|
+
"nyc": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 nyc --reporter=text-summary mocha --recursive test/unit/ test/integration/",
|
|
153
|
+
"mocha": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/unit/ test/integration/",
|
|
154
|
+
"mocha-integration": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/http-test.js",
|
|
155
155
|
"mocha-account-creation-oidc": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-creation-oidc-test.js",
|
|
156
156
|
"mocha-account-manager": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-manager-test.js",
|
|
157
157
|
"mocha-account-template": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/account-template-test.js",
|
|
@@ -161,11 +161,11 @@
|
|
|
161
161
|
"mocha-ldp": "cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 mocha --recursive test/integration/ldp-test.js",
|
|
162
162
|
"prepublishOnly": "npm test",
|
|
163
163
|
"postpublish": "git push --follow-tags",
|
|
164
|
-
"test": "npm run standard && npm run validate && npm run
|
|
164
|
+
"test": "npm run standard && npm run validate && npm run nyc",
|
|
165
165
|
"clean": "rimraf config/templates config/views",
|
|
166
166
|
"reset": "rimraf .db data && npm run clean"
|
|
167
167
|
},
|
|
168
|
-
"
|
|
168
|
+
"nyc": {
|
|
169
169
|
"reporter": [
|
|
170
170
|
"html",
|
|
171
171
|
"text-summary"
|
|
@@ -188,6 +188,6 @@
|
|
|
188
188
|
"solid": "bin/solid"
|
|
189
189
|
},
|
|
190
190
|
"engines": {
|
|
191
|
-
"node": ">=20.
|
|
191
|
+
"node": ">=20.19.0 <21 || >=22.14.0"
|
|
192
192
|
}
|
|
193
193
|
}
|