mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
chore: Update @antfu/eslint-config dependency to 2.11.4
This commit is contained in:
parent
fa060b86f3
commit
7abca33b67
@ -17,7 +17,7 @@ flowchart LR
|
|||||||
ControlHandler --password--> PasswordControlHandler("<strong>PasswordControlHandler</strong><br>ControlHandler")
|
ControlHandler --password--> PasswordControlHandler("<strong>PasswordControlHandler</strong><br>ControlHandler")
|
||||||
ControlHandler --"oidc"--> OidcControlHandler("<strong>OidcControlHandler</strong><br>OidcControlHandler")
|
ControlHandler --"oidc"--> OidcControlHandler("<strong>OidcControlHandler</strong><br>OidcControlHandler")
|
||||||
ControlHandler --html--> HtmlControlHandler("<strong>HtmlControlHandler</strong><br>ControlHandler")
|
ControlHandler --html--> HtmlControlHandler("<strong>HtmlControlHandler</strong><br>ControlHandler")
|
||||||
|
|
||||||
HtmlControlHandler --main--> MainHtmlControlHandler("<strong>MainHtmlControlHandler</strong><br>ControlHandler")
|
HtmlControlHandler --main--> MainHtmlControlHandler("<strong>MainHtmlControlHandler</strong><br>ControlHandler")
|
||||||
HtmlControlHandler --account--> AccountHtmlControlHandler("<strong>AccountHtmlControlHandler</strong><br>ControlHandler")
|
HtmlControlHandler --account--> AccountHtmlControlHandler("<strong>AccountHtmlControlHandler</strong><br>ControlHandler")
|
||||||
HtmlControlHandler --password--> PasswordHtmlControlHandler("<strong>PasswordHtmlControlHandler</strong><br>ControlHandler")
|
HtmlControlHandler --password--> PasswordHtmlControlHandler("<strong>PasswordHtmlControlHandler</strong><br>ControlHandler")
|
||||||
|
@ -10,7 +10,7 @@ flowchart LR
|
|||||||
Handler("<strong>IdentityProviderHandler</strong><br>RouterHandler")
|
Handler("<strong>IdentityProviderHandler</strong><br>RouterHandler")
|
||||||
ParsingHandler("<strong>IdentityProviderParsingHandler</strong><br>AuthorizingHttpHandler")
|
ParsingHandler("<strong>IdentityProviderParsingHandler</strong><br>AuthorizingHttpHandler")
|
||||||
AuthorizingHandler("<strong>IdentityProviderAuthorizingHandler</strong><br>AuthorizingHttpHandler")
|
AuthorizingHandler("<strong>IdentityProviderAuthorizingHandler</strong><br>AuthorizingHttpHandler")
|
||||||
|
|
||||||
Handler --> ParsingHandler
|
Handler --> ParsingHandler
|
||||||
ParsingHandler --> AuthorizingHandler
|
ParsingHandler --> AuthorizingHandler
|
||||||
AuthorizingHandler --> HttpHandler("<strong>IdentityProviderHttpHandler</strong><br>IdentityProviderHttpHandler")
|
AuthorizingHandler --> HttpHandler("<strong>IdentityProviderHttpHandler</strong><br>IdentityProviderHttpHandler")
|
||||||
@ -26,12 +26,12 @@ flowchart TD
|
|||||||
HttpHandler("<strong>IdentityProviderHttpHandler</strong><br>IdentityProviderHttpHandler")
|
HttpHandler("<strong>IdentityProviderHttpHandler</strong><br>IdentityProviderHttpHandler")
|
||||||
HttpHandler --> InteractionHandler("<strong>InteractionHandler</strong><br>WaterfallHandler")
|
HttpHandler --> InteractionHandler("<strong>InteractionHandler</strong><br>WaterfallHandler")
|
||||||
InteractionHandler --> InteractionHandlerArgs
|
InteractionHandler --> InteractionHandlerArgs
|
||||||
|
|
||||||
subgraph InteractionHandlerArgs[" "]
|
subgraph InteractionHandlerArgs[" "]
|
||||||
HtmlViewHandler("<strong>HtmlViewHandler</strong><br>HtmlViewHandler")
|
HtmlViewHandler("<strong>HtmlViewHandler</strong><br>HtmlViewHandler")
|
||||||
LockingInteractionHandler("<strong>LockingInteractionHandler</strong><br>LockingInteractionHandler")
|
LockingInteractionHandler("<strong>LockingInteractionHandler</strong><br>LockingInteractionHandler")
|
||||||
end
|
end
|
||||||
|
|
||||||
LockingInteractionHandler --> JsonConversionHandler("<strong>JsonConversionHandler</strong><br>JsonConversionHandler")
|
LockingInteractionHandler --> JsonConversionHandler("<strong>JsonConversionHandler</strong><br>JsonConversionHandler")
|
||||||
JsonConversionHandler --> VersionHandler("<strong>VersionHandler</strong><br>VersionHandler")
|
JsonConversionHandler --> VersionHandler("<strong>VersionHandler</strong><br>VersionHandler")
|
||||||
VersionHandler --> CookieInteractionHandler("<strong>CookieInteractionHandler</strong><br>CookieInteractionHandler")
|
VersionHandler --> CookieInteractionHandler("<strong>CookieInteractionHandler</strong><br>CookieInteractionHandler")
|
||||||
|
@ -114,15 +114,15 @@ It takes as input 2 components: a `HttpServerFactory` and a `ServerListener`.
|
|||||||
flowchart TD
|
flowchart TD
|
||||||
ServerInitializer("<strong>ServerInitializer</strong><br>ServerInitializer")
|
ServerInitializer("<strong>ServerInitializer</strong><br>ServerInitializer")
|
||||||
ServerInitializer --> ServerInitializerArgs
|
ServerInitializer --> ServerInitializerArgs
|
||||||
|
|
||||||
subgraph ServerInitializerArgs[" "]
|
subgraph ServerInitializerArgs[" "]
|
||||||
direction LR
|
direction LR
|
||||||
ServerFactory("<strong>ServerFactory</strong><br>BaseServerFactory")
|
ServerFactory("<strong>ServerFactory</strong><br>BaseServerFactory")
|
||||||
ServerListener("<strong>ServerListener</strong><br>ParallelHandler")
|
ServerListener("<strong>ServerListener</strong><br>ParallelHandler")
|
||||||
end
|
end
|
||||||
|
|
||||||
ServerListener --> HandlerServerListener("<strong>HandlerServerListener</strong><br>HandlerServerListener")
|
ServerListener --> HandlerServerListener("<strong>HandlerServerListener</strong><br>HandlerServerListener")
|
||||||
|
|
||||||
HandlerServerListener --> HttpHandler("<strong>HttpHandler</strong><br><i>HttpHandler</i>")
|
HandlerServerListener --> HttpHandler("<strong>HttpHandler</strong><br><i>HttpHandler</i>")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -78,7 +78,7 @@ flowchart TB
|
|||||||
ResourceStore("<strong>ResourceStore</strong><br><i>ActivityEmitter</i>")
|
ResourceStore("<strong>ResourceStore</strong><br><i>ActivityEmitter</i>")
|
||||||
NotificationHandler("<strong>NotificationHandler</strong><br>WaterfallHandler")
|
NotificationHandler("<strong>NotificationHandler</strong><br>WaterfallHandler")
|
||||||
end
|
end
|
||||||
|
|
||||||
NotificationHandler --> NotificationHandlerArgs
|
NotificationHandler --> NotificationHandlerArgs
|
||||||
subgraph NotificationHandlerArgs[" "]
|
subgraph NotificationHandlerArgs[" "]
|
||||||
direction TB
|
direction TB
|
||||||
@ -154,9 +154,9 @@ flowchart TB
|
|||||||
NotificationChannelStorage("<strong>NotificationChannelStorage</strong><br>NotificationChannelStorage")
|
NotificationChannelStorage("<strong>NotificationChannelStorage</strong><br>NotificationChannelStorage")
|
||||||
SequenceHandler("<br>SequenceHandler")
|
SequenceHandler("<br>SequenceHandler")
|
||||||
end
|
end
|
||||||
|
|
||||||
SequenceHandler --> SequenceHandlerArgs
|
SequenceHandler --> SequenceHandlerArgs
|
||||||
|
|
||||||
subgraph SequenceHandlerArgs[" "]
|
subgraph SequenceHandlerArgs[" "]
|
||||||
direction TB
|
direction TB
|
||||||
WebSocket2023Storer("<strong>WebSocket2023Storer</strong><br>WebSocket2023Storer")
|
WebSocket2023Storer("<strong>WebSocket2023Storer</strong><br>WebSocket2023Storer")
|
||||||
|
@ -27,15 +27,15 @@ flowchart LR
|
|||||||
RdfPatcher("<strong>RdfPatcher</strong><br>RdfPatcher")
|
RdfPatcher("<strong>RdfPatcher</strong><br>RdfPatcher")
|
||||||
RdfPatcher --> RDFStore("<strong>PatchHandler_RDFStore</strong><br>WaterfallHandler")
|
RdfPatcher --> RDFStore("<strong>PatchHandler_RDFStore</strong><br>WaterfallHandler")
|
||||||
RDFStore --> RDFStoreArgs
|
RDFStore --> RDFStoreArgs
|
||||||
|
|
||||||
subgraph RDFStoreArgs[" "]
|
subgraph RDFStoreArgs[" "]
|
||||||
Immutable("<strong>PatchHandler_ImmutableMetadata</strong><br>ImmutableMetadataPatcher")
|
Immutable("<strong>PatchHandler_ImmutableMetadata</strong><br>ImmutableMetadataPatcher")
|
||||||
RDF("<strong>PatchHandler_RDF</strong><br>WaterfallHandler")
|
RDF("<strong>PatchHandler_RDF</strong><br>WaterfallHandler")
|
||||||
Immutable --> RDF
|
Immutable --> RDF
|
||||||
end
|
end
|
||||||
|
|
||||||
RDF --> RDFArgs
|
RDF --> RDFArgs
|
||||||
|
|
||||||
subgraph RDFArgs[" "]
|
subgraph RDFArgs[" "]
|
||||||
direction LR
|
direction LR
|
||||||
N3("<br>N3Patcher")
|
N3("<br>N3Patcher")
|
||||||
|
@ -56,7 +56,7 @@ The next step generates the token and assumes you have an authorization value as
|
|||||||
```ts
|
```ts
|
||||||
// Now that we are logged in, we need to request the updated controls from the server.
|
// Now that we are logged in, we need to request the updated controls from the server.
|
||||||
// These will now have more values than in the previous example.
|
// These will now have more values than in the previous example.
|
||||||
const indexResponse = await fetch('http://localhost:3000/.account/', {
|
const indexResponse = await fetch('http://localhost:3000/.account/', {
|
||||||
headers: { authorization: `CSS-Account-Token ${authorization}` }
|
headers: { authorization: `CSS-Account-Token ${authorization}` }
|
||||||
});
|
});
|
||||||
const { controls } = await indexResponse.json();
|
const { controls } = await indexResponse.json();
|
||||||
|
@ -42,4 +42,10 @@ module.exports = antfu.default(
|
|||||||
'unicorn/filename-case': 'off',
|
'unicorn/filename-case': 'off',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
files: [ '**/*.md' ],
|
||||||
|
rules: {
|
||||||
|
'no-irregular-whitespace': 'off',
|
||||||
|
},
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
@ -16,6 +16,10 @@ module.exports = {
|
|||||||
kebabCase: true,
|
kebabCase: true,
|
||||||
snakeCase: false,
|
snakeCase: false,
|
||||||
},
|
},
|
||||||
|
ignore: [
|
||||||
|
// CODE_OF_CONDUCT.md, etc.
|
||||||
|
/[A-Z_]+\.md$/u,
|
||||||
|
],
|
||||||
}],
|
}],
|
||||||
'unicorn/new-for-builtins': 'error',
|
'unicorn/new-for-builtins': 'error',
|
||||||
'unicorn/no-array-for-each': 'error',
|
'unicorn/no-array-for-each': 'error',
|
||||||
|
3151
package-lock.json
generated
3151
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -143,7 +143,7 @@
|
|||||||
"yup": "^1.3.2"
|
"yup": "^1.3.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "2.3.4",
|
"@antfu/eslint-config": "2.11.4",
|
||||||
"@commitlint/cli": "^17.7.2",
|
"@commitlint/cli": "^17.7.2",
|
||||||
"@commitlint/config-conventional": "^17.7.0",
|
"@commitlint/config-conventional": "^17.7.0",
|
||||||
"@inrupt/solid-client-authn-core": "^2.0.0",
|
"@inrupt/solid-client-authn-core": "^2.0.0",
|
||||||
|
@ -300,7 +300,7 @@ export class RepresentationMetadata {
|
|||||||
predicate: Term | string | null,
|
predicate: Term | string | null,
|
||||||
object: Term | string | null,
|
object: Term | string | null,
|
||||||
graph: Term | string | null) => boolean;
|
graph: Term | string | null) => boolean;
|
||||||
}).has(this.id, predicate, object, graph) as boolean;
|
}).has(this.id, predicate, object, graph);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +84,7 @@ export class ExtensionBasedMapper extends BaseFileIdentifierMapper {
|
|||||||
const extension = getExtension(filePath).toLowerCase();
|
const extension = getExtension(filePath).toLowerCase();
|
||||||
return mime.lookup(extension) ||
|
return mime.lookup(extension) ||
|
||||||
this.customTypes[extension] ||
|
this.customTypes[extension] ||
|
||||||
await super.getContentTypeFromPath(filePath);
|
await super.getContentTypeFromPath(filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -55,7 +55,7 @@ function emitStoredErrors(this: Guarded, event: string, func: (error: Error) =>
|
|||||||
if (event === 'error' && func !== guardingErrorListener) {
|
if (event === 'error' && func !== guardingErrorListener) {
|
||||||
// Cancel an error timeout
|
// Cancel an error timeout
|
||||||
if (this[guardedTimeout]) {
|
if (this[guardedTimeout]) {
|
||||||
clearTimeout(this[guardedTimeout]!);
|
clearTimeout(this[guardedTimeout]);
|
||||||
this[guardedTimeout] = undefined;
|
this[guardedTimeout] = undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,8 +7,8 @@ export function isError(error: unknown): error is Error {
|
|||||||
return types.isNativeError(error) ||
|
return types.isNativeError(error) ||
|
||||||
(Boolean(error) &&
|
(Boolean(error) &&
|
||||||
typeof (error as Error).name === 'string' &&
|
typeof (error as Error).name === 'string' &&
|
||||||
typeof (error as Error).message === 'string' &&
|
typeof (error as Error).message === 'string' &&
|
||||||
(typeof (error as Error).stack === 'undefined' || typeof (error as Error).stack === 'string'));
|
(typeof (error as Error).stack === 'undefined' || typeof (error as Error).stack === 'string'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,7 +48,7 @@ export class HttpError<T extends number = number> extends Error implements HttpE
|
|||||||
public static isInstance(error: unknown): error is HttpError {
|
public static isInstance(error: unknown): error is HttpError {
|
||||||
return isError(error) &&
|
return isError(error) &&
|
||||||
typeof (error as HttpError).statusCode === 'number' &&
|
typeof (error as HttpError).statusCode === 'number' &&
|
||||||
Boolean((error as HttpError).metadata);
|
Boolean((error as HttpError).metadata);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -17,7 +17,7 @@ describe('A RedirectingHttpHandler', (): void => {
|
|||||||
|
|
||||||
beforeEach(async(): Promise<void> => {
|
beforeEach(async(): Promise<void> => {
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
responseWriter = { handleSafe: jest.fn() } as any;
|
responseWriter = { handleSafe: jest.fn() } as any;
|
||||||
|
@ -14,7 +14,7 @@ describe('A RouterHandler', (): void => {
|
|||||||
request = { method: 'GET', url: '/test' } as any;
|
request = { method: 'GET', url: '/test' } as any;
|
||||||
|
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
|
|
||||||
handler = {
|
handler = {
|
||||||
|
@ -210,7 +210,7 @@ describe('PathUtil', (): void => {
|
|||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
targetExtractor = {
|
targetExtractor = {
|
||||||
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url!) })),
|
handleSafe: jest.fn(({ request: req }): ResourceIdentifier => ({ path: joinUrl(baseUrl, req.url) })),
|
||||||
} as any;
|
} as any;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user