Skip to content

Commit a8b7827

Browse files
committed
fix: secret scan issue
1 parent 15e3507 commit a8b7827

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/contentstack-export/src/export/modules/personalize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class ExportPersonalize extends BaseClass {
6464
};
6565

6666
const order: (keyof typeof moduleMapper)[] = this.exportConfig.modules.personalize
67-
.exportOrder as (keyof typeof moduleMapper)[];
67+
.exportOrder as (keyof typeof moduleMapper)[]; // talisman:disable-line
6868

6969
log.debug(
7070
`Adding ${order.length} personalize module processes: ${order.join(', ')}`,
@@ -117,7 +117,7 @@ export default class ExportPersonalize extends BaseClass {
117117
});
118118

119119
const order: (keyof typeof moduleInstanceMapper)[] = this.exportConfig.modules.personalize
120-
.exportOrder as (keyof typeof moduleInstanceMapper)[];
120+
.exportOrder as (keyof typeof moduleInstanceMapper)[]; // talisman:disable-line
121121

122122
log.debug(`Personalize export order: ${order.join(', ')}`, this.exportConfig.context);
123123

packages/contentstack-variants/src/export/attributes.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ export default class ExportAttributes extends PersonalizationAdapter<ExportConfi
108108
*/
109109
sanitizeAttribs() {
110110
log.debug(`Sanitizing ${this.attributes?.length || 0} attributes`, this.exportConfig.context);
111-
log.debug(
112-
`Invalid keys to remove: ${JSON.stringify(this.attributesConfig.invalidKeys)}`,
113-
this.exportConfig.context,
114-
);
111+
log.debug(
112+
`Invalid keys to remove: ${JSON.stringify(this.attributesConfig.invalidKeys)}`, // talisman:disable-line
113+
this.exportConfig.context,
114+
);
115115

116116
this.attributes =
117117
this.attributes?.map((attribute, index) => {

packages/contentstack-variants/src/export/experiences.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ export default class ExportExperiences extends PersonalizationAdapter<ExportConf
109109
// create id mapper for experience to variants
110110
let variants = experience?._cms?.variants ?? {};
111111
log.debug(
112-
`Found ${Object.keys(variants).length} variants for experience: ${experience.name}`,
112+
`Found ${Object.keys(variants).length} variants for experience: ${experience.name}`, // talisman:disable-line
113113
this.exportConfig.context,
114114
);
115115

116-
Object.keys(variants).forEach((variantShortId: string) => {
116+
Object.keys(variants).forEach((variantShortId: string) => { // talisman:disable-line
117117
const experienceToVariantsStr = `${experience.uid}-${variantShortId}-${variants[variantShortId]}`;
118118
experienceToVariantsStrList.push(experienceToVariantsStr);
119119
log.debug(`Added variant mapping: ${experienceToVariantsStr}`, this.exportConfig.context);

packages/contentstack-variants/src/export/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class ExportProjects extends PersonalizationAdapter<ExportConfig>
4545
log.debug('Projects directory created successfully', this.exportConfig.context);
4646

4747
log.debug('Fetching projects from personalization API...', this.exportConfig.context);
48-
this.projectsData = (await this.projects({ connectedStackApiKey: this.exportConfig.apiKey })) || [];
48+
this.projectsData = (await this.projects({ connectedStackApiKey: this.exportConfig.apiKey })) || []; // talisman:disable-line
4949
log.debug(`Fetched ${this.projectsData?.length || 0} projects`, this.exportConfig.context);
5050
});
5151

packages/contentstack-variants/src/utils/personalization-api-adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
154154
}
155155

156156
async projects(options: GetProjectsParams): Promise<ProjectStruct[]> {
157-
log.debug(`Fetching projects for stack API key: ${options.connectedStackApiKey}`, this.exportConfig?.context);
157+
log.debug(`Fetching projects for stack API key: ${options.connectedStackApiKey}`, this.exportConfig?.context); // talisman:disable-line
158158
await this.init();
159159
const getProjectEndPoint = `/projects?connectedStackApiKey=${options.connectedStackApiKey}`;
160160
log.debug(`Making API call to: ${getProjectEndPoint}`, this.exportConfig?.context);
@@ -326,7 +326,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
326326
}
327327

328328
async createEvents(event: CreateEventInput): Promise<void | EventStruct> {
329-
log.debug(`Creating event: ${event.key}`, this.exportConfig?.context);
329+
log.debug(`Creating event: ${event.key}`, this.exportConfig?.context); // talisman:disable-line
330330
const data = await this.apiClient.post<EventStruct>('/events', event);
331331
const result = (await this.handleVariantAPIRes(data)) as EventStruct;
332332
log.debug(`Event created successfully: ${result.uid}`, this.exportConfig?.context);

0 commit comments

Comments
 (0)