Comparing version 1.5.0-canary.20240405T234127 to 1.5.0-canary.20240408T142249
@@ -62,3 +62,3 @@ /*! | ||
protected stateCodec: ICodec; | ||
protected stateCache: [Session, Uint8Array] | null; | ||
protected stateCache: WeakMap<Session, Uint8Array>; | ||
lastStateUpdate: SerializedSessionState | null; | ||
@@ -65,0 +65,0 @@ protected adminUIMode: boolean; |
@@ -115,3 +115,3 @@ "use strict"; | ||
stateCodec = codecs_1.INVALID_CODEC; | ||
stateCache = null; | ||
stateCache = new WeakMap(); | ||
lastStateUpdate = null; | ||
@@ -318,3 +318,3 @@ adminUIMode = false; | ||
this.stateCodec = codec; | ||
this.stateCache = null; | ||
this.stateCache = new WeakMap(); | ||
this.buffer.finishMessage(); | ||
@@ -687,8 +687,8 @@ } | ||
else { | ||
if (this.stateCache?.[0] !== state) { | ||
if (!this.stateCache.has(state)) { | ||
const buf = new buffer_1.WriteBuffer(); | ||
this.stateCodec.encode(buf, state._serialise()); | ||
this.stateCache = [state, buf.unwrap()]; | ||
this.stateCache.set(state, buf.unwrap()); | ||
} | ||
wb.writeBuffer(this.stateCache[1]); | ||
wb.writeBuffer(this.stateCache.get(state)); | ||
} | ||
@@ -695,0 +695,0 @@ } |
{ | ||
"name": "edgedb", | ||
"version": "1.5.0-canary.20240405T234127", | ||
"version": "1.5.0-canary.20240408T142249", | ||
"description": "The official Node.js client library for EdgeDB", | ||
@@ -5,0 +5,0 @@ "homepage": "https://edgedb.com/docs", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
553003