@canopy-io/node 0.23.1 → 0.23.3
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.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1441 -1257
- package/dist/index.d.ts +1441 -1257
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2226,7 +2226,7 @@ function authorizationErrorStatus(error) {
|
|
|
2226
2226
|
message: "Authorization is misconfigured. Check the Canopy API key and its scopes."
|
|
2227
2227
|
};
|
|
2228
2228
|
}
|
|
2229
|
-
if (error.statusCode === 404 && error.code === null) {
|
|
2229
|
+
if (error.statusCode === 404 && (error.code === null || error.code === "request.not_found")) {
|
|
2230
2230
|
return {
|
|
2231
2231
|
status: 500,
|
|
2232
2232
|
message: `Authorization is misconfigured: ${error.request.method} ${error.request.path} is not served by this Canopy. The SDK requires an API that exposes the identity grants endpoint.`
|