@webtypen/webframez-core 0.3.25 → 0.3.28

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.
@@ -34,7 +34,7 @@ export declare class Datatable {
34
34
  isAvailable?: Function;
35
35
  payload?: any;
36
36
  confirmMessage?: string;
37
- confirmAttributes?: any;
37
+ confirmOptions?: any;
38
38
  };
39
39
  } | null;
40
40
  getInit(req: Request): Promise<any>;
@@ -42,7 +42,7 @@ export declare class Datatable {
42
42
  label: string;
43
43
  icon: string | undefined;
44
44
  confirmMessage: string | undefined;
45
- confirmAttributes: any;
45
+ confirmOptions: any;
46
46
  apiFunction: string;
47
47
  apiFunctionPayload: any;
48
48
  }[] | null>;
@@ -104,7 +104,7 @@ class Datatable {
104
104
  label: this.selectableFunctions[key].label,
105
105
  icon: this.selectableFunctions[key].icon,
106
106
  confirmMessage: this.selectableFunctions[key].confirmMessage,
107
- confirmAttributes: this.selectableFunctions[key].confirmAttributes,
107
+ confirmOptions: this.selectableFunctions[key].confirmOptions,
108
108
  apiFunction: key,
109
109
  apiFunctionPayload: this.selectableFunctions[key].payload
110
110
  ? typeof this.selectableFunctions[key].payload === "function"
@@ -44,8 +44,11 @@ class LocalStorageDriver {
44
44
  return key === mime;
45
45
  });
46
46
  if (configKey && ((_a = this.config.fileHandlers[configKey]) === null || _a === void 0 ? void 0 : _a.handlers)) {
47
- for (let handler of this.config.fileHandlers[configKey].handlers) {
48
- yield handler(p, contents, payload);
47
+ for (let handlerKey in this.config.fileHandlers[configKey].handlers) {
48
+ const handler = this.config.fileHandlers[configKey].handlers[handlerKey];
49
+ if (typeof handler === "function") {
50
+ yield handler(p, contents, payload);
51
+ }
49
52
  }
50
53
  }
51
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.3.25",
3
+ "version": "0.3.28",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@ export class Datatable {
30
30
  isAvailable?: Function;
31
31
  payload?: any;
32
32
  confirmMessage?: string;
33
- confirmAttributes?: any;
33
+ confirmOptions?: any;
34
34
  };
35
35
  } | null = null;
36
36
 
@@ -114,7 +114,7 @@ export class Datatable {
114
114
  label: this.selectableFunctions[key].label,
115
115
  icon: this.selectableFunctions[key].icon,
116
116
  confirmMessage: this.selectableFunctions[key].confirmMessage,
117
- confirmAttributes: this.selectableFunctions[key].confirmAttributes,
117
+ confirmOptions: this.selectableFunctions[key].confirmOptions,
118
118
  apiFunction: key,
119
119
  apiFunctionPayload: this.selectableFunctions[key].payload
120
120
  ? typeof this.selectableFunctions[key].payload === "function"
@@ -37,8 +37,11 @@ export class LocalStorageDriver implements BaseStorageDriver {
37
37
  });
38
38
 
39
39
  if (configKey && this.config.fileHandlers[configKey]?.handlers) {
40
- for (let handler of this.config.fileHandlers[configKey].handlers) {
41
- await handler(p, contents, payload);
40
+ for (let handlerKey in this.config.fileHandlers[configKey].handlers) {
41
+ const handler = this.config.fileHandlers[configKey].handlers[handlerKey];
42
+ if (typeof handler === "function") {
43
+ await handler(p, contents, payload);
44
+ }
42
45
  }
43
46
  }
44
47
  }