mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Update dependencies
This commit is contained in:
parent
cf411e13fb
commit
f932cf4b22
6764
package-lock.json
generated
6764
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
71
package.json
71
package.json
@ -91,75 +91,74 @@
|
||||
"templates"
|
||||
],
|
||||
"dependencies": {
|
||||
"@comunica/context-entries": "^2.6.8",
|
||||
"@comunica/query-sparql": "^2.6.9",
|
||||
"@comunica/context-entries": "^2.8.2",
|
||||
"@comunica/query-sparql": "^2.9.0",
|
||||
"@rdfjs/types": "^1.1.0",
|
||||
"@solid/access-control-policy": "^0.1.3",
|
||||
"@solid/access-token-verifier": "^2.0.5",
|
||||
"@types/async-lock": "^1.4.0",
|
||||
"@types/bcryptjs": "^2.4.2",
|
||||
"@types/cookie": "^0.4.1",
|
||||
"@types/cors": "^2.8.12",
|
||||
"@types/ejs": "^3.1.2",
|
||||
"@types/end-of-stream": "^1.4.1",
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
"@types/bcryptjs": "^2.4.4",
|
||||
"@types/cookie": "^0.5.2",
|
||||
"@types/cors": "^2.8.14",
|
||||
"@types/ejs": "^3.1.3",
|
||||
"@types/end-of-stream": "^1.4.2",
|
||||
"@types/fs-extra": "^11.0.2",
|
||||
"@types/lodash.orderby": "^4.6.7",
|
||||
"@types/marked": "^4.0.8",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/n3": "^1.10.4",
|
||||
"@types/node": "^14.18.43",
|
||||
"@types/nodemailer": "^6.4.7",
|
||||
"@types/mime-types": "^2.1.2",
|
||||
"@types/n3": "^1.16.2",
|
||||
"@types/node": "^18.18.4",
|
||||
"@types/nodemailer": "^6.4.11",
|
||||
"@types/oidc-provider": "^8.4.0",
|
||||
"@types/proper-lockfile": "^4.1.2",
|
||||
"@types/pump": "^1.1.1",
|
||||
"@types/punycode": "^2.1.0",
|
||||
"@types/rdf-validate-shacl": "^0.4.1",
|
||||
"@types/sparqljs": "^3.1.4",
|
||||
"@types/rdf-validate-shacl": "^0.4.4",
|
||||
"@types/sparqljs": "^3.1.6",
|
||||
"@types/url-join": "^4.0.1",
|
||||
"@types/uuid": "^9.0.1",
|
||||
"@types/ws": "^8.5.4",
|
||||
"@types/yargs": "^17.0.24",
|
||||
"@types/uuid": "^9.0.5",
|
||||
"@types/ws": "^8.5.7",
|
||||
"@types/yargs": "^17.0.28",
|
||||
"arrayify-stream": "^2.0.1",
|
||||
"async-lock": "^1.4.0",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"componentsjs": "^5.4.2",
|
||||
"cookie": "^0.4.2",
|
||||
"cookie": "^0.5.0",
|
||||
"cors": "^2.8.5",
|
||||
"cross-fetch": "^4.0.0",
|
||||
"ejs": "^3.1.9",
|
||||
"end-of-stream": "^1.4.4",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"fetch-sparql-endpoint": "^4.0.0",
|
||||
"fetch-sparql-endpoint": "^4.1.0",
|
||||
"fs-extra": "^11.1.1",
|
||||
"handlebars": "^4.7.7",
|
||||
"handlebars": "^4.7.8",
|
||||
"ioredis": "^5.3.2",
|
||||
"iso8601-duration": "^2.1.1",
|
||||
"jose": "^4.14.1",
|
||||
"jsonld-context-parser": "^2.3.0",
|
||||
"jose": "^4.15.2",
|
||||
"jsonld-context-parser": "^2.3.2",
|
||||
"lodash.orderby": "^4.6.0",
|
||||
"marked": "^4.3.0",
|
||||
"marked": "^9.1.0",
|
||||
"mime-types": "^2.1.35",
|
||||
"n3": "^1.16.4",
|
||||
"nodemailer": "^6.9.1",
|
||||
"n3": "^1.17.1",
|
||||
"nodemailer": "^6.9.6",
|
||||
"oidc-provider": "^8.4.0",
|
||||
"proper-lockfile": "^4.1.2",
|
||||
"pump": "^3.0.0",
|
||||
"punycode": "^2.1.1",
|
||||
"rdf-dereference": "^2.1.0",
|
||||
"punycode": "^2.3.0",
|
||||
"rdf-dereference": "^2.2.0",
|
||||
"rdf-parse": "^2.3.2",
|
||||
"rdf-serialize": "^2.2.2",
|
||||
"rdf-string": "^1.6.3",
|
||||
"rdf-terms": "^1.9.1",
|
||||
"rdf-terms": "^1.11.0",
|
||||
"rdf-validate-shacl": "^0.4.5",
|
||||
"sparqlalgebrajs": "^4.0.5",
|
||||
"sparqljs": "^3.6.2",
|
||||
"sparqlalgebrajs": "^4.3.0",
|
||||
"sparqljs": "^3.7.1",
|
||||
"url-join": "^4.0.1",
|
||||
"uuid": "^9.0.0",
|
||||
"winston": "^3.8.2",
|
||||
"uuid": "^9.0.1",
|
||||
"winston": "^3.11.0",
|
||||
"winston-transport": "^4.5.0",
|
||||
"ws": "^8.13.0",
|
||||
"yargs": "^17.7.1",
|
||||
"yup": "^1.0.2"
|
||||
"ws": "^8.14.2",
|
||||
"yargs": "^17.7.2",
|
||||
"yup": "^1.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.6.1",
|
||||
|
@ -161,7 +161,8 @@ export abstract class BaseChannelType implements NotificationChannelType {
|
||||
}),
|
||||
},
|
||||
);
|
||||
this.shaclQuads = await readableToQuads(shaclStream);
|
||||
// Typing issue with rdf-parse library
|
||||
this.shaclQuads = await readableToQuads(shaclStream as unknown as Readable);
|
||||
}
|
||||
return this.shaclQuads;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
let writer: AllowAcceptHeaderWriter;
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
response = createResponse();
|
||||
response = createResponse() as HttpResponse;
|
||||
|
||||
writer = new AllowAcceptHeaderWriter(
|
||||
[ 'OPTIONS', 'GET', 'HEAD', 'PUT', 'POST', 'PATCH', 'DELETE' ],
|
||||
@ -42,7 +42,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: document })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'OPTIONS', 'GET', 'HEAD', 'PUT', 'PATCH', 'DELETE' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-put']).toBe('*/*');
|
||||
@ -53,7 +53,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: emptyContainer })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'OPTIONS', 'GET', 'HEAD', 'POST', 'PATCH', 'DELETE' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-post']).toBe('*/*');
|
||||
@ -63,7 +63,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: fullContainer })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'OPTIONS', 'GET', 'HEAD', 'POST', 'PATCH' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-post']).toBe('*/*');
|
||||
@ -73,7 +73,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: storageContainer })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'OPTIONS', 'GET', 'HEAD', 'POST', 'PATCH' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-post']).toBe('*/*');
|
||||
@ -83,7 +83,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: error404 })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'PUT', 'PATCH' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-put']).toBe('*/*');
|
||||
@ -94,7 +94,7 @@ describe('An AllowAcceptHeaderWriter', (): void => {
|
||||
await expect(writer.handleSafe({ response, metadata: error405 })).resolves.toBeUndefined();
|
||||
const headers = response.getHeaders();
|
||||
expect(typeof headers.allow).toBe('string');
|
||||
expect(new Set((headers.allow as string).split(', ')))
|
||||
expect(new Set(headers.allow!.split(', ')))
|
||||
.toEqual(new Set([ 'OPTIONS', 'GET', 'HEAD', 'POST', 'PATCH', 'DELETE' ]));
|
||||
expect(headers['accept-patch']).toBe('text/n3, application/sparql-update');
|
||||
expect(headers['accept-put']).toBeUndefined();
|
||||
|
@ -11,7 +11,7 @@ describe('RangeMetadataWriter', (): void => {
|
||||
|
||||
beforeEach(async(): Promise<void> => {
|
||||
metadata = new RepresentationMetadata();
|
||||
response = createResponse();
|
||||
response = createResponse() as HttpResponse;
|
||||
writer = new RangeMetadataWriter();
|
||||
});
|
||||
|
||||
|
@ -4,6 +4,7 @@ import { RepresentationMetadata } from '../../../../../../src/http/representatio
|
||||
import { OwnerMetadataWriter } from '../../../../../../src/identity/interaction/pod/util/OwnerMetadataWriter';
|
||||
import { PodStore } from '../../../../../../src/identity/interaction/pod/util/PodStore';
|
||||
import type { StorageLocationStrategy } from '../../../../../../src/server/description/StorageLocationStrategy';
|
||||
import type { HttpResponse } from '../../../../../../src/server/HttpResponse';
|
||||
import { joinUrl } from '../../../../../../src/util/PathUtil';
|
||||
|
||||
describe('An OwnerMetadataWriter', (): void => {
|
||||
@ -20,7 +21,7 @@ describe('An OwnerMetadataWriter', (): void => {
|
||||
beforeEach(async(): Promise<void> => {
|
||||
metadata = new RepresentationMetadata(target);
|
||||
|
||||
response = createResponse();
|
||||
response = createResponse() as HttpResponse;
|
||||
|
||||
podStore = {
|
||||
findByBaseUrl: jest.fn().mockResolvedValue({ id, accountId }),
|
||||
|
@ -35,7 +35,7 @@ describe('A HandlerServerConfigurator', (): void => {
|
||||
writeHead: jest.fn(),
|
||||
} as any;
|
||||
response.end.mockImplementation((): any => {
|
||||
response.headersSent = true;
|
||||
(response as any).headersSent = true;
|
||||
});
|
||||
response.writeHead.mockReturnValue(response);
|
||||
|
||||
@ -43,7 +43,7 @@ describe('A HandlerServerConfigurator', (): void => {
|
||||
|
||||
handler = {
|
||||
handleSafe: jest.fn((): void => {
|
||||
response.headersSent = true;
|
||||
(response as any).headersSent = true;
|
||||
}),
|
||||
} as any;
|
||||
|
||||
@ -89,7 +89,7 @@ describe('A HandlerServerConfigurator', (): void => {
|
||||
});
|
||||
|
||||
it('does not write an error if the response had been started.', async(): Promise<void> => {
|
||||
response.headersSent = true;
|
||||
(response as any).headersSent = true;
|
||||
handler.handleSafe.mockRejectedValueOnce(new Error('dummyError'));
|
||||
server.emit('request', request, response);
|
||||
await flushPromises();
|
||||
|
Loading…
x
Reference in New Issue
Block a user