sanity-plugin-seo-tools
Version:
> Upgrading from V2 to V3 is a breaking change. The `seo-tools` input has been replaced by a SEO pane which needs to be set-up using a custom desk structure as per the installation guide. Secondly, the previously automatically provided fields (focus keywo
24 lines (23 loc) • 708 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "extractErrorMessage", {
enumerable: true,
get: function() {
return extractErrorMessage;
}
});
function _instanceof(left, right) {
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
return !!right[Symbol.hasInstance](left);
} else {
return left instanceof right;
}
}
function extractErrorMessage(error) {
if (typeof error === "string") return error;
if (typeof error === "object" && _instanceof(error, Error)) return error.message;
return String(error);
}
//# sourceMappingURL=extractErrorMessage.js.map