@spartacus/schematics
Version:
Spartacus schematics
28 lines • 1.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BASE_SITE_SERVICE_MIGRATION = void 0;
const constants_1 = require("../../../../shared/constants");
// projects/core/src/site-context/facade/base-site.service.ts
exports.BASE_SITE_SERVICE_MIGRATION = [
{
class: constants_1.BASE_SITE_SERVICE,
importPath: constants_1.SPARTACUS_CORE,
deprecatedNode: constants_1.GET_ALL,
newNode: constants_1.GET_ALL,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_ALL}' changed the return type from 'Observable<string[]>' to 'Observable<BaseSite[]>'`,
},
{
class: constants_1.BASE_SITE_SERVICE,
importPath: constants_1.SPARTACUS_CORE,
deprecatedNode: constants_1.GET_BASE_SITE_DATA,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.GET_BASE_SITE_DATA}' is replaced by method 'get()'`,
},
{
class: constants_1.BASE_SITE_SERVICE,
importPath: constants_1.SPARTACUS_CORE,
deprecatedNode: constants_1.SET_ACTIVE,
newNode: constants_1.SET_ACTIVE,
comment: `// ${constants_1.TODO_SPARTACUS} Method '${constants_1.SET_ACTIVE}' changed the return type from 'Subscription' to 'void'`,
},
];
//# sourceMappingURL=base-site.service.migration.js.map