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:
Nate Sesti 2025-07-28 11:13:25 -07:00 • committed by GitHub
commit 3f6eba2947
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 10 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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"',
);
});

View file

@ -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",

View file

@ -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",