@live-change/dao 0.9.137 → 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 +3 -2
- package/lib/ReactiveConnection.js +5 -1
- package/package.json +2 -2
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
|
-
|
|
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