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.
@@ -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,
@@ -5,6 +5,7 @@ export const ERROR_STATUS = {
5
5
  conflict: 409,
6
6
  diverged: 409,
7
7
  'lease-held': 409,
8
+ 'reset-pending': 409,
8
9
  gone: 410,
9
10
  quota: 507,
10
11
  'rate-limited': 429
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dscs-server",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "DSH Session CloudSync self-hosted server.",