File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66} from "@1password/sdk-core" ;
77
88import { ReplacerFunc } from "./types" ;
9- import { DesktopSessionExpired , throwError } from "./errors" ;
9+ import { DesktopSessionExpiredError , throwError } from "./errors" ;
1010
1111// In empirical tests, we determined that maximum message size that can cross the FFI boundary
1212// is ~64MB. Past this limit, the wasm-bingen FFI will throw an error and the program will crash.
@@ -170,7 +170,7 @@ export class InnerClient {
170170 try {
171171 return await this . core . invoke ( config ) ;
172172 } catch ( err : unknown ) {
173- if ( err instanceof DesktopSessionExpired ) {
173+ if ( err instanceof DesktopSessionExpiredError ) {
174174 const newId = await this . core . initClient ( this . config ) ;
175175 this . id = parseInt ( newId , 10 ) ;
176176 config . invocation . clientId = this . id ;
Original file line number Diff line number Diff line change 11// Code generated by op-codegen - DO NOT EDIT MANUALLY
22
3- export class DesktopSessionExpired extends Error {
3+ export class DesktopSessionExpiredError extends Error {
44 public message : string ;
55
66 public constructor ( message : string ) {
@@ -33,7 +33,7 @@ export const throwError = (errString: string) => {
3333
3434 switch ( err . name ) {
3535 case "DesktopSessionExpired" :
36- throw new DesktopSessionExpired ( err . message ) ;
36+ throw new DesktopSessionExpiredError ( err . message ) ;
3737 case "RateLimitExceeded" :
3838 throw new RateLimitExceededError ( err . message ) ;
3939 default :
You can’t perform that action at this time.
0 commit comments