solid-logic 3.0.7-efa1982b → 3.0.8-0893e235
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.
- package/eslint.config.js +29 -0
- package/lib/acl/aclLogic.d.ts.map +1 -1
- package/lib/acl/aclLogic.js +5 -4
- package/lib/acl/aclLogic.js.map +1 -1
- package/lib/authn/SolidAuthnLogic.js +19 -9
- package/lib/authn/SolidAuthnLogic.js.map +1 -1
- package/lib/authn/authUtil.d.ts.map +1 -1
- package/lib/authn/authUtil.js +22 -9
- package/lib/authn/authUtil.js.map +1 -1
- package/lib/chat/chatLogic.d.ts.map +1 -1
- package/lib/chat/chatLogic.js +3 -4
- package/lib/chat/chatLogic.js.map +1 -1
- package/lib/inbox/inboxLogic.d.ts.map +1 -1
- package/lib/inbox/inboxLogic.js +4 -4
- package/lib/inbox/inboxLogic.js.map +1 -1
- package/lib/issuer/issuerLogic.js +1 -2
- package/lib/issuer/issuerLogic.js.map +1 -1
- package/lib/logic/solidLogic.d.ts.map +1 -1
- package/lib/logic/solidLogic.js +19 -9
- package/lib/logic/solidLogic.js.map +1 -1
- package/lib/logic/solidLogicSingleton.js +19 -9
- package/lib/logic/solidLogicSingleton.js.map +1 -1
- package/lib/profile/profileLogic.d.ts.map +1 -1
- package/lib/profile/profileLogic.js +26 -13
- package/lib/profile/profileLogic.js.map +1 -1
- package/lib/typeIndex/typeIndexLogic.d.ts.map +1 -1
- package/lib/typeIndex/typeIndexLogic.js +30 -14
- package/lib/typeIndex/typeIndexLogic.js.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/util/containerLogic.d.ts.map +1 -1
- package/lib/util/containerLogic.js +3 -4
- package/lib/util/containerLogic.js.map +1 -1
- package/lib/util/debug.js +4 -5
- package/lib/util/debug.js.map +1 -1
- package/lib/util/ns.js +17 -7
- package/lib/util/ns.js.map +1 -1
- package/lib/util/utilityLogic.d.ts.map +1 -1
- package/lib/util/utilityLogic.js +21 -11
- package/lib/util/utilityLogic.js.map +1 -1
- package/lib/util/utils.js +6 -7
- package/lib/util/utils.js.map +1 -1
- package/package.json +17 -17
- package/src/acl/aclLogic.ts +2 -1
- package/src/authn/authUtil.ts +3 -0
- package/src/chat/chatLogic.ts +1 -0
- package/src/inbox/inboxLogic.ts +2 -1
- package/src/logic/solidLogic.ts +1 -0
- package/src/profile/profileLogic.ts +1 -0
- package/src/typeIndex/typeIndexLogic.ts +7 -1
- package/src/types.ts +2 -1
- package/src/util/utilityLogic.ts +2 -2
- package/.babelrc +0 -12
- package/.eslintrc.js +0 -6
- package/.github/workflows/ci.yml +0 -82
- package/.github/workflows/release.yml +0 -17
- package/.nvmrc +0 -1
|
@@ -23,6 +23,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
23
23
|
let publicTypeIndex
|
|
24
24
|
try {
|
|
25
25
|
publicTypeIndex = await utilityLogic.followOrCreateLink(user, ns.solid('publicTypeIndex') as NamedNode, suggestion, profile)
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
26
27
|
} catch (err) {
|
|
27
28
|
const message = `User ${user} has no pointer in profile to publicTypeIndex file.`
|
|
28
29
|
debug.warn(message)
|
|
@@ -32,6 +33,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
32
33
|
let preferencesFile
|
|
33
34
|
try {
|
|
34
35
|
preferencesFile = await profileLogic.silencedLoadPreferences(user)
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
35
37
|
} catch (err) {
|
|
36
38
|
preferencesFile = null
|
|
37
39
|
}
|
|
@@ -45,7 +47,8 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
45
47
|
try {
|
|
46
48
|
privateTypeIndex = store.any(user, ns.solid('privateTypeIndex'), undefined, profile) ||
|
|
47
49
|
await utilityLogic.followOrCreateLink(user, ns.solid('privateTypeIndex') as NamedNode, suggestedPrivateTypeIndex, preferencesFile);
|
|
48
|
-
|
|
50
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
51
|
+
} catch (err) {
|
|
49
52
|
const message = `User ${user} has no pointer in preference file to privateTypeIndex file.`
|
|
50
53
|
debug.warn(message)
|
|
51
54
|
}
|
|
@@ -68,6 +71,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
68
71
|
let preferencesFile
|
|
69
72
|
try {
|
|
70
73
|
preferencesFile = await profileLogic.silencedLoadPreferences(user)
|
|
74
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71
75
|
} catch (err) {
|
|
72
76
|
const message = `User ${user} has no pointer in profile to preferences file.`
|
|
73
77
|
debug.warn(message)
|
|
@@ -78,6 +82,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
78
82
|
)
|
|
79
83
|
let result = []
|
|
80
84
|
for (const org of communities) {
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
81
86
|
result = result.concat(await loadTypeIndexesFor(org as NamedNode) as any)
|
|
82
87
|
}
|
|
83
88
|
return result
|
|
@@ -93,6 +98,7 @@ export function createTypeIndexLogic(store, authn, profileLogic, utilityLogic):
|
|
|
93
98
|
const scopes = await loadAllTypeIndexes(user)
|
|
94
99
|
let scopedApps = []
|
|
95
100
|
for (const scope of scopes) {
|
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
96
102
|
const scopedApps0 = await getScopedAppsFromIndex(scope, klass) as any
|
|
97
103
|
scopedApps = scopedApps.concat(scopedApps0)
|
|
98
104
|
}
|
package/src/types.ts
CHANGED
|
@@ -72,7 +72,7 @@ export interface ProfileLogic {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export interface AclLogic {
|
|
75
|
-
findAclDocUrl: (url: NamedNode) => Promise<
|
|
75
|
+
findAclDocUrl: (url: NamedNode) => Promise<string | undefined>,
|
|
76
76
|
setACLUserPublic: (docURI: string, me: NamedNode,
|
|
77
77
|
options: {
|
|
78
78
|
defaultForNew?: boolean,
|
|
@@ -103,6 +103,7 @@ export interface TypeIndexLogic {
|
|
|
103
103
|
suggestPublicTypeIndex: (me: NamedNode) => NamedNode,
|
|
104
104
|
suggestPrivateTypeIndex: (preferencesFile: NamedNode) => NamedNode,
|
|
105
105
|
registerInTypeIndex: (instance: NamedNode, index: NamedNode, theClass: NamedNode) => Promise<NamedNode | null>,
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
106
107
|
deleteTypeIndexRegistration: (item: any) => Promise<void>
|
|
107
108
|
getScopedAppsFromIndex: (scope: TypeIndexScope, theClass: NamedNode | null) => Promise<ScopedApp[]>
|
|
108
109
|
}
|
package/src/util/utilityLogic.ts
CHANGED
|
@@ -16,9 +16,9 @@ export function createUtilityLogic(store, aclLogic, containerLogic) {
|
|
|
16
16
|
);
|
|
17
17
|
}
|
|
18
18
|
const nodeToStringHere = containerNode.value;
|
|
19
|
-
return store.fetcher._fetch(nodeToStringHere, { method: "DELETE" })
|
|
19
|
+
return store.fetcher._fetch(nodeToStringHere, { method: "DELETE" })
|
|
20
20
|
} catch (e) {
|
|
21
|
-
|
|
21
|
+
debug.log(`Please manually remove ${containerNode.value} from your system.`, e);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
package/.babelrc
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"presets": [
|
|
3
|
-
"@babel/preset-env",
|
|
4
|
-
"@babel/preset-typescript"
|
|
5
|
-
],
|
|
6
|
-
"plugins": [
|
|
7
|
-
"@babel/plugin-proposal-class-properties",
|
|
8
|
-
"@babel/plugin-proposal-optional-chaining",
|
|
9
|
-
"@babel/plugin-transform-async-to-generator",
|
|
10
|
-
"@babel/plugin-transform-runtime"
|
|
11
|
-
]
|
|
12
|
-
}
|
package/.eslintrc.js
DELETED
package/.github/workflows/ci.yml
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
2
|
-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
-
|
|
4
|
-
name: CI
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
branches:
|
|
9
|
-
- "**"
|
|
10
|
-
pull_request:
|
|
11
|
-
branches:
|
|
12
|
-
- "**"
|
|
13
|
-
workflow_dispatch:
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
build:
|
|
17
|
-
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
node-version:
|
|
23
|
-
- 16.x
|
|
24
|
-
- 18.x
|
|
25
|
-
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v2
|
|
28
|
-
- name: Use Node.js ${{ matrix.node-version }}
|
|
29
|
-
uses: actions/setup-node@v1
|
|
30
|
-
with:
|
|
31
|
-
node-version: ${{ matrix.node-version }}
|
|
32
|
-
- run: npm ci
|
|
33
|
-
- run: npm run lint --if-present
|
|
34
|
-
- run: npm test
|
|
35
|
-
- run: npm run build --if-present
|
|
36
|
-
- name: Save build
|
|
37
|
-
if: matrix.node-version == '16.x'
|
|
38
|
-
uses: actions/upload-artifact@v2
|
|
39
|
-
with:
|
|
40
|
-
name: build
|
|
41
|
-
path: |
|
|
42
|
-
.
|
|
43
|
-
!node_modules
|
|
44
|
-
retention-days: 1
|
|
45
|
-
|
|
46
|
-
npm-publish-build:
|
|
47
|
-
needs: build
|
|
48
|
-
runs-on: ubuntu-latest
|
|
49
|
-
steps:
|
|
50
|
-
- uses: actions/download-artifact@v2
|
|
51
|
-
with:
|
|
52
|
-
name: build
|
|
53
|
-
- uses: actions/setup-node@v1
|
|
54
|
-
with:
|
|
55
|
-
node-version: 16.x
|
|
56
|
-
- uses: rlespinasse/github-slug-action@v3.x
|
|
57
|
-
- name: Append commit hash to package version
|
|
58
|
-
run: 'sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
|
|
59
|
-
- name: Disable pre- and post-publish actions
|
|
60
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
61
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
62
|
-
with:
|
|
63
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
64
|
-
tag: ${{ env.GITHUB_REF_SLUG }}
|
|
65
|
-
|
|
66
|
-
npm-publish-latest:
|
|
67
|
-
needs: build
|
|
68
|
-
runs-on: ubuntu-latest
|
|
69
|
-
if: github.ref == 'refs/heads/main'
|
|
70
|
-
steps:
|
|
71
|
-
- uses: actions/download-artifact@v2
|
|
72
|
-
with:
|
|
73
|
-
name: build
|
|
74
|
-
- uses: actions/setup-node@v1
|
|
75
|
-
with:
|
|
76
|
-
node-version: 16.x
|
|
77
|
-
- name: Disable pre- and post-publish actions
|
|
78
|
-
run: 'sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
|
|
79
|
-
- uses: JS-DevTools/npm-publish@v1
|
|
80
|
-
with:
|
|
81
|
-
token: ${{ secrets.NPM_TOKEN }}
|
|
82
|
-
tag: latest
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
name: Release package
|
|
2
|
-
on:
|
|
3
|
-
release:
|
|
4
|
-
types: [created]
|
|
5
|
-
jobs:
|
|
6
|
-
build:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
steps:
|
|
9
|
-
- uses: actions/checkout@v2
|
|
10
|
-
- uses: actions/setup-node@v1
|
|
11
|
-
with:
|
|
12
|
-
node-version: '14.x'
|
|
13
|
-
registry-url: 'https://registry.npmjs.org'
|
|
14
|
-
- run: npm install
|
|
15
|
-
- run: npm publish
|
|
16
|
-
env:
|
|
17
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
v18.19.0
|