@live-change/dao 0.9.136 → 0.9.138

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
@@ -86,8 +86,9 @@ import Path from "./lib/Path.js"
86
86
  rd.Path = Path
87
87
  export { Path }
88
88
 
89
- import { sourceSymbol } from "./lib/ReactiveConnection.js"
89
+ import { sourceSymbol, originalCredentialsSymbol } from "./lib/ReactiveConnection.js"
90
90
  rd.sourceSymbol = sourceSymbol
91
- export { sourceSymbol }
91
+ rd.originalCredentialsSymbol = originalCredentialsSymbol
92
+ export { sourceSymbol, originalCredentialsSymbol }
92
93
 
93
94
  export default rd
@@ -6,6 +6,7 @@ import * as utils from './utils.js'
6
6
  let lastUid = 0
7
7
 
8
8
  export const sourceSymbol = Symbol("source")
9
+ export const originalCredentialsSymbol = Symbol("originalCredentials")
9
10
 
10
11
  class Observation {
11
12
  constructor(connection, what, pushed) {
@@ -381,8 +382,11 @@ class Connection extends EventEmitter {
381
382
  if(this.settings.logLevel > 0) debug("connected")
382
383
  this.connected = true
383
384
  if(!this.settings.fastAuth) {
385
+ console.log("SENDING CREDENTIALS", this.credentials)
386
+ console.log("ORIGINAL CREDENTIALS", this.credentials[originalCredentialsSymbol])
384
387
  this.send({
385
- ...this.credentials
388
+ ...this.credentials[originalCredentialsSymbol],
389
+ ...this.credentials,
386
390
  })
387
391
  }
388
392
  /// REFRESH OBSERVABLES!
package/package.json CHANGED
@@ -35,6 +35,6 @@
35
35
  "scripts": {
36
36
  "test": "NODE_ENV=test tape tests/*"
37
37
  },
38
- "version": "0.9.136",
39
- "gitHead": "3c5a53a4aae1125cde51d4d262a6e7b041a05f25"
38
+ "version": "0.9.138",
39
+ "gitHead": "af56bfe0ca7899934a4c563ead788318832336de"
40
40
  }