@sentio/cli 3.9.0-rc.1 → 3.9.0-rc.3

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/cli",
3
- "version": "3.9.0-rc.1",
3
+ "version": "3.9.0-rc.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,6 +43,6 @@
43
43
  "bundle": "esbuild --platform=node --format=esm --bundle src/index.ts --outfile=lib/index.js --sourcemap --inject:src/cjs-shim.ts --external:@sentio/sdk",
44
44
  "cli": "tsx src/index.ts",
45
45
  "compile": "tsc",
46
- "test": "glob -c 'tsx --test' '**/*.test.ts'"
46
+ "test": "tsx --test 'src/**/*.test.ts'"
47
47
  }
48
48
  }
@@ -737,8 +737,8 @@ export async function uploadFile(
737
737
  }
738
738
  try {
739
739
  await upload()
740
- } catch (e) {
741
- if (e.constructor.name === 'FetchError' && e.type === 'system' && e.code === 'EPIPE') {
740
+ } catch (e: any) {
741
+ if (e?.constructor.name === 'FetchError' && e.type === 'system' && e.code === 'EPIPE') {
742
742
  error = e
743
743
  await new Promise((resolve) => setTimeout(resolve, 1000))
744
744
  await tryUploading()
package/src/network.ts CHANGED
@@ -158,7 +158,9 @@ export async function resolveNetworkAddresses(config: SentioNetworkConfig): Prom
158
158
  const id = ethers.id(name)
159
159
  return await addressBook['getAddress(bytes32)'](id)
160
160
  } catch (e) {
161
- throw new Error(`Failed to resolve "${name}" from AddressBook (${addressBookAddr}): ${e.message}`)
161
+ throw new Error(
162
+ `Failed to resolve "${name}" from AddressBook (${addressBookAddr}): ${e instanceof Error ? e.message : String(e)}`
163
+ )
162
164
  }
163
165
  }
164
166
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -17,7 +17,8 @@
17
17
  "outDir": "./dist",
18
18
  "skipLibCheck": true,
19
19
  "experimentalDecorators": true,
20
- "emitDecoratorMetadata": true
20
+ "emitDecoratorMetadata": true,
21
+ "strictFunctionTypes": false
21
22
  },
22
23
  "exclude": ["dist"]
23
24
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -17,7 +17,8 @@
17
17
  "outDir": "./dist",
18
18
  "skipLibCheck": true,
19
19
  "experimentalDecorators": true,
20
- "emitDecoratorMetadata": true
20
+ "emitDecoratorMetadata": true,
21
+ "strictFunctionTypes": false
21
22
  },
22
23
  "exclude": ["dist"]
23
24
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -14,6 +14,6 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@sentio/cli": "workspace:*",
17
- "typescript": "^5.5.2"
17
+ "typescript": "^6.0.3"
18
18
  }
19
19
  }
@@ -17,7 +17,8 @@
17
17
  "outDir": "./dist",
18
18
  "skipLibCheck": true,
19
19
  "experimentalDecorators": true,
20
- "emitDecoratorMetadata": true
20
+ "emitDecoratorMetadata": true,
21
+ "strictFunctionTypes": false
21
22
  },
22
23
  "exclude": ["dist"]
23
24
  }