@spinque/query-api
Advanced tools
Comparing version 0.17.2 to 0.17.3
@@ -180,3 +180,3 @@ "use strict"; | ||
} | ||
if (response.status === 400 && json.message.startsWith('no endpoint')) { | ||
if (response.status === 400 && json.message.includes('no endpoint')) { | ||
throw new types_1.EndpointNotFoundError(json.message, 400); | ||
@@ -187,6 +187,6 @@ } | ||
} | ||
if (response.status === 404 && json.message.contains('No such api')) { | ||
if (response.status === 404 && json.message.includes('No such api')) { | ||
throw new types_1.ApiNotFoundError(json.message, 404); | ||
} | ||
if (response.status === 404 && json.message.contains('No such workspace configuration')) { | ||
if (response.status === 404 && json.message.includes('No such workspace configuration')) { | ||
throw new types_1.WorkspaceConfigNotFoundError(json.message, 404); | ||
@@ -193,0 +193,0 @@ } |
{ | ||
"name": "@spinque/query-api", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161782