Skip to content

Commit

Permalink
Bugfix/fix edge (#53)
Browse files Browse the repository at this point in the history
## Problem

`process.nextTick` prevents the client from working in edge environments

## Solution

Commented out `process.nextTick` for now. This may cause text to break.

## Type of Change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)

## Test Plan

Manually testing the client.

---------

Co-authored-by: Jen Hamon <[email protected]>
  • Loading branch information
rschwabco and jhamon authored May 9, 2023
1 parent ea55ea4 commit 7cc3cf3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,6 @@ class PineconeClient {
}
let response
try {
// Workaround for Jest TLSWRAP issue
await process.nextTick(() => { });
response = await fetch(whoami, request);
if (response.status !== 200) {
const error = await response.text();
Expand Down

0 comments on commit 7cc3cf3

Please sign in to comment.