UNPKG

@spartacus/schematics

Version:
28 lines 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LOGOUT_GUARD_MIGRATION = void 0; const constants_1 = require("../../../../shared/constants"); // projects/storefrontlib/cms-components/user/logout-guard.ts exports.LOGOUT_GUARD_MIGRATION = [ { class: constants_1.LOGOUT_GUARD, importPath: constants_1.SPARTACUS_STOREFRONTLIB, deprecatedNode: constants_1.CAN_ACTIVATE, newNode: constants_1.CAN_ACTIVATE, comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.CAN_ACTIVATE}' return type has changed from 'Observable<boolean>' to 'Observable<boolean | UrlTree>'.`, }, { class: constants_1.LOGOUT_GUARD, importPath: constants_1.SPARTACUS_STOREFRONTLIB, deprecatedNode: constants_1.LOGOUT, newNode: constants_1.LOGOUT, comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.LOGOUT}' return type has changed from 'void' to 'Promise<any>'.`, }, { class: constants_1.LOGOUT_GUARD, importPath: constants_1.SPARTACUS_STOREFRONTLIB, deprecatedNode: constants_1.REDIRECT, comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.REDIRECT}' has been removed from ${constants_1.LOGOUT_GUARD}. Please use 'getRedirectUrl()' instead.`, }, ]; //# sourceMappingURL=logout.guard.migration.js.map