Merge pull request #6666 from continuedev/nate/fix-fetch-error-parsing
fix: test fix for fetch package and publish version with improved error logging
This commit is contained in:
commit
3f6eba2947
5 changed files with 9 additions and 10 deletions
4
packages/fetch/package-lock.json
generated
4
packages/fetch/package-lock.json
generated
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.5",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@continuedev/fetch",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.16",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ describe("parseDataLine", () => {
|
|||
test("parseDataLine should throw error when data contains error field", () => {
|
||||
const line = 'data: {"error":"something went wrong"}';
|
||||
expect(() => parseDataLine(line)).toThrow(
|
||||
"Error streaming response: something went wrong",
|
||||
'Error streaming response: "something went wrong"',
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
|||
9
packages/openai-adapters/package-lock.json
generated
9
packages/openai-adapters/package-lock.json
generated
|
|
@ -13,7 +13,7 @@
|
|||
"@aws-sdk/credential-providers": "^3.840.0",
|
||||
"@continuedev/config-types": "^1.0.5",
|
||||
"@continuedev/config-yaml": "^1.0.51",
|
||||
"@continuedev/fetch": "^1.0.15",
|
||||
"@continuedev/fetch": "^1.0.16",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"json-schema": "^0.4.0",
|
||||
|
|
@ -1352,10 +1352,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@continuedev/fetch": {
|
||||
"version": "1.0.15",
|
||||
"resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.0.15.tgz",
|
||||
"integrity": "sha512-49jLwAwAOczcFLfa2Og9+c+qxrq+Z6+p+B5BbXgHENrQIsuST1liKTXEiga5gSVAyHD+m+1Ftl4jqRq2oxMngw==",
|
||||
"license": "Apache-2.0",
|
||||
"version": "1.0.16",
|
||||
"resolved": "https://registry.npmjs.org/@continuedev/fetch/-/fetch-1.0.16.tgz",
|
||||
"integrity": "sha512-LSjVbTKA+UwqCjV8x45sfJQGtG/iekkqCYpSJsakY0ruad807swwEuuui5luuYVUhJAZZpVfZzeJArHfjiJJSw==",
|
||||
"dependencies": {
|
||||
"@continuedev/config-types": "^1.0.5",
|
||||
"follow-redirects": "^1.15.6",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
"@aws-sdk/credential-providers": "^3.840.0",
|
||||
"@continuedev/config-types": "^1.0.5",
|
||||
"@continuedev/config-yaml": "^1.0.51",
|
||||
"@continuedev/fetch": "^1.0.15",
|
||||
"@continuedev/fetch": "^1.0.16",
|
||||
"dotenv": "^16.5.0",
|
||||
"google-auth-library": "^10.1.0",
|
||||
"json-schema": "^0.4.0",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue