@sentio/runtime 3.9.0-rc.8 → 3.9.0-rc.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentio/runtime",
3
- "version": "3.9.0-rc.8",
3
+ "version": "3.9.0-rc.9",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -319,7 +319,7 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
319
319
  result.configUpdated = result.result?.states?.configUpdated
320
320
  }
321
321
  return result
322
- } catch (e) {
322
+ } catch (e: any) {
323
323
  if (this.sdkVersion.minor <= 16) {
324
324
  // Old sdk doesn't handle this well
325
325
  if (
package/src/provider.ts CHANGED
@@ -169,7 +169,7 @@ export class QueuedStaticJsonRpcProvider extends JsonRpcProvider {
169
169
  let result
170
170
  try {
171
171
  result = await perform
172
- } catch (e) {
172
+ } catch (e: any) {
173
173
  this.#performCache.delete(tag)
174
174
  if (e.code === 'TIMEOUT') {
175
175
  let retryCount = this.#retryCache.get(tag)
package/src/utils.ts CHANGED
@@ -47,8 +47,11 @@ function mergeArrayInPlace<T>(dst: T[], src: T[]): T[] {
47
47
  return res
48
48
  }
49
49
 
50
- export function errorString(e: Error): string {
51
- return e.message + '\n' + e.stack
50
+ export function errorString(e: unknown): string {
51
+ if (e instanceof Error) {
52
+ return e.message + '\n' + e.stack
53
+ }
54
+ return String(e)
52
55
  }
53
56
 
54
57
  export const USER_PROCESSOR = 'user_processor'