solid-server 5.8.3 → 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.
@@ -7,7 +7,7 @@
7
7
  a acl:Authorization;
8
8
  acl:agent <{{webId}}>;
9
9
  acl:accessTo <./>;
10
- acl:defaultForNew <./>;
10
+ acl:default <./>;
11
11
  acl:mode acl:Read, acl:Write, acl:Control.
12
12
 
13
13
  # The public has read permissions
@@ -15,5 +15,5 @@
15
15
  a acl:Authorization;
16
16
  acl:agentClass foaf:Agent;
17
17
  acl:accessTo <./>;
18
- acl:defaultForNew <./>;
18
+ acl:default <./>;
19
19
  acl:mode acl:Read.
@@ -98,10 +98,10 @@ 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
- res.set('Content-Type', 'text/html')
104
+ res.setHeader('Content-Type', 'text/html')
105
105
  const defaultDataBrowser = require.resolve('mashlib/dist/databrowser.html')
106
106
  const dataBrowserPath = ldp.dataBrowserPath === 'default' ? defaultDataBrowser : ldp.dataBrowserPath
107
107
  debug(' sending data browser file: ' + dataBrowserPath)
@@ -118,6 +118,7 @@ async function handler (req, res, next) {
118
118
  let headers = {
119
119
  'Content-Type': contentType
120
120
  }
121
+
121
122
  if (contentRange) {
122
123
  headers = {
123
124
  ...headers,
@@ -125,15 +126,16 @@ async function handler (req, res, next) {
125
126
  'Accept-Ranges': 'bytes',
126
127
  'Content-Length': chunksize
127
128
  }
128
- res.statusCode = 206
129
+ res.status(206)
129
130
  }
130
131
 
131
- if (prep & isRdf(contentType) && !res.sendEvents({
132
+ if (prep && isRdf(contentType) && !res.sendEvents({
132
133
  config: { prep: prepConfig },
133
134
  body: stream,
134
135
  isBodyStream: true,
135
136
  headers
136
137
  })) return
138
+
137
139
  res.set(headers)
138
140
  return stream.pipe(res)
139
141
  }
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.3",
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.2",
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-rc.12",
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.3.4",
76
- "express": "^4.18.3",
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.0",
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.6",
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.2",
95
+ "mashlib": "^1.10.4",
96
96
  "mime-types": "^2.1.35",
97
- "negotiator": "^0.6.3",
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.9.11",
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.3",
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.11.0",
116
+ "validator": "^13.12.0",
117
117
  "vhost": "^3.0.2"
118
118
  },
119
119
  "devDependencies": {
120
- "@cxres/structured-headers": "^2.0.0-alpha.1-nesting.0",
120
+ "@cxres/structured-headers": "^2.0.0-nesting.0",
121
121
  "@solid/solid-auth-oidc": "0.3.0",
122
- "c8": "^10.1.2",
123
- "chai": "^4.4.1",
124
- "chai-as-promised": "7.1.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.3.0",
130
- "nock": "^13.5.4",
131
- "node-mocks-http": "^1.14.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.1283.0",
137
+ "snyk": "^1.1295.3",
138
138
  "standard": "16.0.4",
139
139
  "supertest": "^6.3.4",
140
140
  "turtle-validator": "1.1.1",