braid-text 0.2.60 → 0.2.62

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/index.js CHANGED
@@ -81,7 +81,7 @@ braid_text.serve = async (req, res, options = {}) => {
81
81
  unknowns.push(event)
82
82
  }
83
83
  if (unknowns.length)
84
- return my_end(309, '', "Version Unknown", {
84
+ return my_end(309, '', "Version Unknown Here", {
85
85
  Version: ascii_ify(unknowns.map(e => JSON.stringify(e)).join(', '))
86
86
  })
87
87
 
@@ -201,7 +201,7 @@ braid_text.serve = async (req, res, options = {}) => {
201
201
  if (!resource.actor_seqs[actor]?.has(seq)) unknowns.push(event)
202
202
  }
203
203
  if (unknowns.length)
204
- return done_my_turn(309, '', "Version Unknown", {
204
+ return done_my_turn(309, '', "Version Unknown Here", {
205
205
  Version: ascii_ify(unknowns.map(e => JSON.stringify(e)).join(', ')),
206
206
  'Retry-After': '1'
207
207
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-text",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "description": "Library for collaborative text over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braid-text",
package/test/test.html CHANGED
@@ -965,7 +965,7 @@ runTest(
965
965
  })
966
966
  return r.status + ' ' + r.ok + ' ' + r.statusText + ' ' + r.headers.get('Version')
967
967
  },
968
- '309 false Version Unknown "missing-0", "y\\ud83d\\ude00-0"'
968
+ '309 false Version Unknown Here "missing-0", "y\\ud83d\\ude00-0"'
969
969
  )
970
970
 
971
971
  runTest(
@@ -1276,7 +1276,7 @@ runTest(
1276
1276
  version: ['hi-5']
1277
1277
  })
1278
1278
  if (r.status !== 309) throw 'expected 309, got: ' + r.status
1279
- if (r.statusText !== 'Version Unknown') throw 'unexpected status text: ' + r.statusText
1279
+ if (r.statusText !== 'Version Unknown Here') throw 'unexpected status text: ' + r.statusText
1280
1280
  if (r.ok) throw 'found version we should not have found'
1281
1281
 
1282
1282
  var r = await braid_fetch(`/${key}`, {