@graffiti-garden/implementation-decentralized 0.1.4 → 0.1.6
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/dist/1-services/1-authorization.d.ts +1 -1
- package/dist/1-services/1-authorization.d.ts.map +1 -1
- package/dist/3-protocol/1-sessions.d.ts +3 -2
- package/dist/3-protocol/1-sessions.d.ts.map +1 -1
- package/dist/3-protocol/4-graffiti.d.ts +2 -0
- package/dist/3-protocol/4-graffiti.d.ts.map +1 -1
- package/dist/browser/index.js +6 -6
- package/dist/browser/index.js.map +3 -3
- package/dist/cjs/1-services/1-authorization.js +6 -2
- package/dist/cjs/1-services/1-authorization.js.map +2 -2
- package/dist/cjs/3-protocol/1-sessions.js +9 -6
- package/dist/cjs/3-protocol/1-sessions.js.map +2 -2
- package/dist/cjs/3-protocol/4-graffiti.js +3 -0
- package/dist/cjs/3-protocol/4-graffiti.js.map +2 -2
- package/dist/esm/1-services/1-authorization.js +6 -2
- package/dist/esm/1-services/1-authorization.js.map +2 -2
- package/dist/esm/3-protocol/1-sessions.js +9 -6
- package/dist/esm/3-protocol/1-sessions.js.map +2 -2
- package/dist/esm/3-protocol/4-graffiti.js +3 -0
- package/dist/esm/3-protocol/4-graffiti.js.map +2 -2
- package/package.json +1 -1
- package/src/1-services/1-authorization.ts +6 -1
- package/src/3-protocol/1-sessions.ts +16 -5
- package/src/3-protocol/4-graffiti.ts +5 -0
|
@@ -131,6 +131,8 @@ const MESSAGE_LABEL_INVALID = 3;
|
|
|
131
131
|
export interface GraffitiDecentralizedOptions {
|
|
132
132
|
identityCreatorEndpoint?: string;
|
|
133
133
|
defaultInboxEndpoints?: string[];
|
|
134
|
+
/** For login hosts that already have the application in the preceding history entry. */
|
|
135
|
+
replaceInitialLoginHistoryEntry?: boolean;
|
|
134
136
|
}
|
|
135
137
|
|
|
136
138
|
const CONCURRENCY = 128;
|
|
@@ -181,6 +183,9 @@ export class GraffitiDecentralized implements Graffiti {
|
|
|
181
183
|
protected readonly defaultInboxEndpoints: string[];
|
|
182
184
|
protected readonly identityCreatorEndpoint: string;
|
|
183
185
|
constructor(options?: GraffitiDecentralizedOptions) {
|
|
186
|
+
if (options?.replaceInitialLoginHistoryEntry) {
|
|
187
|
+
this.sessions.initialAuthorizationNavigation = "replace";
|
|
188
|
+
}
|
|
184
189
|
this.defaultInboxEndpoints = options?.defaultInboxEndpoints ?? [
|
|
185
190
|
"https://graffiti.actor/i/shared",
|
|
186
191
|
];
|