Skip to content

Commit b33811e

Browse files
authored
Merge pull request #84 from SolidOS/updateDep
updated dependencies & fix vulnerabilities
2 parents be5dd41 + e977bf6 commit b33811e

File tree

14 files changed

+2559
-1999
lines changed

14 files changed

+2559
-1999
lines changed

.babelrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@babel/preset-typescript"
55
],
66
"plugins": [
7-
"@babel/plugin-proposal-class-properties",
8-
"@babel/plugin-proposal-optional-chaining",
7+
"@babel/plugin-transform-class-properties",
8+
"@babel/plugin-transform-optional-chaining",
99
"@babel/plugin-transform-async-to-generator",
1010
"@babel/plugin-transform-runtime"
1111
]

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const {
2+
defineConfig,
3+
} = require("eslint/config");
4+
5+
const tsParser = require("@typescript-eslint/parser");
6+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
7+
const js = require("@eslint/js");
8+
9+
const {
10+
FlatCompat,
11+
} = require("@eslint/eslintrc");
12+
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
module.exports = defineConfig([{
20+
languageOptions: {
21+
parser: tsParser,
22+
},
23+
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
29+
}]);

package-lock.json

Lines changed: 2494 additions & 1972 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@
2525
},
2626
"homepage": "https://github.com/solidos/solid-logic#readme",
2727
"devDependencies": {
28-
"@babel/plugin-proposal-class-properties": "~7.18.6",
29-
"@babel/plugin-proposal-optional-chaining": "~7.21.0",
30-
"@babel/plugin-transform-async-to-generator": "~7.25.9",
31-
"@babel/plugin-transform-runtime": "^7.25.9",
32-
"@babel/preset-env": "~7.26.7",
33-
"@babel/preset-typescript": "~7.26.0",
34-
"@types/jest": "^29.5.14",
35-
"@typescript-eslint/eslint-plugin": "^5.62.0",
36-
"@typescript-eslint/parser": "^5.62.0",
37-
"eslint": "^8.57.1",
38-
"jest": "^29.7.0",
39-
"jest-environment-jsdom": "^29.7.0",
28+
"@babel/plugin-transform-class-properties": "^7.27.1",
29+
"@babel/plugin-transform-optional-chaining": "^7.27.1",
30+
"@babel/plugin-transform-async-to-generator": "^7.27.1",
31+
"@babel/plugin-transform-runtime": "^7.28.0",
32+
"@babel/preset-env": "^7.28.0",
33+
"@babel/preset-typescript": "^7.27.1",
34+
"@types/jest": "^30.0.0",
35+
"@typescript-eslint/eslint-plugin": "^8.34.0",
36+
"@typescript-eslint/parser": "^8.34.0",
37+
"eslint": "^9.28.0",
38+
"jest": "^30.0.2",
39+
"jest-environment-jsdom": "^30.0.2",
4040
"jest-environment-node-debug": "^2.0.0",
4141
"jest-fetch-mock": "^3.0.3",
4242
"typescript": "^5.7.3"
4343
},
4444
"dependencies": {
4545
"@inrupt/solid-client-authn-browser": "1.17",
4646
"lint-staged": "^15.4.3",
47-
"rdflib": "^2.2.36",
47+
"rdflib": "^2.2.37",
4848
"solid-namespace": "^0.5.4"
4949
}
5050
}

src/acl/aclLogic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export function createAclLogic(store): AclLogic {
8787

8888
return fetcher.load(docURI).then(result => {
8989
if (!result.ok) {
90-
throw new Error('fetchACLRel: While loading:' + (result as any).error)
90+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
91+
throw new Error('fetchACLRel: While loading:' + (result as any).error)
9192
}
9293

9394
const aclDoc = store.any(

src/authn/authUtil.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import * as debug from '../util/debug'
77
* see: https://github.com/facebook/jest/issues/936#issuecomment-545080082 for more
88
* @return {any} - an appContext object
99
*/
10+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1011
export const appContext = ():any => {
12+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1113
let { SolidAppContext }: any = window
1214
SolidAppContext ||= {}
1315
SolidAppContext.viewingNoAuthPage = false
@@ -40,6 +42,7 @@ export const appContext = ():any => {
4042
* @returns {NamedNode|null}
4143
*/
4244
export function offlineTestID (): NamedNode | null {
45+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4346
const { $SolidTestEnvironment }: any = window
4447
if (
4548
typeof $SolidTestEnvironment !== 'undefined' &&

src/chat/chatLogic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export function createChatLogic(store, profileLogic): ChatLogic {
9696
await store.fetcher.load(
9797
new NamedNode(chatContainer.value + "index.ttl#this")
9898
);
99+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
99100
} catch (e) {
100101
exists = false;
101102
}

src/inbox/inboxLogic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { NamedNode, sym } from "rdflib";
1+
import { NamedNode } from "rdflib";
22
import { InboxLogic } from "../types";
33
import { getArchiveUrl } from "../util/utils";
44

5+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
56
export function createInboxLogic(store, profileLogic, utilityLogic, containerLogic, aclLogic): InboxLogic {
67

78
async function createInboxFor(peerWebId: string, nick: string) {

src/logic/solidLogic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import * as debug from "../util/debug";
1717
** into a `ConnectedStore` or a `LiveStore`. A Fetcher object is
1818
** available at store.fetcher, and `fetch` function at `store.fetcher._fetch`,
1919
*/
20+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2021
export function createSolidLogic(specialFetch: { fetch: (url: any, requestInit: any) => any }, session: Session): SolidLogic {
2122

2223
debug.log("SolidLogic: Unique instance created. There should only be one of these.")

0 commit comments

Comments
 (0)