mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix(deps): Update dependencies
This commit is contained in:
parent
52f400d344
commit
d2870e5c8b
10913
package-lock.json
generated
10913
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
90
package.json
90
package.json
@ -75,93 +75,93 @@
|
||||
"templates"
|
||||
],
|
||||
"dependencies": {
|
||||
"@comunica/actor-init-sparql": "^1.21.3",
|
||||
"@solid/access-token-verifier": "^1.1.2",
|
||||
"@comunica/actor-init-sparql": "^1.22.3",
|
||||
"@solid/access-token-verifier": "^1.1.3",
|
||||
"@types/arrayify-stream": "^1.0.0",
|
||||
"@types/async-lock": "^1.1.2",
|
||||
"@types/async-lock": "^1.1.3",
|
||||
"@types/bcrypt": "^5.0.0",
|
||||
"@types/cors": "^2.8.10",
|
||||
"@types/end-of-stream": "^1.4.0",
|
||||
"@types/cors": "^2.8.12",
|
||||
"@types/end-of-stream": "^1.4.1",
|
||||
"@types/lodash.orderby": "^4.6.6",
|
||||
"@types/marked": "^4.0.2",
|
||||
"@types/mime-types": "^2.1.0",
|
||||
"@types/n3": "^1.10.0",
|
||||
"@types/mime-types": "^2.1.1",
|
||||
"@types/n3": "^1.10.4",
|
||||
"@types/node": "^14.18.0",
|
||||
"@types/nodemailer": "^6.4.2",
|
||||
"@types/nodemailer": "^6.4.4",
|
||||
"@types/pump": "^1.1.1",
|
||||
"@types/punycode": "^2.1.0",
|
||||
"@types/redis": "^2.8.30",
|
||||
"@types/redlock": "^4.0.1",
|
||||
"@types/sparqljs": "^3.1.2",
|
||||
"@types/url-join": "^4.0.0",
|
||||
"@types/uuid": "^8.3.0",
|
||||
"@types/ws": "^8.2.0",
|
||||
"@types/yargs": "^17.0.0",
|
||||
"@types/sparqljs": "^3.1.3",
|
||||
"@types/url-join": "^4.0.1",
|
||||
"@types/uuid": "^8.3.4",
|
||||
"@types/ws": "^8.2.2",
|
||||
"@types/yargs": "^17.0.8",
|
||||
"arrayify-stream": "^1.0.0",
|
||||
"async-lock": "^1.3.0",
|
||||
"bcrypt": "^5.0.1",
|
||||
"componentsjs": "^4.4.1",
|
||||
"componentsjs": "^4.5.0",
|
||||
"cors": "^2.8.5",
|
||||
"cross-fetch": "^3.1.4",
|
||||
"cross-fetch": "^3.1.5",
|
||||
"ejs": "^3.1.6",
|
||||
"end-of-stream": "^1.4.4",
|
||||
"escape-string-regexp": "^4.0.0",
|
||||
"fetch-sparql-endpoint": "^2.0.1",
|
||||
"fetch-sparql-endpoint": "^2.4.0",
|
||||
"handlebars": "^4.7.7",
|
||||
"jose": "^4.3.7",
|
||||
"jose": "^4.4.0",
|
||||
"lodash.orderby": "^4.6.0",
|
||||
"marked": "^4.0.12",
|
||||
"mime-types": "^2.1.32",
|
||||
"n3": "^1.12.2",
|
||||
"nodemailer": "^6.6.2",
|
||||
"mime-types": "^2.1.34",
|
||||
"n3": "^1.13.0",
|
||||
"nodemailer": "^6.7.2",
|
||||
"oidc-provider": "^6.31.1",
|
||||
"pump": "^3.0.0",
|
||||
"punycode": "^2.1.1",
|
||||
"rdf-parse": "^1.8.1",
|
||||
"rdf-serialize": "^1.1.0",
|
||||
"rdf-parse": "^1.9.1",
|
||||
"rdf-serialize": "^1.2.0",
|
||||
"redis": "^3.1.2",
|
||||
"redlock": "^4.2.0",
|
||||
"sparqlalgebrajs": "^4.0.1",
|
||||
"sparqljs": "^3.4.2",
|
||||
"sparqlalgebrajs": "^4.0.2",
|
||||
"sparqljs": "^3.5.1",
|
||||
"url-join": "^4.0.1",
|
||||
"uuid": "^8.3.2",
|
||||
"winston": "^3.3.3",
|
||||
"winston-transport": "^4.4.0",
|
||||
"ws": "^8.2.3",
|
||||
"yargs": "^17.0.1"
|
||||
"winston": "^3.5.1",
|
||||
"winston-transport": "^4.4.2",
|
||||
"ws": "^8.4.2",
|
||||
"yargs": "^17.3.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@inrupt/solid-client-authn-node": "^1.9.1",
|
||||
"@inrupt/solid-client-authn-node": "^1.11.3",
|
||||
"@microsoft/tsdoc-config": "^0.15.2",
|
||||
"@tsconfig/node12": "^1.0.9",
|
||||
"@types/cheerio": "^0.22.29",
|
||||
"@types/ejs": "^3.0.6",
|
||||
"@types/fs-extra": "^9.0.12",
|
||||
"@types/jest": "^27.0.0",
|
||||
"@types/set-cookie-parser": "^2.4.0",
|
||||
"@types/cheerio": "^0.22.30",
|
||||
"@types/ejs": "^3.1.0",
|
||||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/jest": "^27.4.0",
|
||||
"@types/set-cookie-parser": "^2.4.2",
|
||||
"@types/supertest": "^2.0.11",
|
||||
"@typescript-eslint/eslint-plugin": "^5.3.0",
|
||||
"@typescript-eslint/parser": "^5.3.0",
|
||||
"cheerio": "^1.0.0-rc.10",
|
||||
"componentsjs-generator": "^2.6.0",
|
||||
"eslint": "^8.4.1",
|
||||
"componentsjs-generator": "^2.6.1",
|
||||
"eslint": "^8.8.0",
|
||||
"eslint-config-es": "4.1.0",
|
||||
"eslint-import-resolver-typescript": "^2.5.0",
|
||||
"eslint-plugin-import": "^2.25.3",
|
||||
"eslint-plugin-import": "^2.25.4",
|
||||
"eslint-plugin-jest": "^26.0.0",
|
||||
"eslint-plugin-tsdoc": "^0.2.14",
|
||||
"eslint-plugin-unused-imports": "^2.0.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"husky": "^4.3.8",
|
||||
"jest": "^27.0.6",
|
||||
"jest-rdf": "^1.6.0",
|
||||
"jest": "^27.4.7",
|
||||
"jest-rdf": "^1.7.0",
|
||||
"manual-git-changelog": "^1.0.1",
|
||||
"node-mocks-http": "^1.10.1",
|
||||
"nodemon": "^2.0.7",
|
||||
"node-mocks-http": "^1.11.0",
|
||||
"nodemon": "^2.0.15",
|
||||
"set-cookie-parser": "^2.4.8",
|
||||
"supertest": "^6.1.3",
|
||||
"ts-jest": "^27.0.3",
|
||||
"typedoc": "^0.22.0",
|
||||
"typescript": "^4.3.4"
|
||||
"supertest": "^6.2.2",
|
||||
"ts-jest": "^27.1.3",
|
||||
"typedoc": "^0.22.11",
|
||||
"typescript": "^4.5.5"
|
||||
}
|
||||
}
|
||||
|
@ -144,6 +144,10 @@ describe('A Solid server with IDP', (): void => {
|
||||
});
|
||||
});
|
||||
|
||||
afterAll(async(): Promise<void> => {
|
||||
await state.session.logout();
|
||||
});
|
||||
|
||||
it('initializes the session and logs in.', async(): Promise<void> => {
|
||||
const url = await state.startSession();
|
||||
await state.parseLoginPage(url);
|
||||
@ -226,6 +230,10 @@ describe('A Solid server with IDP', (): void => {
|
||||
state = new IdentityTestState(baseUrl, redirectUrl, oidcIssuer);
|
||||
});
|
||||
|
||||
afterAll(async(): Promise<void> => {
|
||||
await state.session.logout();
|
||||
});
|
||||
|
||||
it('can not log in with the old password anymore.', async(): Promise<void> => {
|
||||
const url = await state.startSession();
|
||||
nextUrl = url;
|
||||
@ -293,6 +301,10 @@ describe('A Solid server with IDP', (): void => {
|
||||
email: newMail, password, confirmPassword: password, podName, createWebId: 'ok', register: 'ok', createPod: 'ok',
|
||||
});
|
||||
|
||||
afterAll(async(): Promise<void> => {
|
||||
await state.session.logout();
|
||||
});
|
||||
|
||||
it('sends the form to create the WebID and register.', async(): Promise<void> => {
|
||||
const res = await postForm(`${baseUrl}idp/register/`, formBody);
|
||||
expect(res.status).toBe(200);
|
||||
|
@ -111,5 +111,7 @@ describe('A server with restricted IDP access', (): void => {
|
||||
expect(res.status).toBe(200);
|
||||
const body = await res.json();
|
||||
expect(body.webId).toBe(joinUrl(baseUrl, 'bob/profile/card#me'));
|
||||
|
||||
await state.session.logout();
|
||||
});
|
||||
});
|
||||
|
@ -347,8 +347,9 @@ describe('AppRunner', (): void => {
|
||||
setImmediate(resolve);
|
||||
});
|
||||
|
||||
expect(error).toHaveBeenCalledWith('Unsupported positional arguments: "foo", "bar", "foo.txt", "bar.txt"');
|
||||
expect(exit).toHaveBeenCalledTimes(1);
|
||||
expect(error).toHaveBeenCalledWith('Unknown arguments: foo, bar, foo.txt, bar.txt');
|
||||
// Yargs also calls process.exit in this case
|
||||
expect(exit).toHaveBeenCalledTimes(2);
|
||||
expect(exit).toHaveBeenCalledWith(1);
|
||||
});
|
||||
|
||||
|
@ -66,7 +66,7 @@ describe('A TemplatedResourcesGenerator', (): void => {
|
||||
expect(representation.binary).toBe(true);
|
||||
expect(representation.metadata.contentType).toBe('text/turtle');
|
||||
await expect(readableToString(representation.data)).resolves
|
||||
.toEqual(`<${webId}> a <http://xmlns.com/foaf/0.1/Person>.`);
|
||||
.toBe(`<${webId}> a <http://xmlns.com/foaf/0.1/Person>.`);
|
||||
});
|
||||
|
||||
it('creates the necessary containers.', async(): Promise<void> => {
|
||||
@ -83,7 +83,7 @@ describe('A TemplatedResourcesGenerator', (): void => {
|
||||
|
||||
const { representation } = result[3];
|
||||
await expect(readableToString(representation.data)).resolves
|
||||
.toEqual(`<${webId}> a <http://xmlns.com/foaf/0.1/Person>.`);
|
||||
.toBe(`<${webId}> a <http://xmlns.com/foaf/0.1/Person>.`);
|
||||
});
|
||||
|
||||
it('copies the file stream directly if no template extension is found.', async(): Promise<void> => {
|
||||
|
@ -209,7 +209,7 @@ describe('A DataAccessorBasedStore', (): void => {
|
||||
const result = await store.getRepresentation(resourceID);
|
||||
const contains = result.metadata.getAll(LDP.terms.contains);
|
||||
expect(contains).toHaveLength(1);
|
||||
expect(contains[0].value).toEqual(`${resourceID.path}resource`);
|
||||
expect(contains[0].value).toBe(`${resourceID.path}resource`);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -96,8 +96,8 @@ describe('An InMemoryDataAccessor', (): void => {
|
||||
children.push(child);
|
||||
}
|
||||
expect(children).toHaveLength(2);
|
||||
expect(children[0].identifier.value).toEqual(`${base}container/resource`);
|
||||
expect(children[1].identifier.value).toEqual(`${base}container/container2/`);
|
||||
expect(children[0].identifier.value).toBe(`${base}container/resource`);
|
||||
expect(children[1].identifier.value).toBe(`${base}container/container2/`);
|
||||
});
|
||||
|
||||
it('adds stored metadata when requesting document metadata.', async(): Promise<void> => {
|
||||
@ -148,7 +148,7 @@ describe('An InMemoryDataAccessor', (): void => {
|
||||
children.push(child);
|
||||
}
|
||||
expect(children).toHaveLength(1);
|
||||
expect(children[0].identifier.value).toEqual(`${base}container/resource`);
|
||||
expect(children[0].identifier.value).toBe(`${base}container/resource`);
|
||||
|
||||
await expect(accessor.getMetadata({ path: `${base}container/resource` }))
|
||||
.resolves.toBeInstanceOf(RepresentationMetadata);
|
||||
@ -175,7 +175,7 @@ describe('An InMemoryDataAccessor', (): void => {
|
||||
children.push(child);
|
||||
}
|
||||
expect(children).toHaveLength(1);
|
||||
expect(children[0].identifier.value).toEqual(`${base}resource`);
|
||||
expect(children[0].identifier.value).toBe(`${base}resource`);
|
||||
|
||||
await expect(accessor.getMetadata({ path: `${base}resource` }))
|
||||
.resolves.toBeInstanceOf(RepresentationMetadata);
|
||||
|
@ -62,7 +62,7 @@ describe('A QuadToRdfConverter', (): void => {
|
||||
metadata: expect.any(RepresentationMetadata),
|
||||
});
|
||||
expect(result.metadata.contentType).toBe('text/turtle');
|
||||
await expect(readableToString(result.data)).resolves.toEqual(
|
||||
await expect(readableToString(result.data)).resolves.toBe(
|
||||
`<http://test.com/s> <http://test.com/p> <http://test.com/o>.
|
||||
`,
|
||||
);
|
||||
@ -80,7 +80,7 @@ describe('A QuadToRdfConverter', (): void => {
|
||||
const preferences: RepresentationPreferences = { type: { 'text/turtle': 1 }};
|
||||
const result = await converter.handle({ identifier, representation, preferences });
|
||||
expect(result.metadata.contentType).toBe('text/turtle');
|
||||
await expect(readableToString(result.data)).resolves.toEqual(
|
||||
await expect(readableToString(result.data)).resolves.toBe(
|
||||
`@prefix dc: <http://purl.org/dc/terms/>.
|
||||
@prefix test: <http://test.com/>.
|
||||
|
||||
@ -99,7 +99,7 @@ test:s dc:modified test:o.
|
||||
const preferences: RepresentationPreferences = { type: { 'text/turtle': 1 }};
|
||||
const result = await converter.handle({ identifier, representation, preferences });
|
||||
expect(result.metadata.contentType).toBe('text/turtle');
|
||||
await expect(readableToString(result.data)).resolves.toEqual(
|
||||
await expect(readableToString(result.data)).resolves.toBe(
|
||||
`<> <#abc> <def/ghi>.
|
||||
`,
|
||||
);
|
||||
@ -120,7 +120,7 @@ test:s dc:modified test:o.
|
||||
metadata: expect.any(RepresentationMetadata),
|
||||
});
|
||||
expect(result.metadata.contentType).toBe('application/ld+json');
|
||||
await expect(readableToString(result.data)).resolves.toEqual(
|
||||
await expect(readableToString(result.data)).resolves.toBe(
|
||||
`[
|
||||
{
|
||||
"@id": "http://test.com/s",
|
||||
|
@ -39,7 +39,7 @@ describe('PathUtil', (): void => {
|
||||
});
|
||||
|
||||
it('joins Windows paths.', async(): Promise<void> => {
|
||||
expect(joinFilePath('c:\\foo\\bar\\', '..', '/baz')).toEqual(`c:/foo/baz`);
|
||||
expect(joinFilePath('c:\\foo\\bar\\', '..', '/baz')).toBe(`c:/foo/baz`);
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user