braid-http 1.3.68 → 1.3.70

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.
@@ -123,6 +123,7 @@ var normal_fetch,
123
123
  if (is_nodejs) {
124
124
  // Nodejs
125
125
  normal_fetch = typeof fetch !== 'undefined' && fetch
126
+ braid_fetch.enable_multiplex = false
126
127
  } else {
127
128
  // Web Browser
128
129
  normal_fetch = window.fetch
@@ -977,7 +978,7 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
977
978
  + ', expected ' + multiplex_version)
978
979
  } catch (e) {
979
980
  e = new Error(`Could not cancel multiplexed request: ${e}`)
980
- console.error('' + e)
981
+ // console.error('' + e)
981
982
  throw e
982
983
  } finally { try_deleting.delete(request) }
983
984
  }
@@ -1026,8 +1027,8 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
1026
1027
  + ', expected ' + multiplex_version)
1027
1028
  } catch (e) {
1028
1029
  // fallback to normal fetch if multiplexed connection fails
1029
- console.error(`Could not establish multiplexer.\n`
1030
- + `Got error: ${e}.\nFalling back to normal connection.`)
1030
+ // console.error(`Could not establish multiplexer.\n`
1031
+ // + `Got error: ${e}.\nFalling back to normal connection.`)
1031
1032
  cleanup_multiplexer('retry', true)
1032
1033
  return false
1033
1034
  }
@@ -1189,7 +1190,7 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
1189
1190
  // how did it go?
1190
1191
  if (x.result === 'error') {
1191
1192
  // if we got an error, give up
1192
- console.log(`headers_buffer: ` + new TextDecoder().decode(headers_buffer))
1193
+ // console.log(`headers_buffer: ` + new TextDecoder().decode(headers_buffer))
1193
1194
  throw new Error('error parsing headers')
1194
1195
  } else if (x.result === 'waiting') {
1195
1196
  if (request_ended)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-http",
3
- "version": "1.3.68",
3
+ "version": "1.3.70",
4
4
  "description": "An implementation of Braid-HTTP for Node.js and Browsers",
5
5
  "scripts": {
6
6
  "test": "node test/server.js"