dscs-server 0.1.2 → 0.1.4
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/README.md +57 -17
- package/dist/admin-password.js +27 -0
- package/dist/audit.js +73 -0
- package/dist/db.js +174 -3
- package/dist/http.js +498 -78
- package/dist/index.js +23 -7
- package/dist/session-admin.js +200 -0
- package/dist/session-history.js +134 -0
- package/dist/sessions.js +103 -73
- package/dist/shared/chain.js +3 -0
- package/dist/shared/wire.js +1 -0
- package/package.json +1 -1
- package/web/admin.html +1836 -275
package/dist/shared/chain.js
CHANGED
|
@@ -139,6 +139,9 @@ function canonical(value) {
|
|
|
139
139
|
export function stableStringify(value) {
|
|
140
140
|
return JSON.stringify(canonical(value));
|
|
141
141
|
}
|
|
142
|
+
export function markerEquivalent(local, remote) {
|
|
143
|
+
return local.type === 'session/end-seed' && remote.type === 'session/end-seed' && stableStringify(local.data) === stableStringify(remote.data);
|
|
144
|
+
}
|
|
142
145
|
export function manifestDigest(manifest) {
|
|
143
146
|
return sha256(stableStringify({
|
|
144
147
|
sessionId: manifest.sessionId,
|
package/dist/shared/wire.js
CHANGED