@chromahq/react 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -160,7 +160,11 @@ const BridgeProvider = ({
160
160
  const timeout = setTimeout(() => {
161
161
  if (pendingRef.current.has(id)) {
162
162
  pendingRef.current.delete(id);
163
- reject(new Error("Request timeout"));
163
+ reject(
164
+ new Error(
165
+ `Request timed out after ${timeoutDuration} ms for key: ${key} with id: ${id} and payload: ${JSON.stringify(payload)}`
166
+ )
167
+ );
164
168
  }
165
169
  }, timeoutDuration);
166
170
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chromahq/react",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "React bindings for the Chroma Chrome extension framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",