@glissandoo/lib 1.108.9 → 1.108.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export declare enum CommunicationTemplateType {
5
5
  }
6
6
  export interface CommunicationTemplateData {
7
7
  title: string;
8
- message: Record<string, unknown>[];
8
+ message: any;
9
9
  }
10
10
  export type CommunicationTemplateLangs = Record<LanguagesTypes, CommunicationTemplateData>;
11
11
  export interface CommunicationTemplatesVars {
@@ -28,5 +28,5 @@ export interface CommunicationTemplatesVars {
28
28
  }
29
29
  declare const templates: Record<CommunicationTemplateType, CommunicationTemplateLangs>;
30
30
  export declare const replaceKeysVarsString: <T extends string, D extends Record<string, string>>(text: T, meta: D) => string;
31
- export declare function replaceKeysVarsInNodes<T extends Record<string, unknown>, D extends Record<string, string>>(nodes: T[], meta: D): T[];
31
+ export declare function replaceKeysVarsInNodes<T extends Record<string, any>, D extends Record<string, string>>(nodes: T[], meta: D): T[];
32
32
  export default templates;
@@ -29,12 +29,14 @@ const replaceKeysVarsString = (text, meta) => {
29
29
  exports.replaceKeysVarsString = replaceKeysVarsString;
30
30
  function replaceKeysVarsInNodes(nodes, meta) {
31
31
  return nodes.map((node) => {
32
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
32
33
  const newNode = { ...node };
33
34
  for (const key in newNode) {
34
35
  if (typeof newNode[key] === 'string') {
35
36
  newNode[key] = (0, exports.replaceKeysVarsString)(newNode[key], meta);
36
37
  }
37
38
  else if (Array.isArray(newNode[key])) {
39
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
38
40
  newNode[key] = replaceKeysVarsInNodes(newNode[key], meta);
39
41
  }
40
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.108.9",
3
+ "version": "1.108.10",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",