@commercetools/frontend-sdk
Advanced tools
Comparing version 1.11.1 to 1.11.2
## Version 1.11.2 (2024-05-02) | ||
* Fixed bug in error reporting affecting versions 1.11.0 and 1.11.1 | ||
## Version 1.11.1 (2024-04-24) | ||
* Reverted PageAPI interfaces back to types due to unintended breaking change | ||
* Reverted PageAPI interfaces to types due to unintended breaking change | ||
## Version 1.11.0 (2024-04-24) | ||
* Added Frontastic-Request-Id to errorCaught event trigger | ||
* Added Frontastic-Request-Id header value to SDKResponse | ||
* Added unnecessary project files for omission on library release | ||
* Changed Page API types to interfaces | ||
* Changed PageAPI types to interfaces | ||
## Version 1.10.1 (2024-04-09) | ||
* Removed httpOnly flag from cookie options as default | ||
@@ -19,0 +21,0 @@ |
@@ -914,7 +914,7 @@ "use strict"; | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "ActionError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
actionName: options.actionName | ||
@@ -963,7 +963,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path: options.path | ||
@@ -1003,7 +1003,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path | ||
@@ -1048,7 +1048,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path | ||
@@ -1055,0 +1055,0 @@ }); |
@@ -694,7 +694,7 @@ "use strict"; | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "ActionError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
actionName: options.actionName | ||
@@ -743,7 +743,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path: options.path | ||
@@ -783,7 +783,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path | ||
@@ -828,7 +828,7 @@ }); | ||
} | ||
if (response instanceof Error) { | ||
if (response.data instanceof Error) { | ||
return this.#handleError({ | ||
type: "PageError", | ||
frontasticRequestId: response.frontasticRequestId, | ||
error: response.toString(), | ||
error: response.data.toString(), | ||
path | ||
@@ -835,0 +835,0 @@ }); |
{ | ||
"name": "@commercetools/frontend-sdk", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
466252